Media synchronization distribution method based on distribution set-top box
Patent Information
- Application Number
- CN202211655248.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-22
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2042-12-22
AI Technical Summary
[0002]由于单台机顶盒cpu、内存等配置有限,其分发节目的性能也十分有限,从而单台机顶盒分发直播和点播节目的性能较低,在千兆网络环境下只能支持30个用户同时观看机顶盒分发的直播和点播节目(720P),无法满足大量用户同时观看直播和点播的需求
[0024] The product of the present invention solves the low performance of distributing live and on-demand programs by a single set-top box, and cannot meet the problem of watching live and on-demand programs by setting up a server to synchronize live and on-demand programs, and then distribute it outward through the server. Since the performance of the server is much greater than the performance of a single set-top box, it can support a large number of users to watch live and on-demand programs. At the same time, the set-top box is generally in a customized development form, and the configuration is generally fixed, but the configuration on the server side is relatively flexible than the set-top box, and the configuration can be updated according to the needs at any time. In addition, this system also provides massive audio and video on-demand content, providing users with menu-based services, fully meeting users' cultural and entertainment needs; in summary, the product of the present invention has strong functions, low cost, simple, efficient and stable implementation methods, and is suitable for promotion in industries such as troops, cruise ships, long-distance passenger transport, etc. with network inconvenient networks.
Smart Images

Figure CN115914667B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of set-top boxes, and in particular to a media synchronization distribution system and method based on a distribution-type set-top box. Background Art
[0002] Due to the limited configuration of CPU, memory, etc. of a single set-top box, its performance in distributing programs is also very limited. As a result, the performance of a single set-top box in distributing live and on-demand programs is low. In a gigabit network environment, it can only support 30 users to watch the live and on-demand programs (720P) distributed by the set-top box at the same time, which cannot meet the needs of a large number of users to watch live and on-demand programs at the same time. Summary of the invention
[0003] In order to solve the problems existing in the prior art, the purpose of the present invention is to provide a media synchronization distribution system and method based on a distribution set-top box. The present invention solves the performance limitation of distributing programs by a single set-top box, and provides additional customized media resources, file upload and distribution functions, so as to provide users with a variety of audio and video media resources.
[0004] To achieve the above object, the technical solution adopted by the present invention is: a media synchronization distribution system based on a distribution type set-top box, including a distribution type satellite set-top box and a media server, wherein:
[0005] The distribution type satellite set-top box is used to provide embedded web services, build nginx services, provide live programs and pushvod on-demand programs for distribution, and provide http interfaces for clients to query live programs and pushvod program information through fast universal gateway interface fastcgi;
[0006] The media server is used to forward multiple live programs and synchronous pushvod on-demand programs.
[0007] The present invention also provides a media synchronization distribution method based on a distribution type set-top box, using the media synchronization distribution system based on a distribution type set-top box as described above, when the media server is used to forward multiple live programs, the method comprises:
[0008] Step A, the media server first obtains multiple live program information by accessing the http interface of the embedded web service of the distribution satellite set-top box, and saves the live program information to the database; wherein the live program information includes the live program name, channel number, program introduction and playback address;
[0009] Step B: According to the playback address in the obtained live program information, each live program stream is pulled through the ffpmeg component, and then HLS slices are performed and saved locally;
[0010] Step C: according to the playback address in each live program information obtained, pull each live program stream through the ffpmeg component, record the live program in a certain cycle, save the recorded live program locally, and save the live program recording information to the database;
[0011] Step D: Build a tomcat web service to provide an http interface to the outside world to obtain the sliced live program information and live program recording information;
[0012] Step E: Build nginx web service to distribute sliced live programs and recorded live programs to the outside world;
[0013] When the media server is used to synchronize pushvod on-demand programs, the method comprises:
[0014] Step a, the media server first obtains the Pushvod on-demand program information by accessing the HTTP interface of the embedded web service of the distribution satellite set-top box, and saves the Pushvod on-demand program information to the database; wherein the on-demand program information includes program name, program ID, program introduction and playback address;
[0015] Step b, according to the obtained playback addresses of each pushvod on-demand program, all the on-demand programs are synchronized to the server via HTTP;
[0016] Step c: Provide an HTTP interface to the outside world through the Tomcat web service to obtain the PushVOD program information and live program recording information from the media resource server;
[0017] Step d: Distribute pushvod programs to the outside world through nginx web service.
[0018] As a further improvement of the present invention, the media server is also used to upload additional custom media resources, which specifically includes the following steps:
[0019] Step 1: The user uploads media resources through the media management module of the media server backend management page.
[0020] Step 2: The user customizes and creates a media group through the media distribution management module of the media server backend management page, and then adds the media resources in the media management module to the group;
[0021] Step 3: Provide an http interface to the outside world through the tomcat web service to obtain the information of each media group in the media distribution management module and the media information in each media group;
[0022] Step 4: Distribute various customized media programs to the outside world through nginx web service.
[0023] The beneficial effects of the present invention are:
[0024] The product of the present invention solves the problem that the performance of a single set-top box in distributing live and on-demand programs is low and cannot meet the needs of a large number of users to watch live and on-demand programs at the same time. By setting up a server to synchronize the live broadcast and recorded programs on the set-top box, and then distributing them to the outside through the server, since the performance of the server is much greater than that of a single set-top box, it can support a large number of users to watch live and on-demand programs. At the same time, set-top boxes are generally customized and developed, and the configuration is generally fixed, but the configuration of the server side is more flexible than that of the set-top box, and the configuration can be updated at any time according to demand. In addition, this system also provides a large amount of audio and video on-demand content, providing users with menu-based services, fully meeting the cultural and entertainment needs of users; in summary, the product of the present invention has strong functions and low costs, and the implementation method is simple, efficient and stable, which is suitable for promotion in industries with inconvenient networks such as troops, cruise ships, and long-distance passenger transportation. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 is a flow chart of an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0027] Example
[0028] like Figure 1 As shown, this embodiment mainly includes two subsystems: a media server and a distribution-type satellite set-top box.
[0029] Satellite set-top boxes have the following functions:
[0030] Embedded web service:
[0031] Build nginx service to provide distribution of live programs and pushvod on-demand programs, and provide http interface through fastcgi for clients to query live program and pushvod program information.
[0032] The media server has the following functions:
[0033] The media server forwards multiple live programs:
[0034] (1) The media server first obtains multiple live program information (including live program name, channel number, program introduction, playback address, etc.) by accessing the HTTP interface of the set-top box embedded web service, and saves the live program information to the database;
[0035] (2) According to the playback address in the live program information obtained in (1), the ffpmeg component is used to pull the live program stream, and then HLS slices are performed and saved locally;
[0036] (3) According to the playback address in each live program information obtained in (1), the ffpmeg component is used to pull each live program stream, and the live program is recorded in a cycle of one hour. The recorded live program is saved locally, and the live program recording information is saved to the database;
[0037] (4) Build a Tomcat web service to provide an HTTP interface to the outside world to obtain the sliced live program information (including live program name, channel number, program introduction, playback address, etc.) and live program recording information;
[0038] (5) Build nginx web service to distribute sliced live programs and recorded live programs to the outside world.
[0039] Media server synchronizes pushvod on-demand programs:
[0040] (1) The media server first obtains the PushVOD on-demand program information (including program name, program ID, program introduction, playback address, etc.) by accessing the HTTP interface of the set-top box embedded web service, and saves the PushVOD on-demand program information to the database;
[0041] (2) Based on the playback addresses of the pushvod on-demand programs obtained in (1), all the on-demand programs are synchronized to the server via HTTP;
[0042] (3) Through the Tomcat web service, an HTTP interface is provided to the outside world to obtain the PushVod program information (including program name, program ID, program introduction, playback address, etc.) and live program recording information from the media resource server;
[0043] (4) Distribute pushvod programs to the outside world through nginx web service.
[0044] The media server uploads additional custom media resources:
[0045] (1) Through the media server backend management page - media management module, users can upload media resources such as on-demand content, e-books, music, audiobooks, etc.;
[0046] (2) Through the media server backend management page - media distribution management module, users can customize the creation of media groups (group name, introduction, media type), and then add media resources in the media management module to the group;
[0047] (3) Through the Tomcat web service, an HTTP interface is provided to the outside world to obtain the information of each media group in the media distribution management module, as well as the media information in each media group (media name, media ID, media introduction, media type, playback address);
[0048] (4) Distribute various customized media programs to the outside world through nginx web service.
[0049] Since the CPU, memory and other configurations of a single set-top box are limited, its performance in distributing programs is also very limited. This embodiment adopts a distribution type set-top box and a server cooperation method. The media server will synchronize the live programs and pushvod on-demand programs in the set-top box, and then build tomcat and nginx web services on the media server to distribute the synchronized live and pushvod on-demand programs to the outside. When the media server of this solution is configured with a 4-core CPU and 8G memory, it can support about 100 users to access the distributed live and on-demand programs (720P) at the same time. Since the performance of the server is much higher than that of the set-top box, the on-demand programs distributed by the media server can meet the viewing needs of a large number of users. At the same time, the set-top box is generally a customized development form, and the configuration is generally fixed, but the configuration of the server side is relatively flexible compared to the set-top box, and the configuration can be updated at any time according to the needs.
[0050] The media server can automatically pull the multi-channel live programs and PushVOD on-demand programs on the distribution-type satellite set-top box, slice and record the multi-channel live programs, and then distribute the sliced multi-channel live programs, live recorded programs and synchronized PushVOD on-demand programs to the outside world through the web server. The performance of the media server is much higher than that of the distribution-type set-top box, and the number of users supported is also much larger than that of the distribution-type set-top box. The media server can also upload additional custom media content and distribute it. The client can obtain the information of the above media content by accessing the web service http interface of the media server, so as to watch it.
[0051] The above-mentioned embodiments only express the specific implementation of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A method for synchronously distributing media based on a distribution type set-top box, characterized in that: The media synchronization distribution system based on the distribution type set-top box is used for implementation. The media synchronization distribution system based on the distribution type set-top box includes a distribution type satellite set-top box and a media server, wherein: The distribution type satellite set-top box is used to provide embedded web services, build nginx services, provide live programs and pushvod on-demand programs for distribution, and provide http interfaces for clients to query live programs and pushvod program information through fast universal gateway interface fastcgi; The media server is used to forward multiple live programs and synchronous pushvod on-demand programs; When the media server is used to forward multiple live programs, the method includes: Step A, the media server first obtains multiple live program information by accessing the http interface of the embedded web service of the distribution satellite set-top box, and saves the live program information to the database; wherein the live program information includes the live program name, channel number, program introduction and playback address; Step B: According to the playback address in the obtained live program information, each live program stream is pulled through the ffpmeg component, and then HLS slices are performed and saved locally; Step C: according to the playback address in each live program information obtained, pull each live program stream through the ffpmeg component, record the live program in a certain cycle, save the recorded live program locally, and save the live program recording information to the database; Step D: Build a tomcat web service to provide an http interface to the outside world to obtain the sliced live program information and live program recording information; Step E: Build nginx web service to distribute sliced live programs and recorded live programs to the outside world; When the media server is used to synchronize pushvod on-demand programs, the method comprises: Step a, the media server first obtains the Pushvod on-demand program information by accessing the HTTP interface of the embedded web service of the distribution satellite set-top box, and saves the Pushvod on-demand program information to the database; wherein the on-demand program information includes program name, program ID, program introduction and playback address; Step b, according to the obtained playback addresses of each pushvod on-demand program, all the on-demand programs are synchronized to the server via HTTP; Step c: Provide an HTTP interface to the outside world through the Tomcat web service to obtain the PushVOD program information and live program recording information from the media resource server; Step d: Distribute pushvod programs to the outside world through nginx web service.
2. The method for synchronously distributing media based on a distribution type set-top box according to claim 1, characterized in that: The media server is also used to upload additional custom media resources, which specifically includes the following steps: Step 1: The user uploads media resources through the media management module of the media server backend management page; Step 2: The user customizes and creates a media group through the media distribution management module of the media server backend management page, and then adds the media resources in the media management module to the group; Step 3: Provide an http interface to the outside world through the tomcat web service to obtain the information of each media group in the media distribution management module and the media information in each media group; Step 4: Distribute various customized media programs to the outside world through nginx web service.
Citation Information
Patent Citations
A stream media distribution server applicable to online VoD or living broadcast
CN101267541A
Method and platform system for realizing Web content editing of set top box
CN111464872A