WO2018019167A1 - Set top box-based live sharing method and system - Google Patents

Set top box-based live sharing method and system Download PDF

Info

Publication number
WO2018019167A1
WO2018019167A1 PCT/CN2017/093538 CN2017093538W WO2018019167A1 WO 2018019167 A1 WO2018019167 A1 WO 2018019167A1 CN 2017093538 W CN2017093538 W CN 2017093538W WO 2018019167 A1 WO2018019167 A1 WO 2018019167A1
Authority
WO
WIPO (PCT)
Prior art keywords
live
top box
index file
list
file
Prior art date
Application number
PCT/CN2017/093538
Other languages
French (fr)
Chinese (zh)
Inventor
徐伟杰
Original Assignee
深圳创维数字技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳创维数字技术有限公司 filed Critical 深圳创维数字技术有限公司
Publication of WO2018019167A1 publication Critical patent/WO2018019167A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/43615Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8455Structuring of content, e.g. decomposing content into time segments involving pointers to the content, e.g. pointers to the I-frames of the video stream

Definitions

  • the present disclosure relates to the field of set top box technologies, for example, to a live set sharing method and system based on a set top box.
  • the home devices in the same home LAN can share resources through a sharing protocol (such as Digital Living Network Alliance DLNA or Apple Airplay technology). For example, music, videos and pictures, etc. Set-top boxes are important home devices and occupy an important position in the home LAN.
  • a sharing protocol such as Digital Living Network Alliance DLNA or Apple Airplay technology.
  • DLNA Digital Living Network Alliance
  • Apple Airplay technology For example, music, videos and pictures, etc.
  • Set-top boxes are important home devices and occupy an important position in the home LAN.
  • the live stream of the set top box carries the scrambling protection due to the copyright protection problem, and the live stream value carrying the scrambling protection can only be descrambled and played by the set top box. Then, when other devices in the home LAN want to watch the live program, the set-top box needs to descramble the live stream first, and then the set-top box then descrambles and shares the live stream to other devices through the sharing protocol.
  • the sharing protocols adopted by existing home LAN shared resources depend on specific media files or network resource URLs (Uniform Resource Locators).
  • the live stream of the set-top box does not have a specific media file and a specific URL. Therefore, other devices in the home LAN that support the sharing protocol cannot discover the live stream of the set-top box, and cannot share the live stream of the set-top box.
  • the existing technology In order to solve the problem of sharing the live stream of the set top box, the existing technology generally uses an extended sharing protocol or a proprietary protocol to share the live stream.
  • the existing smart devices follow the standard sharing protocol, which makes it impossible to share live streams between many devices and set-top boxes, which reduces sharing compatibility between devices.
  • the technical problem to be solved by the present disclosure is to disclose a live sharing method and system based on a set top box to solve the problem of poor sharing compatibility existing in the existing live resource sharing method.
  • a live set sharing method based on a set top box comprising:
  • the smart terminal acquires a live index file list pre-stored by the set top box, and sends a play request instruction to the set top box, where the play request instruction includes the selected target live index file;
  • the set top box creates a corresponding live data file according to the target live index file, and obtains a corresponding media code stream according to the program information corresponding to the target live index file;
  • the smart terminal re-acquires the target live index file, parses the media stream, and plays the same.
  • the smart terminal obtains a live index file list pre-stored by the set-top box, and sends a play request instruction to the set-top box, where the play request command includes the selected target live index file before:
  • the set-top box establishes a corresponding live index file list according to the live program list information, and the live index file in the live index file list has a one-to-one correspondence with the program information in the live program list information.
  • the set-top box establishes a corresponding live index file list according to the live program list information, and the one-to-one correspondence between the live index file in the live index file list and the program information in the live program list information includes:
  • the live program listing information is obtained and stored in a pre-established live management file
  • the method further includes:
  • the method further includes:
  • the live management file and the live index file list are deleted, and the live management file and the live index file list are re-created when the set-top box is powered on again.
  • the live index file uses a unique identifier of a live program in the corresponding program information as a name, so that the live index file and the program information are in one-to-one correspondence.
  • the set top box creates a corresponding live data file according to the target live index file, and obtains the corresponding media code stream according to the program information corresponding to the target live index file, specifically:
  • the set top box receives and parses the play request, and creates a corresponding live data file according to the parsed target live index file;
  • Program information corresponding to the target live index file is frequency-locked, filtered, descrambled, and re-encoded to obtain a media code stream.
  • the number of the smart terminals is multiple, and multiple smart terminals select the same or different live index file lists at the same time.
  • a set-top box-based live broadcast sharing system includes: an intelligent terminal and a set top box; the set top box includes a modeling and writing module, and the smart terminal includes a sending module and an acquiring module;
  • the sending module is configured to obtain a live index file list pre-stored by the set top box, and send a play request instruction to the set top box, where the play request instruction includes the selected target live index file;
  • the creating module is configured to create a corresponding live data file according to the target live index file, and obtain a corresponding media code stream according to the program information corresponding to the target live index file;
  • the writing module is configured to write the media code stream into the live data file, and dump the media code stream in the live data file to the target live index file;
  • the acquiring module is configured to re-acquire the target live index file, parse the media stream, and play the same.
  • the set top box further includes:
  • the preset module is configured to establish a corresponding live index file list according to the live program list information, where the live index file in the live index file list and the program information in the live program list information are in one-to-one correspondence.
  • the preset module includes:
  • the obtaining unit is configured to obtain the live program list information and store it in a pre-established live management file when the set-top box is powered on;
  • the establishing unit is configured to create a corresponding live index file list according to the live program list information stored in the live management file, where the live index file in the live index file list and the program information in the live program list information are in one-to-one correspondence.
  • the set top box further includes:
  • the saving module is configured to save the live index file list when the set top box is powered off, and obtain a current live program list when the set top box is powered on again;
  • the update module is configured to update the live program list stored in the management file according to the current live program list, and update the live index file list according to the live program list.
  • the set top box further includes:
  • the module is deleted, and the live management file and the live index file list are deleted when the set-top box is powered off, and the live management file and the live index file list are re-created when the set-top box is powered on again.
  • the live index file uses a unique identifier of a live program in the corresponding program information as a name, so that the live index file and the program information are in one-to-one correspondence.
  • the creating module specifically includes:
  • the parsing unit is configured to receive and parse the play request, and create a corresponding live data file according to the parsed target live index file;
  • the generating unit is configured to perform frequency locking, filtering data, descrambling, and re-encoding the program information corresponding to the target live index file to obtain a media code stream.
  • the number of the smart terminals is multiple, and multiple smart terminals simultaneously select to play the same or different live programs.
  • a non-transitory computer readable storage medium storing computer executable instructions arranged to perform a set top box based live broadcast sharing method as described above.
  • An electronic device comprising:
  • At least one processor At least one processor
  • a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processing
  • the set top box based live sharing method according to any one of the preceding claims.
  • the present disclosure provides a live set sharing method and system based on a set top box, which establishes a live broadcast index file in advance in a set top box, and then generates a corresponding live broadcast according to a smart terminal sending a play request instruction.
  • the live resource sharing of the protocol improves the compatibility of shared devices.
  • Embodiment 1 is a flowchart of Embodiment 1 of a live set sharing method based on a set top box according to the present disclosure
  • FIG. 3 is a flowchart of Embodiment 2 of a live set sharing method based on a set top box according to the present disclosure
  • step 201 disclosed in Embodiment 2;
  • FIG. 5 is a flowchart of Embodiment 3 of a live set sharing method based on a set top box according to the present disclosure
  • FIG. 6 is a flowchart of Embodiment 4 of a set-top box-based live broadcast sharing method provided by the present disclosure
  • FIG. 7 is a schematic structural diagram of a set-top box-based live broadcast sharing system provided by the present disclosure.
  • FIG. 8 is a schematic diagram showing the hardware structure of an electronic device according to the present disclosure.
  • the smart terminal obtains the live index file list in the set top box through the standard sharing protocol, and requests the target index file in the live index file list, and the set top box creates a corresponding live data file according to the target live index file. And converting the media code stream into the live data file by converting the target index file into a media stream of the corresponding live program content, and transferring the live data file to the live index file through the live data file, and finally the smart After the terminal re-acquires the live index file, the media stream corresponding to the live program can be obtained to share the live program.
  • FIG. 1 is a flowchart of Embodiment 1 of a live set sharing method based on a set top box according to the present disclosure.
  • the method includes:
  • Step 101 The smart terminal acquires a live index file list pre-stored by the set top box, and sends a play request instruction to the set top box, where the play request instruction includes the selected target live index file.
  • the smart terminal and the set top box are in the same local area network, and the set top box is powered on and in a normal working mode, and the smart terminal can select a live index file list pre-stored by the set top box through a sharing protocol.
  • the sharing protocol is a standard sharing protocol, such as the Digital Living Network Alliance DLNA or Apple Airplay technology.
  • the live index file list is stored in the shared directory of the set top box, so that the smart terminal can obtain the live index file list through a sharing protocol. And after the smart terminal obtains the live index file list, the live broadcast program corresponding to the target live index file may be requested to be played by selecting a target live index file in the live index file list.
  • the live index file list may include one or more live index files, and each live index file corresponds to one live program, and the smart terminal may play the live index file in a manner of playing regular media.
  • two shared subdirectories are set under the shared directory of the set top box, which are a multimedia directory and a live multimedia directory.
  • the multimedia directory stores conventional multimedia files, such as mkv, rmvb, mp3, jpg, etc.; the live multimedia directory stores live index files, such as cctv1.ts, cctv5.ts, and the like.
  • live index file When the live index file is selected to be played, it is equivalent to sharing the live program corresponding to the live index file. For example, when cctv1.ts is selected for playback, the live program of cctv1 is shared.
  • Step 102 The set top box creates a corresponding live data file according to the target live index file, and obtains a corresponding media code stream according to the program information corresponding to the target live index file.
  • the set top box creates a corresponding live data file according to the target live index file requested by the smart terminal, and refers to controlling the underlying driver (live file management driver) according to the smart terminal when the set top box receives the play request sent by the smart terminal.
  • the target live index file carried by the play request creates a corresponding live data file. That is to say, the smart terminal requests the play target live index file to be a control instruction for creating a live data file, and when receiving the request to play the target live index file, creating a corresponding live data file.
  • the live data file and the live index file are in one-to-one correspondence, so that the media code stream of the live program can be accurately transferred to the live index file through the live data file, avoiding The problem that the live program shared to the smart terminal is inconsistent with the live program requested.
  • the live index file and the prefix of the live data file may be the same name, and the suffix is used to distinguish the two. For example, if the live index file cctv1.ts is used, the live data file corresponding to the live index file is cctv1.data. That is to say, the ".ts" is used to indicate the live index file, and the ".data” is used to indicate the live data file, and the live index file has the same prefix name as the corresponding live data file.
  • the set-top box creates a corresponding live data file according to the target live index file, and obtains the corresponding media code stream according to the program information corresponding to the target live index file, which may include the following steps:
  • Step 1021 The set top box receives the play request of the smart terminal, and parses the play request to obtain the target live index file carried by the set.
  • Step 1022 Control a live file management driver to create a live data file in the file system, where the live data file corresponds to the target live index file;
  • Step 1023 After the live data file is created, the program information corresponding to the target live index file is frequency-locked, filtered, descrambled, and re-encoded to obtain a media code stream.
  • the live file management driver runs in the system kernel, and the live data file can be created in the file system by using the live file management driver.
  • the program resource of the target live index file is frequency-locked, filtered, descrambled, and re-encoded in the set-top box, and the program resource is encoded into a media code stream.
  • the method for processing media data by the existing set top box used in the frequency locking, filtering data, descrambling and re-encoding is not described here.
  • Step 103 Write the media code stream into the live data file, and transfer the media code stream in the live data file to the target live index file.
  • the code stream is written into the live data file, and the live file management driver running in the system kernel searches for the media stream in the live data file, and the The media stream is transferred to its corresponding live index file in real time for the smart terminal to obtain.
  • Step 104 The smart terminal re-acquires the target live index file, parses the media stream, and plays the same.
  • the set-top box sends the feedback information to the smart terminal by using the sharing protocol, and the smart terminal re-acquires the target live index file according to the feedback information, parses the media stream, and plays the same. Realized the sharing of live programs. It is worth noting that the smart terminal can obtain the target live index file through a sharing protocol.
  • This embodiment discloses a live broadcast sharing method based on a set top box. As shown in FIG. 3, the method includes:
  • Step 201 When the set-top box is started, obtain the live broadcast program list information that is supported by the set-top box, and establish a corresponding live index file list according to the live broadcast program list information, where the live index file list and the live broadcast program list in the live index file list are One-to-one correspondence of program information in the information;
  • Step 202 The smart terminal acquires a live index file list pre-stored by the set top box, and sends a play request instruction to the set top box, where the play request instruction includes the selected target live index file;
  • Step 203 The set-top box creates a corresponding live data file according to the target live index file, and obtains a corresponding media code stream according to the program information corresponding to the target live index file;
  • Step 204 Write the media code stream into the live data file, and transfer the media code stream in the live data file to the target live index file.
  • Step 205 The smart terminal re-acquires the target live index file, parses the media stream, and plays the same.
  • the live index file list is established according to the live program list information supported by the set top box, and the live index file in the live index file list and the program information in the live program list information are in one-to-one correspondence, so that All live resources supported by the set top box can be shared to the smart terminal through a standard sharing protocol, and The smart terminal can quickly determine the live resource required by the smart terminal according to the live index file, thereby improving the efficiency of resource sharing.
  • the step 201 may specifically include the following steps:
  • Step 2012 The live file management driver controls the set top box to create a live management file for storing the live program list information in the file system;
  • the live management file After the live management file is created, the current live program list information is obtained and the live program list information is stored in the live management file.
  • step 2014 the live file management driver creates a corresponding live index file list according to the live program list information, wherein the live index file list and the live program list information are in one-to-one correspondence.
  • a live management file for storing the live program list information is created in the file system, and the current live program list information is stored in the live management file, and then the live program in the live management file is The list information establishes a corresponding live index file list.
  • the live index file list includes a plurality of live index files.
  • the name of the live index file adopts a unique identifier of the corresponding live program information, so that the live index file and the live program information are in one-to-one correspondence, and the name of the live index file can be quickly Accurately determine the live program it represents.
  • This embodiment discloses a live broadcast sharing method based on a set top box. As shown in FIG. 5, the method includes:
  • Step 301 When the set-top box is started, obtain the live broadcast program list information that is supported by the set-top box, and establish a corresponding live index file list according to the live broadcast program list information, where the live index file and the live broadcast program list in the live index file list One-to-one correspondence of program information in the information;
  • Step 302 The smart terminal acquires a live index file list pre-stored by the set-top box by using the sharing protocol, and sends a play request to the set-top box, where the play request carries the selected target live index file;
  • Step 303 The set-top box creates a corresponding live data file according to the target live index file, and obtains a corresponding media code stream according to the program information corresponding to the target live index file.
  • Step 304 Write the media code stream into the live data file, and transfer the media code stream in the live data file to the target live index file.
  • Step 305 The smart terminal re-acquires the target live index file, parses the media stream, and plays the same.
  • Step 306 When the set top box is powered off, delete the live management file and the live index file.
  • the set-top box-based live broadcast sharing method disclosed in this embodiment automatically deletes the live management file and the live index file when the set-top box is powered off, and re-creates the live management file and the live index file, so as to ensure the live index file and the current live program list information of the set-top box. Correspondingly, improve the accuracy and comprehensiveness of the live sharing of the set-top box.
  • This embodiment discloses a live broadcast sharing method based on a set top box, as shown in FIG. 6, which includes:
  • Step 401 When the set-top box is started, obtain the live broadcast program list information that is supported by the set-top box, and establish a corresponding live index file list according to the live broadcast program list information, where the live index file and the live broadcast program list in the live index file list One-to-one correspondence of program information in the information;
  • Step 402 The smart terminal acquires a live index file list pre-stored by the set-top box through the sharing protocol, and sends a play request to the set-top box, where the play request carries the selected target live index file;
  • Step 403 The set-top box creates a corresponding live data file according to the target live index file, and obtains a corresponding media code stream according to the program information corresponding to the target live index file.
  • Step 404 Write the media code stream to the live data file, and transfer the media code stream in the live data file to the target live index file.
  • Step 405 The smart terminal re-acquires the target live index file, parses the media stream, and plays the same.
  • Step 406 When the set top box is powered off, save the live index file.
  • Step 407 Acquire a current live program list when the set-top box is powered on again, update the live program list stored in the live management file according to the current live program list, and update the live index file list according to the live program list.
  • the live set sharing method based on the set top box disclosed in the embodiment, wherein the set top box is shut down to retain the existing live management file and the live index, and when the set top box is powered on again, the current live program list information is obtained, and the current live program list is used.
  • the information updates the live program list information stored in the management file, and updates the live index file in the live share directory according to the live program list information. In this way, when the set-top box cannot load the live program list information, the live broadcast resource is shared to the smart terminal by using the saved live index file.
  • This embodiment discloses a set-top box-based live broadcast sharing system, as shown in FIG. 5, including: a smart terminal 10 and a set top box 20; the set top box 20 includes a creating module 21 and a writing module 22, and the smart terminal includes a sending module. 11 and the acquisition module 12;
  • the sending module 11 is configured to obtain a live index file list pre-stored by the set-top box, and send a play request instruction to the set-top box, where the play request command includes the selected target live index file;
  • the creating module 21 is configured to create a corresponding live data file according to the target live index file, and obtain a corresponding media code stream according to the program information corresponding to the target live index file;
  • the writing module 22 is configured to write the media code stream into the live data file, and dump the media code stream in the live data file to the target live index file;
  • the obtaining module 12 is configured to re-acquire the target live index file, parse the media stream, and play the same.
  • the set top box further includes:
  • the preset module is configured to establish a corresponding live index file list according to the live program list information, where the live index file in the live index file list and the program information in the live program list information are in one-to-one correspondence.
  • the preset module includes:
  • the obtaining unit is configured to obtain the live program list information and store it in a pre-established live management file when the set-top box is powered on;
  • the establishing unit is configured to create a corresponding live index file list according to the live program list information stored in the live management file, where the live index file in the live index file list and the program information in the live program list information are in one-to-one correspondence.
  • the live index file uses a unique identifier of a live program in the corresponding program information as a name, so that the live index file and the program information are in one-to-one correspondence.
  • the creating module specifically includes:
  • the parsing unit is configured to receive and parse the play request, and create a corresponding live data file according to the parsed target live index file;
  • the generating unit is configured to perform frequency locking, filtering data, descrambling, and re-encoding the program information corresponding to the target live index file to obtain a media code stream.
  • the set top box further includes:
  • the saving module is configured to save the live index file when the set top box is powered off, and obtain a current live program list when the set top box is powered on again;
  • the update module is configured to update the live program list stored in the live management file according to the current live program list, and update the existing live index file list according to the live program list.
  • the set top box further includes:
  • the module is deleted, and the live management file and the live index file list are deleted when the set-top box is powered off, and the live management file and the live index file list are re-created when the set-top box is powered on again.
  • the number of the smart terminals is multiple, and multiple smart terminals simultaneously select to play the same or different live programs.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the present disclosure also provides a non-transitory computer readable storage medium storing computer executable instructions arranged to perform the method of any of the above embodiments.
  • the present disclosure also provides an electronic device, which can perform corresponding method steps performed by the set top box.
  • the electronic device includes:
  • At least one processor 80 which is exemplified by a processor 80 in FIG. 8; a display 81; and a memory 82, which may further include a communication interface 83 and a bus 84.
  • the processor 80, the display screen 81, the memory 82, and the communication interface 83 can complete communication with each other through the bus 84.
  • the display screen 81 is set to display a preset user guide interface in the initial setting mode.
  • Communication interface 83 can transmit information.
  • Processor 80 can call logic instructions in memory 82, To perform the method in the above embodiment.
  • logic instructions in memory 82 described above may be implemented in the form of software functional units and sold or used as separate products, and may be stored in a computer readable storage medium.
  • the memory 82 is a computer readable storage medium that can be configured to store software programs, computer executable programs, program instructions or modules corresponding to the methods in the embodiments of the present disclosure.
  • the processor 80 executes the functional application and data processing by executing software programs, instructions or modules stored in the memory 82, i.e., implements the methods of the above-described embodiments.
  • the memory 82 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the smart terminal, and the like. Further, the memory 82 may include a high speed random access memory, and may also include a nonvolatile memory. For example, a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., may also be used to store a program code. State storage medium.
  • the present disclosure may also provide a terminal, the terminal may perform corresponding method steps performed by the smart terminal, and the terminal may also include at least one processor; a display screen; and a memory (memoty), which may further include Communication Interface and Bus.
  • the processor, display screen, memory and communication interface can complete communication with each other through the bus.
  • the display is set to display the user guide interface preset in the initial setup mode.
  • the communication interface can transmit information.
  • the processor can invoke logic instructions in the memory to perform the associated step method performed by the smart terminal in the above embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present disclosure relates to a set top box-based live sharing method and system. In the method, a live index file is pre-established in a set top box, then a corresponding live data file is created according to a play request instruction sent by an intelligent terminal, a media bitstream of live program information is stored to the live data file, and at last, the media bitstream in the live data file is transferred into the live index file, so that the media bitstream is shared to the intelligent terminal, thereby implementing standard sharing protocol-based live resource sharing, and improving the compatibility of a sharing device.

Description

基于机顶盒的直播共享方法及***Live sharing method and system based on set top box 技术领域Technical field
本公开涉及机顶盒技术领域,例如涉及一种基于机顶盒的直播共享方法及***。The present disclosure relates to the field of set top box technologies, for example, to a live set sharing method and system based on a set top box.
背景技术Background technique
随着网络的普及,越来越多的家庭设备通过网络连接而组成家庭局域网,所述处于同一家庭局域网内的家庭设备可以通过共享协议(比如:数字生活网络联盟DLNA或苹果Airplay技术)共享资源,例如,音乐,视频和图片等。机顶盒是重要的家庭设备,其家庭局域网中占有重要的地位。With the popularity of the network, more and more home devices are connected to each other through a network to form a home LAN. The home devices in the same home LAN can share resources through a sharing protocol (such as Digital Living Network Alliance DLNA or Apple Airplay technology). For example, music, videos and pictures, etc. Set-top boxes are important home devices and occupy an important position in the home LAN.
目前,机顶盒的直播流由于版权保护问题均携带加扰保护,并且所述携带加扰保护的直播流值只有机顶盒可以进行解扰播放。那么,家庭局域网内的其它设备想观看直播节目时,首先需要机顶盒对直播流进行解扰,然后机顶盒再将解扰后通过共享协议将所述直播流共享给其他设备。但是,现有的家庭局域网共享资源采用的共享协议均依赖于具体的媒体文件或网络资源URL(Uniform Resource Locator,统一资源定位符)。而机顶盒的直播流没有具体的媒体文件及具体的URL存在,从而家庭局域网内其它支持共享协议的设备无法发现机顶盒的直播流,无法实现机顶盒的直播流的共享。At present, the live stream of the set top box carries the scrambling protection due to the copyright protection problem, and the live stream value carrying the scrambling protection can only be descrambled and played by the set top box. Then, when other devices in the home LAN want to watch the live program, the set-top box needs to descramble the live stream first, and then the set-top box then descrambles and shares the live stream to other devices through the sharing protocol. However, the sharing protocols adopted by existing home LAN shared resources depend on specific media files or network resource URLs (Uniform Resource Locators). The live stream of the set-top box does not have a specific media file and a specific URL. Therefore, other devices in the home LAN that support the sharing protocol cannot discover the live stream of the set-top box, and cannot share the live stream of the set-top box.
为了解决机顶盒直播流的共享问题,现有技术普遍采用扩展共享协议或者私有协议来实现直播流的共享。但是现有的智能设备大多数遵循标准共享协议,这使得很多设备与机顶盒之间不能共享直播流,降低了设备之间的共享兼容性。In order to solve the problem of sharing the live stream of the set top box, the existing technology generally uses an extended sharing protocol or a proprietary protocol to share the live stream. However, most of the existing smart devices follow the standard sharing protocol, which makes it impossible to share live streams between many devices and set-top boxes, which reduces sharing compatibility between devices.
因而现有技术还有待改进和提高。Therefore, the prior art has yet to be improved and improved.
公开内容 Public content
本公开要解决的技术问题在于,针对现有技术的不足,公开一种基于机顶盒的直播共享方法及***,以解决现有直播资源共享方法中存在的共享兼容性差的问题。The technical problem to be solved by the present disclosure is to disclose a live sharing method and system based on a set top box to solve the problem of poor sharing compatibility existing in the existing live resource sharing method.
为了解决上述技术问题,本公开所采用的技术方案如下:In order to solve the above technical problem, the technical solution adopted by the present disclosure is as follows:
一种基于机顶盒的直播共享方法,其包括:A live set sharing method based on a set top box, comprising:
智能终端获取机顶盒预存的直播索引文件列表,并向机顶盒发送播放请求指令,所述播放请求指令包含其选中的目标直播索引文件;The smart terminal acquires a live index file list pre-stored by the set top box, and sends a play request instruction to the set top box, where the play request instruction includes the selected target live index file;
机顶盒根据所述目标直播索引文件创建其对应的直播数据文件,并根据所述目标直播索引文件对应的节目信息获取到对应的媒体码流;以及The set top box creates a corresponding live data file according to the target live index file, and obtains a corresponding media code stream according to the program information corresponding to the target live index file;
将所述媒体码流写入所述直播数据文件,并将所述直播数据文件内的媒体码流转存至所述目标直播索引文件;Writing the media code stream to the live data file, and transferring the media code stream in the live data file to the target live index file;
智能终端重新获取所述目标直播索引文件,解析所述媒体码流并进行播放。The smart terminal re-acquires the target live index file, parses the media stream, and plays the same.
可选的,所述智能终端获取机顶盒预存的直播索引文件列表,并向机顶盒发送播放请求指令,所述播放请求指令包含其选中的目标直播索引文件之前还包括:Optionally, the smart terminal obtains a live index file list pre-stored by the set-top box, and sends a play request instruction to the set-top box, where the play request command includes the selected target live index file before:
机顶盒根据直播节目列表信息建立相应的直播索引文件列表,所述直播索引文件列表内的直播索引文件与直播节目列表信息内的节目信息一一对应。The set-top box establishes a corresponding live index file list according to the live program list information, and the live index file in the live index file list has a one-to-one correspondence with the program information in the live program list information.
可选的,所述机顶盒根据直播节目列表信息建立相应的直播索引文件列表,所述直播索引文件列表内的直播索引文件与直播节目列表信息内的节目信息一一对应具体包括:Optionally, the set-top box establishes a corresponding live index file list according to the live program list information, and the one-to-one correspondence between the live index file in the live index file list and the program information in the live program list information includes:
机顶盒开机时,获取直播节目列表信息,并将其存储于预先建立的直播管理文件;When the set-top box is powered on, the live program listing information is obtained and stored in a pre-established live management file;
根据所述直播管理文件内存储的直播节目列表信息创建相应的直播索引文件列表,所述直播索引文件列表内的直播索引文件与直播节目列表信息内的节目信息一一对应。And generating a corresponding live index file list according to the live program list information stored in the live management file, where the live index file in the live index file list and the program information in the live program list information are in one-to-one correspondence.
可选的,所述方法还包括: Optionally, the method further includes:
机顶盒关机时,保存所述直播索引文件列表,并在机顶盒再次开机时获取当前直播节目列表;When the set-top box is powered off, save the live index file list, and obtain a current live program list when the set-top box is powered on again;
根据所述当前直播节目列表更新所述直播管理文件内存储的直播节目列表,并根据所述直播节目列表更新直播索引文件列表。Updating a live program list stored in the live management file according to the current live program list, and updating the live index file list according to the live program list.
可选的,所述方法还包括:Optionally, the method further includes:
机顶盒关机时,将所述直播管理文件和直播索引文件列表删除,并在机顶盒再次开机时重新创建直播管理文件以及直播索引文件列表。When the set-top box is powered off, the live management file and the live index file list are deleted, and the live management file and the live index file list are re-created when the set-top box is powered on again.
可选的,所述直播索引文件采用其对应的节目信息内直播节目的唯一标识作为名称,以使得所述直播索引文件与节目信息一一对应。Optionally, the live index file uses a unique identifier of a live program in the corresponding program information as a name, so that the live index file and the program information are in one-to-one correspondence.
可选的,所述机顶盒根据所述目标直播索引文件创建其对应的直播数据文件,并根据所述目标直播索引文件对应的节目信息获取到对应的媒体码流具体包括:Optionally, the set top box creates a corresponding live data file according to the target live index file, and obtains the corresponding media code stream according to the program information corresponding to the target live index file, specifically:
机顶盒接收并解析所述播放请求,根据解析得到的目标直播索引文件创建其对应的直播数据文件;The set top box receives and parses the play request, and creates a corresponding live data file according to the parsed target live index file;
对所述目标直播索引文件对应的节目信息进行锁频、过滤数据、解扰以及重新编码以得到媒体码流。Program information corresponding to the target live index file is frequency-locked, filtered, descrambled, and re-encoded to obtain a media code stream.
可选的,所述智能终端的数量为多个,且多个智能终端同时选择相同或不同的直播索引文件列表。Optionally, the number of the smart terminals is multiple, and multiple smart terminals select the same or different live index file lists at the same time.
一种基于机顶盒的直播共享***,其包括:智能终端和机顶盒;所述机顶盒包括建模及写入模块,所述智能终端包括发送模块以及获取模块;A set-top box-based live broadcast sharing system includes: an intelligent terminal and a set top box; the set top box includes a modeling and writing module, and the smart terminal includes a sending module and an acquiring module;
所述发送模块,设置于获取机顶盒预存的直播索引文件列表,并向机顶盒发送播放请求指令,所述播放请求指令包含其选中的目标直播索引文件;The sending module is configured to obtain a live index file list pre-stored by the set top box, and send a play request instruction to the set top box, where the play request instruction includes the selected target live index file;
所述创建模块,设置于根据所述目标直播索引文件创建其对应的直播数据文件,并根据所述目标直播索引文件对应的节目信息获取到对应的媒体码流; The creating module is configured to create a corresponding live data file according to the target live index file, and obtain a corresponding media code stream according to the program information corresponding to the target live index file;
所述写入模块,设置于将所述媒体码流写入所述直播数据文件,并将所述直播数据文件内的媒体码流转存至所述目标直播索引文件;The writing module is configured to write the media code stream into the live data file, and dump the media code stream in the live data file to the target live index file;
所述获取模块,设置于重新获取所述目标直播索引文件,解析所述媒体码流并进行播放。The acquiring module is configured to re-acquire the target live index file, parse the media stream, and play the same.
可选的,所述机顶盒还包括:Optionally, the set top box further includes:
预设模块,设置于根据直播节目列表信息建立相应的直播索引文件列表,所述直播索引文件列表内的直播索引文件与直播节目列表信息内的节目信息一一对应。The preset module is configured to establish a corresponding live index file list according to the live program list information, where the live index file in the live index file list and the program information in the live program list information are in one-to-one correspondence.
可选的,所述预设模块包括:Optionally, the preset module includes:
获取单元,设置于若机顶盒开机时,获取直播节目列表信息并将其存储于预先建立的直播管理文件;The obtaining unit is configured to obtain the live program list information and store it in a pre-established live management file when the set-top box is powered on;
建立单元,设置于根据所述直播管理文件内存储的直播节目列表信息创建对应的直播索引文件列表,所述直播索引文件列表内的直播索引文件与直播节目列表信息内的节目信息一一对应。The establishing unit is configured to create a corresponding live index file list according to the live program list information stored in the live management file, where the live index file in the live index file list and the program information in the live program list information are in one-to-one correspondence.
可选的,所述机顶盒还包括:Optionally, the set top box further includes:
保存模块,设置于若机顶盒关机时,保存所述直播索引文件列表,并在机顶盒再次开机时获取当前直播节目列表;The saving module is configured to save the live index file list when the set top box is powered off, and obtain a current live program list when the set top box is powered on again;
更新模块,设置于根据所述当前直播节目列表更新管理文件内存储的直播节目列表,并根据所述直播节目列表更新直播索引文件列表。The update module is configured to update the live program list stored in the management file according to the current live program list, and update the live index file list according to the live program list.
可选的,所述机顶盒还包括:Optionally, the set top box further includes:
删除模块,设置于若机顶盒关机时,将所述直播管理文件和直播索引文件列表删除,并在机顶盒再次开机时重新创建直播管理文件以及直播索引文件列表。The module is deleted, and the live management file and the live index file list are deleted when the set-top box is powered off, and the live management file and the live index file list are re-created when the set-top box is powered on again.
可选的,所述直播索引文件采用其对应的节目信息内直播节目的唯一标识作为名称,以使得所述直播索引文件与节目信息一一对应。Optionally, the live index file uses a unique identifier of a live program in the corresponding program information as a name, so that the live index file and the program information are in one-to-one correspondence.
可选的,所述创建模块具体包括:Optionally, the creating module specifically includes:
解析单元,设置于接收并解析所述播放请求,并根据解析得到的目标直播索引文件创建其对应的直播数据文件; The parsing unit is configured to receive and parse the play request, and create a corresponding live data file according to the parsed target live index file;
生成单元,设置于对所述目标直播索引文件对应的节目信息进行锁频、过滤数据、解扰以及重新编码以得到媒体码流。The generating unit is configured to perform frequency locking, filtering data, descrambling, and re-encoding the program information corresponding to the target live index file to obtain a media code stream.
可选的,所述智能终端的数量为多个,且多个智能终端同时选择播放相同或不同的直播节目。Optionally, the number of the smart terminals is multiple, and multiple smart terminals simultaneously select to play the same or different live programs.
一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行如上任一项所述的基于机顶盒的直播共享方法。A non-transitory computer readable storage medium storing computer executable instructions arranged to perform a set top box based live broadcast sharing method as described above.
一种电子设备,包括:An electronic device comprising:
至少一个处理器;以及At least one processor;
与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行如上任一项所述的基于机顶盒的直播共享方法。a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processing The set top box based live sharing method according to any one of the preceding claims.
有益效果:与现有技术相比,本公开提供了一种基于机顶盒的直播共享方法及***,所述方法通过在机顶盒内预先建立直播索引文件,然后根据智能终端发送播放请求指令创建相应的直播数据文件,并将所述直播节目信息的媒体码流存入所述直播数据文件,最后再将直播数据文件中的媒体码流转至直播索引文件内,以共享给智能终端,实现了基于标准共享协议的直播资源共享,从而提高了共享设备的兼容性。Advantageous Effects: Compared with the prior art, the present disclosure provides a live set sharing method and system based on a set top box, which establishes a live broadcast index file in advance in a set top box, and then generates a corresponding live broadcast according to a smart terminal sending a play request instruction. Data file, and storing the media stream of the live program information into the live data file, and finally transferring the media code stream in the live data file to the live index file for sharing to the smart terminal, and implementing standard-based sharing The live resource sharing of the protocol improves the compatibility of shared devices.
附图说明DRAWINGS
为了清楚地说明本公开实施例中的技术方案,下面将对本公开实施例描述中使用的附图进行介绍。In order to clearly explain the technical solutions in the embodiments of the present disclosure, the drawings used in the description of the embodiments of the present disclosure will be described below.
图1为本公开提供的基于机顶盒的直播共享方法实施例一的流程图;1 is a flowchart of Embodiment 1 of a live set sharing method based on a set top box according to the present disclosure;
图2为实施例一公开的步骤101的流程图;2 is a flow chart of the step 101 disclosed in the first embodiment;
图3为本公开提供的基于机顶盒的直播共享方法实施例二的流程图;FIG. 3 is a flowchart of Embodiment 2 of a live set sharing method based on a set top box according to the present disclosure;
图4为实施例二公开的步骤201的流程图; 4 is a flow chart of step 201 disclosed in Embodiment 2;
图5为本公开提供的基于机顶盒的直播共享方法实施例三的流程图;FIG. 5 is a flowchart of Embodiment 3 of a live set sharing method based on a set top box according to the present disclosure;
图6为本公开提供的基于机顶盒的直播共享方法实施例四的流程图;FIG. 6 is a flowchart of Embodiment 4 of a set-top box-based live broadcast sharing method provided by the present disclosure;
图7为本公开提供的基于机顶盒的直播共享***的结构原理图;以及FIG. 7 is a schematic structural diagram of a set-top box-based live broadcast sharing system provided by the present disclosure;
图8为本公开的电子设备的硬件结构示意图。FIG. 8 is a schematic diagram showing the hardware structure of an electronic device according to the present disclosure.
具体实施方式detailed description
为使本公开采用的技术方案更加清楚,下面将结合附图对本公开实施例的技术方案作详细描述,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。在不冲突的情况下,以下实施例以及实施例中的技术特征可以相互任意组合。The technical solutions of the embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings, which are only a part of the embodiments of the present disclosure, and not all of the embodiments. The technical features in the following embodiments and the embodiments may be arbitrarily combined with each other without conflict.
实施例一Embodiment 1
本公开实施例中,智能终端通过标准共享协议获取机顶盒内的直播索引文件列表,并在所述直播索引文件列表中请求目标索引文件,机顶盒根据所述目标直播索引文件创建对应的直播数据文件,以及通过将所述目标索引文件转换为对应的直播节目内容的媒体码流,从而将所述媒体码流写入所述直播数据文件,并通过直播数据文件转存至直播索引文件内,最后智能终端重新获取所述直播索引文件,便可以获取到对应直播节目的媒体码流,以实现所述直播节目的共享。这样解决了直播节目因没有具体的媒体文件或网络资源URL,需要采用采用扩展共享协议或者私有协议来实现直播资源的共享,从而造成的部分遵循标准共享协议的智能终端不能共享机顶盒的直播资源的问题。In the embodiment of the present disclosure, the smart terminal obtains the live index file list in the set top box through the standard sharing protocol, and requests the target index file in the live index file list, and the set top box creates a corresponding live data file according to the target live index file. And converting the media code stream into the live data file by converting the target index file into a media stream of the corresponding live program content, and transferring the live data file to the live index file through the live data file, and finally the smart After the terminal re-acquires the live index file, the media stream corresponding to the live program can be obtained to share the live program. This solves the problem that the live broadcast program does not have a specific media file or network resource URL, and needs to use the extended sharing protocol or the private protocol to share the live resource, so that some intelligent terminals that follow the standard sharing protocol cannot share the live resource of the set-top box. problem.
具体地,请参照图1,图1为本公开提供的基于机顶盒的直播共享方法的实施例一的流程图。所述方法包括:Specifically, please refer to FIG. 1 , which is a flowchart of Embodiment 1 of a live set sharing method based on a set top box according to the present disclosure. The method includes:
步骤101、智能终端获取机顶盒预存的直播索引文件列表,并向机顶盒发送播放请求指令,所述播放请求指令包含其选中的目标直播索引文件。 Step 101: The smart terminal acquires a live index file list pre-stored by the set top box, and sends a play request instruction to the set top box, where the play request instruction includes the selected target live index file.
具体地,所述智能终端与机顶盒处于同一局域网内且所述机顶盒开机并处于正常工作模式下,所述智能终端可以通过共享协议选择机顶盒预存的直播索引文件列表。其中,所述共享协议为标准共享协议,如数字生活网络联盟DLNA或苹果Airplay技术等。Specifically, the smart terminal and the set top box are in the same local area network, and the set top box is powered on and in a normal working mode, and the smart terminal can select a live index file list pre-stored by the set top box through a sharing protocol. The sharing protocol is a standard sharing protocol, such as the Digital Living Network Alliance DLNA or Apple Airplay technology.
所述直播索引文件列表存储于所述机顶盒的共享目录内,使得所述智能终端通过共享协议可以获取所述直播索引文件列表。并且,在所述智能终端获取到所述直播索引文件列表后,可以通过选择所述直播索引文件列表内的目标直播索引文件来请求播放所述目标直播索引文件对应的直播节目。所述直播索引文件列表内可以包含一个或多个直播索引文件,并且每个直播索引文件对应一个直播节目,所述智能终端可以像播放常规媒体的方式播放直播索引文件。在实际应用中,所述机顶盒的共享目录下设置两个共享子目录,分别为多媒体目录和直播多媒体目录。所述多媒体目录中存储常规多媒体文件,如,mkv,rmvb,mp3,jpg等;所述直播多媒体目录中存储直播索引文件,如,cctv1.ts,cctv5.ts等。当所述直播索引文件被选择播放时,相当于共享所述直播索引文件对应的直播节目。如,当cctv1.ts被选择播放时,所共享的为cctv1的直播节目。The live index file list is stored in the shared directory of the set top box, so that the smart terminal can obtain the live index file list through a sharing protocol. And after the smart terminal obtains the live index file list, the live broadcast program corresponding to the target live index file may be requested to be played by selecting a target live index file in the live index file list. The live index file list may include one or more live index files, and each live index file corresponds to one live program, and the smart terminal may play the live index file in a manner of playing regular media. In an actual application, two shared subdirectories are set under the shared directory of the set top box, which are a multimedia directory and a live multimedia directory. The multimedia directory stores conventional multimedia files, such as mkv, rmvb, mp3, jpg, etc.; the live multimedia directory stores live index files, such as cctv1.ts, cctv5.ts, and the like. When the live index file is selected to be played, it is equivalent to sharing the live program corresponding to the live index file. For example, when cctv1.ts is selected for playback, the live program of cctv1 is shared.
步骤102、机顶盒根据所述目标直播索引文件创建其对应的直播数据文件,并根据所述目标直播索引文件对应的节目信息获取到对应的媒体码流。Step 102: The set top box creates a corresponding live data file according to the target live index file, and obtains a corresponding media code stream according to the program information corresponding to the target live index file.
具体地,所述机顶盒根据智能终端请求播放的目标直播索引文件创建其对应的直播数据文件指的是当机顶盒接收到智能终端发送的播放请求时,控制底层驱动(直播文件管理驱动)根据智能终端播放请求携带的目标直播索引文件创建相应的直播数据文件。也就是说,智能终端请求播放目标直播索引文件是创建直播数据文件的控制指令,当接收到请求播放目标直播索引文件时,创建相应的直播数据文件。Specifically, the set top box creates a corresponding live data file according to the target live index file requested by the smart terminal, and refers to controlling the underlying driver (live file management driver) according to the smart terminal when the set top box receives the play request sent by the smart terminal. The target live index file carried by the play request creates a corresponding live data file. That is to say, the smart terminal requests the play target live index file to be a control instruction for creating a live data file, and when receiving the request to play the target live index file, creating a corresponding live data file.
所述直播数据文件与直播索引文件是一一对应的,这样可以准确的将直播节目的媒体码流通过直播数据文件转存至直播索引文件,避 免共享给智能终端的直播节目与其所请求的直播节目不一致的问题。在本实施例中,可以将直播索引文件与直播数据文件的前缀采用相同的名称,通过后缀对两者进行区分。如,直播索引文件cctv1.ts,那么该直播索引文件对应的直播数据文件为cctv1.data。也就是说,采用″.ts″表示直播索引文件,采用″.data″表示直播数据文件,并且直播索引文件与其对应的直播数据文件的前缀名称相同。The live data file and the live index file are in one-to-one correspondence, so that the media code stream of the live program can be accurately transferred to the live index file through the live data file, avoiding The problem that the live program shared to the smart terminal is inconsistent with the live program requested. In this embodiment, the live index file and the prefix of the live data file may be the same name, and the suffix is used to distinguish the two. For example, if the live index file cctv1.ts is used, the live data file corresponding to the live index file is cctv1.data. That is to say, the ".ts" is used to indicate the live index file, and the ".data" is used to indicate the live data file, and the live index file has the same prefix name as the corresponding live data file.
优选的,如图2所示,机顶盒根据所述目标直播索引文件创建其对应的直播数据文件,并根据所述目标直播索引文件对应的节目信息获取到对应的媒体码流具体可以包括如下步骤:Preferably, as shown in FIG. 2, the set-top box creates a corresponding live data file according to the target live index file, and obtains the corresponding media code stream according to the program information corresponding to the target live index file, which may include the following steps:
步骤1021、机顶盒接收智能终端的播放请求,并解析所述播放请求以获取其携带的目标直播索引文件;Step 1021: The set top box receives the play request of the smart terminal, and parses the play request to obtain the target live index file carried by the set.
步骤1022、控制直播文件管理驱动在文件***内创建直播数据文件,其中,所述直播数据文件与所述目标直播索引文件相对应;Step 1022: Control a live file management driver to create a live data file in the file system, where the live data file corresponds to the target live index file;
步骤1023、当直播数据文件创建完成后,对所述目标直播索引文件对应的节目信息进行锁频、过滤数据、解扰以及重新编码得到媒体码流。Step 1023: After the live data file is created, the program information corresponding to the target live index file is frequency-locked, filtered, descrambled, and re-encoded to obtain a media code stream.
具体地,所述直播文件管理驱动运行于***内核内,可以通所述直播文件管理驱动在文件***内创建直播数据文件。当直播数据文件创建后,机顶盒内会对所述目标直播索引文件对应节目资源进行锁频、过滤数据、解扰以及重新编码,将所述节目资源编码为媒体码流。这里所述锁频、过滤数据、解扰以及重新编码均采用的现有机顶盒对媒体数据的处理方法,这里不在赘述。Specifically, the live file management driver runs in the system kernel, and the live data file can be created in the file system by using the live file management driver. After the live data file is created, the program resource of the target live index file is frequency-locked, filtered, descrambled, and re-encoded in the set-top box, and the program resource is encoded into a media code stream. The method for processing media data by the existing set top box used in the frequency locking, filtering data, descrambling and re-encoding is not described here.
步骤103、将所述媒体码流写入所述直播数据文件,并将所述直播数据文件内的媒体码流转存至所述目标直播索引文件。Step 103: Write the media code stream into the live data file, and transfer the media code stream in the live data file to the target live index file.
具体地,当机顶盒准备完媒体码流之后,将所述码流写入直播数据文件,此时运行于***内核的直播文件管理驱动检索到直播数据文件中存有媒体码流,便将所述媒体码流实时转至其对应的直播索引文件,以供智能终端获取。 Specifically, after the set-top box prepares the media code stream, the code stream is written into the live data file, and the live file management driver running in the system kernel searches for the media stream in the live data file, and the The media stream is transferred to its corresponding live index file in real time for the smart terminal to obtain.
步骤104、智能终端重新获取所述目标直播索引文件,解析所述媒体码流并进行播放。Step 104: The smart terminal re-acquires the target live index file, parses the media stream, and plays the same.
具体,当直播索引文件中存在媒体码流时,机顶盒通过共享协议向智能终端发送反馈信息,智能终端根据所述反馈信息重新获取所述目标直播索引文件,解析所述媒体码流并进行播放,实现了直播节目的共享。值得说明的,所述智能终端可以通过共享协议获取所述目标直播索引文件。Specifically, when the media stream exists in the live index file, the set-top box sends the feedback information to the smart terminal by using the sharing protocol, and the smart terminal re-acquires the target live index file according to the feedback information, parses the media stream, and plays the same. Realized the sharing of live programs. It is worth noting that the smart terminal can obtain the target live index file through a sharing protocol.
实施例二Embodiment 2
本实施例公开了一种基于机顶盒的直播共享方法,如图3所示,其包括:This embodiment discloses a live broadcast sharing method based on a set top box. As shown in FIG. 3, the method includes:
步骤201、机顶盒启动时,获取其支持的所有直播节目列表信息,并根据所述直播节目列表信息建立相应的直播索引文件列表,其中,所述直播索引文件列表内的直播索引文件与直播节目列表信息内的节目信息一一对应;Step 201: When the set-top box is started, obtain the live broadcast program list information that is supported by the set-top box, and establish a corresponding live index file list according to the live broadcast program list information, where the live index file list and the live broadcast program list in the live index file list are One-to-one correspondence of program information in the information;
步骤202、智能终端获取机顶盒预存的直播索引文件列表,并向机顶盒发送播放请求指令,所述播放请求指令包含其选中的目标直播索引文件;Step 202: The smart terminal acquires a live index file list pre-stored by the set top box, and sends a play request instruction to the set top box, where the play request instruction includes the selected target live index file;
步骤203、机顶盒根据所述目标直播索引文件创建其对应的直播数据文件,并根据所述目标直播索引文件对应的节目信息获取到对应的媒体码流;以及Step 203: The set-top box creates a corresponding live data file according to the target live index file, and obtains a corresponding media code stream according to the program information corresponding to the target live index file;
步骤204、将所述媒体码流写入所述直播数据文件,并将所述直播数据文件内的媒体码流转存至所述目标直播索引文件;Step 204: Write the media code stream into the live data file, and transfer the media code stream in the live data file to the target live index file.
步骤205、智能终端重新获取所述目标直播索引文件,解析所述媒体码流并进行播放。Step 205: The smart terminal re-acquires the target live index file, parses the media stream, and plays the same.
具体地,所述直播索引文件列表是根据机顶盒支持的直播节目列表信息建立的,并且所述直播索引文件列表内的直播索引文件与所述直播节目列表信息内的节目信息一一对应,这样可以使得所述机顶盒支持的所有直播资源均可以通过标准共享协议共享给智能终端,并且 便于智能终端根据所述直播索引文件快速确定其需要的直播资源,提高了资源共享的效率。Specifically, the live index file list is established according to the live program list information supported by the set top box, and the live index file in the live index file list and the program information in the live program list information are in one-to-one correspondence, so that All live resources supported by the set top box can be shared to the smart terminal through a standard sharing protocol, and The smart terminal can quickly determine the live resource required by the smart terminal according to the live index file, thereby improving the efficiency of resource sharing.
在本实施例中,如图4所示,所述步骤201具体可以包括如下步骤:In this embodiment, as shown in FIG. 4, the step 201 may specifically include the following steps:
步骤2011、当机顶盒开机上电时,自动加载存储于***内核的直播文件管理驱动,以使得所述驱动运行于***内容内;Step 2011, when the set-top box is powered on, automatically loading a live file management driver stored in the system kernel, so that the driver runs in the system content;
步骤2012、直播文件管理驱动控制机顶盒在文件***中创建用于存储直播节目列表信息的直播管理文件;Step 2012: The live file management driver controls the set top box to create a live management file for storing the live program list information in the file system;
步骤2013、当所述直播管理文件创建完成后,获取当前直播节目列表信息并将所述直播节目列表信息存储于直播管理文件内;After the live management file is created, the current live program list information is obtained and the live program list information is stored in the live management file.
步骤2014、直播文件管理驱动根据所述直播节目列表信息建立相应的直播索引文件列表,其中,所述直播索引文件列表与直播节目列表信息一一对应。In step 2014, the live file management driver creates a corresponding live index file list according to the live program list information, wherein the live index file list and the live program list information are in one-to-one correspondence.
具体地,当机顶盒开机上电时,会在文件***内创建用于存储直播节目列表信息的直播管理文件,将当前直播节目列表信息存储于直播管理文件中,再根据直播管理文件中的直播节目列表信息建立相应的直播索引文件列表。当直播节目列表信息中存在多少个节目信息,直播索引文件列表内包含多个直播索引文件。并且,为了方便用户查找所要播放的直播节目,所述直播索引文件的名称采用对应的直播节目信息的唯一标识,使得直播索引文件与直播节目信息一一对应,并且根据直播索引文件的名称可以快速准确的确定其所代表的直播节目。Specifically, when the set-top box is powered on, a live management file for storing the live program list information is created in the file system, and the current live program list information is stored in the live management file, and then the live program in the live management file is The list information establishes a corresponding live index file list. When there is a plurality of program information in the live program list information, the live index file list includes a plurality of live index files. In addition, in order to facilitate the user to find the live program to be played, the name of the live index file adopts a unique identifier of the corresponding live program information, so that the live index file and the live program information are in one-to-one correspondence, and the name of the live index file can be quickly Accurately determine the live program it represents.
实施例三Embodiment 3
本实施例公开了一种基于机顶盒的直播共享方法,如图5所示,其包括:This embodiment discloses a live broadcast sharing method based on a set top box. As shown in FIG. 5, the method includes:
步骤301、机顶盒启动时,获取其支持的所有直播节目列表信息,并根据所述直播节目列表信息建立相应的直播索引文件列表,其中,所述直播索引文件列内的直播索引文件与直播节目列表信息内的节目信息一一对应; Step 301: When the set-top box is started, obtain the live broadcast program list information that is supported by the set-top box, and establish a corresponding live index file list according to the live broadcast program list information, where the live index file and the live broadcast program list in the live index file list One-to-one correspondence of program information in the information;
步骤302、智能终端通过共享协议获取机顶盒预存的直播索引文件列表,并向机顶盒发送播放请求,其中,所述播放请求携带其选中的目标直播索引文件;Step 302: The smart terminal acquires a live index file list pre-stored by the set-top box by using the sharing protocol, and sends a play request to the set-top box, where the play request carries the selected target live index file;
步骤303、机顶盒根据所述目标直播索引文件创建其对应的直播数据文件,并根据所述目标直播索引文件对应的节目信息获取到对应的媒体码流;Step 303: The set-top box creates a corresponding live data file according to the target live index file, and obtains a corresponding media code stream according to the program information corresponding to the target live index file.
步骤304、将所述媒体码流写入所述直播数据文件,并将所述直播数据文件内的媒体码流转存至所述目标直播索引文件;Step 304: Write the media code stream into the live data file, and transfer the media code stream in the live data file to the target live index file.
步骤305、智能终端重新获取所述目标直播索引文件,解析所述媒体码流并进行播放;Step 305: The smart terminal re-acquires the target live index file, parses the media stream, and plays the same.
步骤306、机顶盒关机时,将所述直播管理文件和直播索引文件删除。Step 306: When the set top box is powered off, delete the live management file and the live index file.
本实施例公开的基于机顶盒的直播共享方法,其在机顶盒关机时自动删除直播管理文件和直播索引文件,重新创建直播管理文件以及直播索引文件,这样可以保证直播索引文件与机顶盒当前直播节目列表信息相对应,提高机顶盒直播共享的准确性和全面。The set-top box-based live broadcast sharing method disclosed in this embodiment automatically deletes the live management file and the live index file when the set-top box is powered off, and re-creates the live management file and the live index file, so as to ensure the live index file and the current live program list information of the set-top box. Correspondingly, improve the accuracy and comprehensiveness of the live sharing of the set-top box.
实施例四Embodiment 4
本实施例公开了一种基于机顶盒的直播共享方法,如图6所示,其包括:This embodiment discloses a live broadcast sharing method based on a set top box, as shown in FIG. 6, which includes:
步骤401、机顶盒启动时,获取其支持的所有直播节目列表信息,并根据所述直播节目列表信息建立相应的直播索引文件列表,其中,所述直播索引文件列内的直播索引文件与直播节目列表信息内的节目信息一一对应;Step 401: When the set-top box is started, obtain the live broadcast program list information that is supported by the set-top box, and establish a corresponding live index file list according to the live broadcast program list information, where the live index file and the live broadcast program list in the live index file list One-to-one correspondence of program information in the information;
步骤402、智能终端通过共享协议获取机顶盒预存的直播索引文件列表,并向机顶盒发送播放请求,其中,所述播放请求携带其选中的目标直播索引文件;Step 402: The smart terminal acquires a live index file list pre-stored by the set-top box through the sharing protocol, and sends a play request to the set-top box, where the play request carries the selected target live index file;
步骤403、机顶盒根据所述目标直播索引文件创建其对应的直播数据文件,并根据所述目标直播索引文件对应的节目信息获取到对应的媒体码流; Step 403: The set-top box creates a corresponding live data file according to the target live index file, and obtains a corresponding media code stream according to the program information corresponding to the target live index file.
步骤404、将所述媒体码流写入所述直播数据文件,并将所述直播数据文件内的媒体码流转存至所述目标直播索引文件;Step 404: Write the media code stream to the live data file, and transfer the media code stream in the live data file to the target live index file.
步骤405、智能终端重新获取所述目标直播索引文件,解析所述媒体码流并进行播放;Step 405: The smart terminal re-acquires the target live index file, parses the media stream, and plays the same.
步骤406、机顶盒关机时,保存所述直播索引文件;Step 406: When the set top box is powered off, save the live index file.
步骤407、在机顶盒再次开机时获取当前直播节目列表,根据所述当前直播节目列表更新直播管理文件内存储的直播节目列表,并根据所述直播节目列表更新直播索引文件列表。Step 407: Acquire a current live program list when the set-top box is powered on again, update the live program list stored in the live management file according to the current live program list, and update the live index file list according to the live program list.
在本实施例中公开的基于机顶盒的直播共享方法,其在机顶盒关机是保留已有的直播管理文件和直播索引,而在机顶盒再次开机时,获取当前直播节目列表信息,并采用当前直播节目列表信息更新管理文件内存储的直播节目列表信息,以及根据所述直播节目列表信息更新直播共享目录中的直播索引文件。这样在机顶盒无法加载直播节目列表信息时,还采用以保存的直播索引文件将直播资源共享给智能终端。The live set sharing method based on the set top box disclosed in the embodiment, wherein the set top box is shut down to retain the existing live management file and the live index, and when the set top box is powered on again, the current live program list information is obtained, and the current live program list is used. The information updates the live program list information stored in the management file, and updates the live index file in the live share directory according to the live program list information. In this way, when the set-top box cannot load the live program list information, the live broadcast resource is shared to the smart terminal by using the saved live index file.
实施例五Embodiment 5
本实施例公开了一种基于机顶盒的直播共享***,如图5所示,包括:智能终端10和机顶盒20;所述机顶盒20包括创建模块21和写入模块22,所述智能终端包括发送模块11以及获取模块12;This embodiment discloses a set-top box-based live broadcast sharing system, as shown in FIG. 5, including: a smart terminal 10 and a set top box 20; the set top box 20 includes a creating module 21 and a writing module 22, and the smart terminal includes a sending module. 11 and the acquisition module 12;
所述发送模块11,设置于获取机顶盒预存的直播索引文件列表,并向机顶盒发送播放请求指令,所述播放请求指令包含其选中的目标直播索引文件;The sending module 11 is configured to obtain a live index file list pre-stored by the set-top box, and send a play request instruction to the set-top box, where the play request command includes the selected target live index file;
所述创建模块21,设置于根据所述目标直播索引文件创建其对应的直播数据文件,并根据所述目标直播索引文件对应的节目信息获取到对应的媒体码流;The creating module 21 is configured to create a corresponding live data file according to the target live index file, and obtain a corresponding media code stream according to the program information corresponding to the target live index file;
所述写入模块22,设置于将所述媒体码流写入所述直播数据文件,并将所述直播数据文件内的媒体码流转存至所述目标直播索引文件; The writing module 22 is configured to write the media code stream into the live data file, and dump the media code stream in the live data file to the target live index file;
所述获取模块12,设置于重新获取所述目标直播索引文件,解析所述媒体码流并进行播放。The obtaining module 12 is configured to re-acquire the target live index file, parse the media stream, and play the same.
可选的,所述机顶盒还包括:Optionally, the set top box further includes:
预设模块,设置于根据直播节目列表信息建立相应的直播索引文件列表,所述直播索引文件列表内的直播索引文件与直播节目列表信息内的节目信息一一对应。The preset module is configured to establish a corresponding live index file list according to the live program list information, where the live index file in the live index file list and the program information in the live program list information are in one-to-one correspondence.
可选的,所述预设模块包括:Optionally, the preset module includes:
获取单元,设置于若机顶盒开机时,获取直播节目列表信息并将其存储于预先建立的直播管理文件;The obtaining unit is configured to obtain the live program list information and store it in a pre-established live management file when the set-top box is powered on;
建立单元,设置于根据所述直播管理文件内存储的直播节目列表信息创建对应的直播索引文件列表,所述直播索引文件列表内的直播索引文件与直播节目列表信息内的节目信息一一对应。The establishing unit is configured to create a corresponding live index file list according to the live program list information stored in the live management file, where the live index file in the live index file list and the program information in the live program list information are in one-to-one correspondence.
可选的,所述直播索引文件采用其对应的节目信息内直播节目的唯一标识作为名称,以使得所述直播索引文件与节目信息一一对应。Optionally, the live index file uses a unique identifier of a live program in the corresponding program information as a name, so that the live index file and the program information are in one-to-one correspondence.
可选的,所述创建模块具体包括:Optionally, the creating module specifically includes:
解析单元,设置于接收并解析所述播放请求,并根据解析得到的目标直播索引文件创建其对应的直播数据文件;The parsing unit is configured to receive and parse the play request, and create a corresponding live data file according to the parsed target live index file;
生成单元,设置于对所述目标直播索引文件对应的节目信息进行锁频、过滤数据、解扰以及重新编码以得到媒体码流。The generating unit is configured to perform frequency locking, filtering data, descrambling, and re-encoding the program information corresponding to the target live index file to obtain a media code stream.
可选的,所述机顶盒还包括:Optionally, the set top box further includes:
保存模块,设置于若机顶盒关机时,保存所述直播索引文件,并在机顶盒再次开机时获取当前直播节目列表;The saving module is configured to save the live index file when the set top box is powered off, and obtain a current live program list when the set top box is powered on again;
更新模块,设置于根据所述当前直播节目列表更新直播管理文件内存储的直播节目列表,并根据所述直播节目列表更新已有直播索引文件列表。The update module is configured to update the live program list stored in the live management file according to the current live program list, and update the existing live index file list according to the live program list.
可选的,所述机顶盒还包括:Optionally, the set top box further includes:
删除模块,设置于若机顶盒关机时,将所述直播管理文件和直播索引文件列表删除,并在机顶盒再次开机时重新创建直播管理文件以及直播索引文件列表。 The module is deleted, and the live management file and the live index file list are deleted when the set-top box is powered off, and the live management file and the live index file list are re-created when the set-top box is powered on again.
可选的,所述智能终端的数量为多个,且多个智能终端同时选择播放相同或不同的直播节目。Optionally, the number of the smart terminals is multiple, and multiple smart terminals simultaneously select to play the same or different live programs.
应该理解到,在本实施例所揭露的***的具体操作过程在上述方法实施例中已经详细说明。并且,以上所描述的***实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。It should be understood that the specific operation process of the system disclosed in this embodiment has been described in detail in the above method embodiments. Moreover, the system embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
本公开还提供了一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述任一实施例中的方法。The present disclosure also provides a non-transitory computer readable storage medium storing computer executable instructions arranged to perform the method of any of the above embodiments.
本公开还提供了一种电子设备,所述电子设备可以执行机顶盒执行的相应的方法步骤,如图8所示,所述电子设备(机顶盒)包括:The present disclosure also provides an electronic device, which can perform corresponding method steps performed by the set top box. As shown in FIG. 8, the electronic device (set top box) includes:
至少一个处理器(processor)80,图8中以一个处理器80为例;显示屏81;以及存储器(memoty)82,还可以包括通信接口(Communications Interface)83和总线84。其中,处理器80、显示屏81、存储器82和通信接口83可以通过总线84完成相互间的通信。显示屏81设置为显示初始设置模式中预设的用户引导界面。通信接口83可以传输信息。处理器80可以调用存储器82中的逻辑指令, 以执行上述实施例中的方法。At least one processor 80, which is exemplified by a processor 80 in FIG. 8; a display 81; and a memory 82, which may further include a communication interface 83 and a bus 84. Among them, the processor 80, the display screen 81, the memory 82, and the communication interface 83 can complete communication with each other through the bus 84. The display screen 81 is set to display a preset user guide interface in the initial setting mode. Communication interface 83 can transmit information. Processor 80 can call logic instructions in memory 82, To perform the method in the above embodiment.
此外,上述的存储器82中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。Moreover, the logic instructions in memory 82 described above may be implemented in the form of software functional units and sold or used as separate products, and may be stored in a computer readable storage medium.
存储器82作为一种计算机可读存储介质,可设置为存储软件程序、计算机可执行程序,如本公开实施例中的方法对应的程序指令或模块。处理器80通过运行存储在存储器82中的软件程序、指令或模块,从而执行功能应用以及数据处理,即实现上述实施例中的方法。The memory 82 is a computer readable storage medium that can be configured to store software programs, computer executable programs, program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 80 executes the functional application and data processing by executing software programs, instructions or modules stored in the memory 82, i.e., implements the methods of the above-described embodiments.
存储器82可包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序;存储数据区可存储根据智能终端的使用所创建的数据等。此外,存储器82可以包括高速随机存取存储器,还可以包括非易失性存储器。例如,U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。The memory 82 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the smart terminal, and the like. Further, the memory 82 may include a high speed random access memory, and may also include a nonvolatile memory. For example, a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., may also be used to store a program code. State storage medium.
本公开还可以提供了一种终端,所述终端可以执行智能终端执行的相应的方法步骤,所述终端也可以包括至少一个处理器(processor);显示屏;以及存储器(memoty),还可以包括通信接口(Communications Interface)和总线。其中,处理器、显示屏、存储器和通信接口可以通过总线完成相互间的通信。显示屏设置为显示初始设置模式中预设的用户引导界面。通信接口可以传输信息。处理器可以调用存储器中的逻辑指令,以执行上述实施例中智能终端执行的相关步骤方法。The present disclosure may also provide a terminal, the terminal may perform corresponding method steps performed by the smart terminal, and the terminal may also include at least one processor; a display screen; and a memory (memoty), which may further include Communication Interface and Bus. Among them, the processor, display screen, memory and communication interface can complete communication with each other through the bus. The display is set to display the user guide interface preset in the initial setup mode. The communication interface can transmit information. The processor can invoke logic instructions in the memory to perform the associated step method performed by the smart terminal in the above embodiments.
最后应说明的是:以上实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的精神和范围。 It should be noted that the above embodiments are only for explaining the technical solutions of the present disclosure, and are not intended to be limiting; although the present disclosure has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced by the equivalents. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present disclosure.

Claims (18)

  1. 一种基于机顶盒的直播共享方法,其包括:A live set sharing method based on a set top box, comprising:
    智能终端获取机顶盒预存的直播索引文件列表,并向机顶盒发送播放请求指令,所述播放请求指令包含其选中的目标直播索引文件;The smart terminal acquires a live index file list pre-stored by the set top box, and sends a play request instruction to the set top box, where the play request instruction includes the selected target live index file;
    机顶盒根据所述目标直播索引文件创建其对应的直播数据文件,并根据所述目标直播索引文件对应的节目信息获取到对应的媒体码流;以及The set top box creates a corresponding live data file according to the target live index file, and obtains a corresponding media code stream according to the program information corresponding to the target live index file;
    将所述媒体码流写入所述直播数据文件,并将所述直播数据文件内的媒体码流转存至所述目标直播索引文件;Writing the media code stream to the live data file, and transferring the media code stream in the live data file to the target live index file;
    智能终端重新获取所述目标直播索引文件,解析所述媒体码流并进行播放。The smart terminal re-acquires the target live index file, parses the media stream, and plays the same.
  2. 根据权利要求1所述基于机顶盒的直播共享方法,其中,智能终端获取机顶盒预存的直播索引文件列表,并向机顶盒发送播放请求指令,所述播放请求指令包含其选中的目标直播索引文件之前还包括:The set-top box-based live broadcast sharing method according to claim 1, wherein the smart terminal acquires a live index file list pre-stored by the set-top box, and sends a play request instruction to the set-top box, where the play request instruction includes the selected target live index file :
    机顶盒根据直播节目列表信息建立相应的直播索引文件列表,所述直播索引文件列表内的直播索引文件与直播节目列表信息内的节目信息一一对应。The set-top box establishes a corresponding live index file list according to the live program list information, and the live index file in the live index file list has a one-to-one correspondence with the program information in the live program list information.
  3. 根据权利要求2所述基于机顶盒的直播共享方法,其中,机顶盒根据直播节目列表信息建立相应的直播索引文件列表,所述直播索引文件列表内的直播索引文件与直播节目列表信息内的节目信息一一对应具体包括:The set-top box-based live broadcast sharing method according to claim 2, wherein the set-top box establishes a corresponding live index file list according to the live program list information, and the live index file in the live index file list and the program information in the live program list information One correspondence specifically includes:
    机顶盒开机时,获取直播节目列表信息,并将其存储于预先建立的直播管理文件;When the set-top box is powered on, the live program listing information is obtained and stored in a pre-established live management file;
    根据所述直播管理文件内存储的直播节目列表信息创建相应的直播索引文件列表,所述直播索引文件列表内的直播索引文件与直播节目列表信息内的节目信息一一对应。And generating a corresponding live index file list according to the live program list information stored in the live management file, where the live index file in the live index file list and the program information in the live program list information are in one-to-one correspondence.
  4. 根据权利要求3所述基于机顶盒的直播共享方法,其还包括: The live set sharing method based on the set top box according to claim 3, further comprising:
    机顶盒关机时,保存所述直播索引文件列表,并在机顶盒再次开机时获取当前直播节目列表;When the set-top box is powered off, save the live index file list, and obtain a current live program list when the set-top box is powered on again;
    根据所述当前直播节目列表更新所述直播管理文件内存储的直播节目列表,并根据所述直播节目列表更新直播索引文件列表。Updating a live program list stored in the live management file according to the current live program list, and updating the live index file list according to the live program list.
  5. 根据权利要求3所述基于机顶盒的直播共享方法,其还包括:The live set sharing method based on the set top box according to claim 3, further comprising:
    机顶盒关机时,将所述直播管理文件和直播索引文件列表删除,并在机顶盒再次开机时重新创建直播管理文件以及直播索引文件列表。When the set-top box is powered off, the live management file and the live index file list are deleted, and the live management file and the live index file list are re-created when the set-top box is powered on again.
  6. 根据权利要求2所述基于机顶盒的直播共享方法,其中,所述直播索引文件采用其对应的节目信息内直播节目的唯一标识作为名称,以使得所述直播索引文件与节目信息一一对应。The set-top box-based live broadcast sharing method according to claim 2, wherein the live index file uses a unique identifier of a live program in the corresponding program information as a name, so that the live index file and the program information are in one-to-one correspondence.
  7. 根据权利要求1所述基于机顶盒的直播共享方法,其中,所述机顶盒根据所述目标直播索引文件创建其对应的直播数据文件,并根据所述目标直播索引文件对应的节目信息获取到对应的媒体码流具体包括:The live set sharing method of the set top box according to claim 1, wherein the set top box creates a corresponding live data file according to the target live index file, and obtains the corresponding media according to the program information corresponding to the target live index file. The code stream specifically includes:
    机顶盒接收并解析所述播放请求,根据解析得到的目标直播索引文件创建其对应的直播数据文件;The set top box receives and parses the play request, and creates a corresponding live data file according to the parsed target live index file;
    对所述目标直播索引文件对应的节目信息进行锁频、过滤数据、解扰以及重新编码以得到媒体码流。Program information corresponding to the target live index file is frequency-locked, filtered, descrambled, and re-encoded to obtain a media code stream.
  8. 根据权利要求1所述基于机顶盒的直播共享方法,其中,所述智能终端的数量为多个,且多个智能终端同时选择相同或不同的直播索引文件列表。The set-top box-based live broadcast sharing method according to claim 1, wherein the number of the smart terminals is multiple, and the plurality of smart terminals simultaneously select the same or different live index file lists.
  9. 一种基于机顶盒的直播共享***,其包括:智能终端和机顶盒;所述机顶盒包括建模及写入模块,所述智能终端包括发送模块以及获取模块;A set-top box-based live broadcast sharing system includes: an intelligent terminal and a set top box; the set top box includes a modeling and writing module, and the smart terminal includes a sending module and an acquiring module;
    所述发送模块,设置于获取机顶盒预存的直播索引文件列表,并向机顶盒发送播放请求指令,所述播放请求指令包含其选中的目标直播索引文件; The sending module is configured to obtain a live index file list pre-stored by the set top box, and send a play request instruction to the set top box, where the play request instruction includes the selected target live index file;
    所述创建模块,设置于根据所述目标直播索引文件创建其对应的直播数据文件,并根据所述目标直播索引文件对应的节目信息获取到对应的媒体码流;The creating module is configured to create a corresponding live data file according to the target live index file, and obtain a corresponding media code stream according to the program information corresponding to the target live index file;
    所述写入模块,设置于将所述媒体码流写入所述直播数据文件,并将所述直播数据文件内的媒体码流转存至所述目标直播索引文件;The writing module is configured to write the media code stream into the live data file, and dump the media code stream in the live data file to the target live index file;
    所述获取模块,设置于重新获取所述目标直播索引文件,解析所述媒体码流并进行播放。The acquiring module is configured to re-acquire the target live index file, parse the media stream, and play the same.
  10. 根据权利要求9所述基于机顶盒的直播共享***,其中,所述机顶盒还包括:The set-top box-based live broadcast sharing system of claim 9, wherein the set top box further comprises:
    预设模块,设置于根据直播节目列表信息建立相应的直播索引文件列表,所述直播索引文件列表内的直播索引文件与直播节目列表信息内的节目信息一一对应。The preset module is configured to establish a corresponding live index file list according to the live program list information, where the live index file in the live index file list and the program information in the live program list information are in one-to-one correspondence.
  11. 根据权利要求10所述基于机顶盒的直播共享***,其中,所述预设模块包括:The set-top box-based live broadcast sharing system of claim 10, wherein the preset module comprises:
    获取单元,设置于若机顶盒开机时,获取直播节目列表信息并将其存储于预先建立的直播管理文件;The obtaining unit is configured to obtain the live program list information and store it in a pre-established live management file when the set-top box is powered on;
    建立单元,设置于根据所述直播管理文件内存储的直播节目列表信息创建对应的直播索引文件列表,所述直播索引文件列表内的直播索引文件与直播节目列表信息内的节目信息一一对应。The establishing unit is configured to create a corresponding live index file list according to the live program list information stored in the live management file, where the live index file in the live index file list and the program information in the live program list information are in one-to-one correspondence.
  12. 根据权利要求11所述基于机顶盒的直播共享***,其中,所述机顶盒还包括:The set-top box-based live broadcast sharing system of claim 11, wherein the set top box further comprises:
    保存模块,设置于若机顶盒关机时,保存所述直播索引文件列表,并在机顶盒再次开机时获取当前直播节目列表;The saving module is configured to save the live index file list when the set top box is powered off, and obtain a current live program list when the set top box is powered on again;
    更新模块,设置于根据所述当前直播节目列表更新管理文件内存储的直播节目列表,并根据所述直播节目列表更新直播索引文件列表。The update module is configured to update the live program list stored in the management file according to the current live program list, and update the live index file list according to the live program list.
  13. 根据权利要求11所述基于机顶盒的直播共享***,其中,所述机顶盒还包括: The set-top box-based live broadcast sharing system of claim 11, wherein the set top box further comprises:
    删除模块,设置于若机顶盒关机时,将所述直播管理文件和直播索引文件列表删除,并在机顶盒再次开机时重新创建直播管理文件以及直播索引文件列表。The module is deleted, and the live management file and the live index file list are deleted when the set-top box is powered off, and the live management file and the live index file list are re-created when the set-top box is powered on again.
  14. 根据权利要求10所述基于机顶盒的直播共享***,其中,所述直播索引文件采用其对应的节目信息内直播节目的唯一标识作为名称,以使得所述直播索引文件与节目信息一一对应。The live set sharing system of the set top box according to claim 10, wherein the live index file adopts a unique identifier of a live program in the corresponding program information as a name, so that the live index file and the program information are in one-to-one correspondence.
  15. 根据权利要求9所述基于机顶盒的直播共享***,其中,所述创建模块具体包括:The set-top box-based live broadcast sharing system according to claim 9, wherein the creating module specifically includes:
    解析单元,设置于接收并解析所述播放请求,并根据解析得到的目标直播索引文件创建其对应的直播数据文件;The parsing unit is configured to receive and parse the play request, and create a corresponding live data file according to the parsed target live index file;
    生成单元,设置于对所述目标直播索引文件对应的节目信息进行锁频、过滤数据、解扰以及重新编码以得到媒体码流。The generating unit is configured to perform frequency locking, filtering data, descrambling, and re-encoding the program information corresponding to the target live index file to obtain a media code stream.
  16. 根据权利要求9所述基于机顶盒的直播共享***,其中,所述智能终端的数量为多个,且多个智能终端同时选择播放相同或不同的直播节目。The set-top box-based live broadcast sharing system according to claim 9, wherein the number of the smart terminals is multiple, and the plurality of smart terminals simultaneously select to play the same or different live programs.
  17. 一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-9中任一项所述的基于机顶盒的直播共享方法。A non-transitory computer readable storage medium storing computer executable instructions arranged to perform the set top box based live sharing method of any one of claims 1-9.
  18. 一种电子设备,包括:An electronic device comprising:
    至少一个处理器;以及At least one processor;
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行权利要求1-9中任一项所述的基于机顶盒的直播共享方法。 The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the method of any of claims 1-9 A live broadcast sharing method based on a set top box.
PCT/CN2017/093538 2016-07-27 2017-07-19 Set top box-based live sharing method and system WO2018019167A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610598032.5A CN106210872B (en) 2016-07-27 2016-07-27 A kind of live streaming sharing method and system based on set-top box
CN201610598032.5 2016-07-27

Publications (1)

Publication Number Publication Date
WO2018019167A1 true WO2018019167A1 (en) 2018-02-01

Family

ID=57495566

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/093538 WO2018019167A1 (en) 2016-07-27 2017-07-19 Set top box-based live sharing method and system

Country Status (2)

Country Link
CN (1) CN106210872B (en)
WO (1) WO2018019167A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111914511A (en) * 2020-07-31 2020-11-10 海信视像科技股份有限公司 Remote file browsing method, intelligent terminal and display device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210872B (en) * 2016-07-27 2019-07-09 深圳创维数字技术有限公司 A kind of live streaming sharing method and system based on set-top box
CN110856029B (en) * 2019-10-17 2022-04-01 北京雷石天地电子技术有限公司 Method and system for synchronizing local area network set top box resources

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040028042A1 (en) * 2002-07-25 2004-02-12 Jai Srinivasan Sharing live advanced streaming format indexed files
CN102421033A (en) * 2011-12-12 2012-04-18 四川长虹电器股份有限公司 Method for sharing television program on mobile terminal
CN103237230A (en) * 2013-04-27 2013-08-07 深圳创维数字技术股份有限公司 Video sharing method and digital television terminal
CN103491431A (en) * 2013-09-11 2014-01-01 深圳市创维软件有限公司 Method, terminal and system for audio and video sharing of digital television
CN103873956A (en) * 2012-12-12 2014-06-18 中国电信股份有限公司 Media file playing method and system, player, terminal and media storage platform
CN104902311A (en) * 2015-05-28 2015-09-09 青岛海信宽带多媒体技术有限公司 Method for sharing audio/video resources, shared gateway and system
CN106210872A (en) * 2016-07-27 2016-12-07 深圳创维数字技术有限公司 A kind of live sharing method based on Set Top Box and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110072728A (en) * 2009-12-23 2011-06-29 삼성전자주식회사 A method for offering service of viewing video subsequently between settop boxes and an apparatus thereof
US9264750B2 (en) * 2010-12-23 2016-02-16 Verizon Patent And Licensing Inc. Advertising insertion for playback of video streams on user devices
CN102355448B (en) * 2011-06-29 2015-07-01 北京原力创新科技有限公司 Cloud streaming media data transmission method and system
CN103596067B (en) * 2013-11-26 2017-12-12 深圳创维数字技术有限公司 A kind of TV program transmission method and device based on HTTP real-time stream media protocols

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040028042A1 (en) * 2002-07-25 2004-02-12 Jai Srinivasan Sharing live advanced streaming format indexed files
CN102421033A (en) * 2011-12-12 2012-04-18 四川长虹电器股份有限公司 Method for sharing television program on mobile terminal
CN103873956A (en) * 2012-12-12 2014-06-18 中国电信股份有限公司 Media file playing method and system, player, terminal and media storage platform
CN103237230A (en) * 2013-04-27 2013-08-07 深圳创维数字技术股份有限公司 Video sharing method and digital television terminal
CN103491431A (en) * 2013-09-11 2014-01-01 深圳市创维软件有限公司 Method, terminal and system for audio and video sharing of digital television
CN104902311A (en) * 2015-05-28 2015-09-09 青岛海信宽带多媒体技术有限公司 Method for sharing audio/video resources, shared gateway and system
CN106210872A (en) * 2016-07-27 2016-12-07 深圳创维数字技术有限公司 A kind of live sharing method based on Set Top Box and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111914511A (en) * 2020-07-31 2020-11-10 海信视像科技股份有限公司 Remote file browsing method, intelligent terminal and display device
CN111914511B (en) * 2020-07-31 2024-04-26 海信视像科技股份有限公司 Remote file browsing method, intelligent terminal and display device

Also Published As

Publication number Publication date
CN106210872B (en) 2019-07-09
CN106210872A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
RU2602982C2 (en) Method, apparatus and system for intelligently controlling device and plug-and-play device
US10110393B2 (en) Protocol switching over multi-network interface
US9883251B2 (en) Method and apparatus for managing connection between broadcast receiving device and another device connected by network
CN101868793B (en) A kind of peer playback devices and method of operating thereof
CN102547443B (en) Multi-terminal system resource sharing and interaction realizing method
US7996538B2 (en) Information processing apparatus and content information processing method for transmitting content and event information to a client
US10554745B2 (en) Method and apparatus for managing connection between broadcasting reception device and another device which are connected through network
KR20110056288A (en) Device dependent delivery in a local area network
WO2016197875A1 (en) Data processing method and device applicable to service-providing device
CN105323628B (en) Cross-screen playing method and system based on DLNA (digital Living network alliance), browser end device and playing device
US20140280784A1 (en) File Transfer Based Upon Streaming Format
TW200910202A (en) Multimedia access device, multimedia display system comprising the multimedia access device, and multimedia data display method
WO2015035742A1 (en) Method, terminal and system for audio and video sharing of digital television
JP2011223124A (en) Content reproduction control system, content reproduction control method, content server, mobile terminal and program
WO2018019167A1 (en) Set top box-based live sharing method and system
US20150127942A1 (en) Security key device for secure cloud service, and system and method for providing secure cloud service
CN103391277A (en) Media playing method, device and system
US20080240670A1 (en) Picture recording system and picture recording and reproducing method
WO2017000447A1 (en) Control method, device and system for intelligent household appliance
CN106231393B (en) Video information processing method, device and system
WO2017071642A1 (en) Media playback method, device and computer storage medium
US10021158B2 (en) Converting data stream in user equipment
CN104954809A (en) Method and system for recording television programs
US10165082B2 (en) Method and apparatus for managing connection between plurality of devices over network
CN104243469A (en) Playing control method, device and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17833470

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17833470

Country of ref document: EP

Kind code of ref document: A1