WO2017071670A1 - Audio and video synchronization method, device and system - Google Patents

Audio and video synchronization method, device and system Download PDF

Info

Publication number
WO2017071670A1
WO2017071670A1 PCT/CN2016/104028 CN2016104028W WO2017071670A1 WO 2017071670 A1 WO2017071670 A1 WO 2017071670A1 CN 2016104028 W CN2016104028 W CN 2016104028W WO 2017071670 A1 WO2017071670 A1 WO 2017071670A1
Authority
WO
WIPO (PCT)
Prior art keywords
code stream
audio
top box
set top
video
Prior art date
Application number
PCT/CN2016/104028
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 WO2017071670A1 publication Critical patent/WO2017071670A1/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/236Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/236Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
    • H04N21/23605Creation or processing of packetized elementary streams [PES]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2389Multiplex stream processing, e.g. multiplex stream encrypting
    • 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/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
    • H04N21/4383Accessing a communication channel

Definitions

  • the present invention relates to the field of communications, and in particular to an audio and video synchronization method, apparatus, and system.
  • the embodiment of the invention provides a method, a device and a system for synchronizing audio and video, so as to solve at least the problem that the audio and video code stream synchronization effect is poor when the STB switches channels in the related art.
  • a method for synchronizing audio and video comprising: acquiring, by a first device, an original code stream sent by an encoder; and displaying, by a first device, a time stamp PTS of an audio packet and a video packet in the original code stream The difference is subjected to a reduction process to obtain a recombined code stream, wherein the reassembled code stream is used for the set top box to perform audio and video synchronization processing; and the first device transmits the reassembled code stream to the set top box.
  • performing, by the first device, a reduction process on the difference between the audio packet in the original code stream and the display time label PTS of the video packet includes: detecting, by the first device, a difference between the audio packet in the original code stream and the PTS of the video packet. Whether it is more than 200 ms; if it is detected that the difference between the audio packet of the original stream and the PTS of the video packet exceeds 200 ms, the first device performs a reduction process on the difference between the audio packet of the original stream and the PTS of the video packet.
  • the method further includes: the set top box performs audio and video synchronization processing according to the reassembled code stream, and detects whether the synchronization is successful; if the synchronization is successful, the set top box is first.
  • the device sends a termination instruction, wherein the termination instruction is used to instruct the first device to stop transmitting the reassembled code stream; and/or if the first pre- If the synchronization is not detected within the duration, the set top box sends a termination command to the first device.
  • the method further includes: after receiving the reassembled code stream for the second preset duration, the set top box starts to receive the original code stream, and the time length of receiving the original code stream is reached. After the third preset duration, the receiving of the reassembled code stream is stopped, wherein the set top box performs a fusion process on the reassembled code stream and the original code stream within a third preset duration of the set top box receiving the original code stream.
  • the set-top box performs a fusion process on the recombined code stream and the original code stream according to the real-time transport protocol RTP packet sequence number respectively carried by the reassembled code stream and the original code stream.
  • the acquiring, by the first device, the original code stream sent by the encoder comprises: acquiring, by the first device, the original code stream sent by the encoder via the content distribution network CDN device.
  • the sending, by the first device, the reassembled code stream to the set top box includes: sending, by the first device, the reassembled code stream to the set top box via the CDN device.
  • the method further includes: the set top box receives the channel switching instruction; and according to the channel switching instruction, the set top box sends a request message to the first device, where the request message is used for the request A device sends a reassembled code stream.
  • the first device is a CDN device, wherein the CDN device comprises one of the following: a backbone CDN device, an edge CDN device.
  • an audio and video synchronization apparatus comprising: an acquisition module configured to acquire an original code stream sent by an encoder; and a processing module configured to match an audio package and a video package in the original code stream The difference of the display time label PTS performs a reduction process to obtain a recombined code stream, wherein the recombined code stream is used for the set top box to perform audio and video synchronization processing; and the sending module is configured to send the recombined code stream to the set top box.
  • an audio and video synchronization system including: an encoder configured to transmit a source code stream; and a first device configured to acquire an original code stream sent by the encoder, in the original code stream
  • the difference between the display time stamp PTS of the audio pack and the video pack performs a reduction process, obtains a recombined code stream, and sends the reassembled code stream to the set top box, wherein the reassembled code stream is used for performing set-top box to perform audio and video synchronization processing; the set top box is set to receive
  • the code stream is reorganized, and audio and video synchronization processing is performed according to the recombined code stream.
  • the original code stream sent by the encoder is obtained by the first device; the first device performs a reduction process on the difference between the audio packet in the original code stream and the display time label PTS of the video packet to obtain a recombined code stream, where The recombined code stream is used for performing the audio and video synchronization processing on the set top box; the first device sends the recombined code stream to the set top box, which solves the problem that the audio and video code stream synchronization effect is poor when the STB switches channels in the related art, and thus does not need to do the set top box. Any modification can quickly realize audio and video synchronization when the channel is switched, which greatly improves the user experience.
  • FIG. 1 is a flowchart of an audio and video synchronization method according to a first embodiment of the present invention
  • FIG. 2 is a schematic diagram of a topology structure of an audio and video transmission network
  • FIG. 3 is a schematic diagram of an audio and video synchronization method according to a second embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an audio and video synchronization method according to a third embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an audio and video synchronization method according to a fourth embodiment of the present invention.
  • FIG. 6 is a schematic diagram of an audio and video synchronization method according to a fifth embodiment of the present invention.
  • FIG. 7 is a schematic diagram of an audio and video synchronization apparatus according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of an audio and video synchronization system in accordance with an embodiment of the present invention.
  • FIG. 1 is a flowchart of an audio and video synchronization method according to a first embodiment of the present invention. As shown in FIG. 1, the flow includes the following steps:
  • Step S102 The first device acquires a source code stream sent by the encoder.
  • the first device may be directly connected to the encoder, that is, directly receive the original code stream sent by the encoder, or the first device may also be indirectly connected to the encoder, for example, between the first device and the encoder.
  • the first device may also be indirectly connected to the encoder, for example, between the first device and the encoder.
  • Step S104 The first device performs a reduction process on the difference between the audio packet in the original code stream and the display time label PTS of the video packet to obtain a recombined code stream, where the reassembled code stream is used in the set top box to perform audio and video synchronization processing.
  • the PTS is a time stamp indicating the time at which the audio and video are displayed.
  • the display time stamp PTS may be carried in the PES header information of the original code stream for determining the order in which the audio and video are displayed.
  • the difference in display time stamp PTS of the original code stream generated by the encoder may be small or large.
  • a reference threshold may be preset, and when the difference of the PTS of the original code stream exceeds the reference threshold, the difference of the PTS of the original code stream is considered to be large, and vice versa, the difference of the PTS of the original code stream is considered. The value is small.
  • Performing a reduction process on the difference between the audio packet of the original code stream and the display time label PTS of the video packet by the first device includes: performing, by the first device, a difference between the audio packet in the original code stream and the display time label PTS of the video packet Reduce the processing so that the difference in PTS does not exceed
  • the above reference threshold also results in a recombination code stream. It should be noted that the recombined code stream has, but is not limited to, the following characteristics: the difference between the PTS of the audio packet and the video packet does not exceed the above reference threshold.
  • the above reference threshold may be set to 200 ms
  • the first device displays the time stamp of the audio pack and the video pack in the original stream.
  • Performing the reduction processing of the difference of the PTS includes: the first device detects whether the difference between the audio packet of the original code stream and the PTS of the video packet exceeds 200 ms; if the difference between the PTS of the audio packet and the video packet in the original code stream is detected After more than 200 ms, the first device performs a reduction process on the difference between the audio packets in the original stream and the PTS of the video packets.
  • the first device is disposed between the encoder and the set top box, and may be a device introduced outside the audio and video transmission network, or may be a device role concurrently owned by a certain device in the audio and video transmission network.
  • the first device may be a CDN device in a transport network, the CDN device being different from the conventional CDN device in that a processing module configured to perform a PTS difference reduction process is provided in the CDN device. Therefore, in the present invention, the physical form of the first device is not specifically limited, but the first device needs to have the following functions:
  • the content of the code stream will be recombined twice.
  • the recombined code stream needs to make the PTS difference between the audio package and the video packet small enough (for example, less than 200ms).
  • Step S106 the first device sends the reassembled code stream to the set top box.
  • the first device may directly send the recombined code stream to the set top box, that is, the first device and the set top box are directly connected, or another device may be disposed between the first device and the set top box, for example, the first device.
  • a CDN device is disposed between the set top box and the CDN device, and the CDN device can transmit the recombined code stream generated by the first device to the set top box through the CDN device.
  • the set top box After receiving the recombined code stream sent by the first device, the set top box performs synchronization of the audio and video based on the recombined code stream. Since the difference between the PTS of the audio stream of the reassembled code stream and the PTS of the video packet is reduced compared to the original code stream, after the set-top box receives the original code stream (recombined code stream) with the PTS difference reduced, the reassembly can be performed according to the reassembly. The code stream quickly realizes audio and video synchronization, thereby shortening the time of synchronization processing on the set top box side, and improving the user experience of the channel switching user.
  • the process of performing audio and video synchronization of the set top box can be performed based on the recombined code stream, that is, in the process of controlling the playing of audio and video by the set top box, the recombined code stream is continuously generated and sent to the set top box; or, When the audio and video synchronization is initially performed, by means of the recombined code stream, after the audio and video synchronization is successful, the original code stream is received instead, thereby realizing the synchronized broadcast of the audio and video.
  • the original code stream sent by the encoder is obtained by the first device; the first device performs a reduction process on the difference between the audio time packet of the original code stream and the display time label PTS of the video packet to obtain a recombined code stream, where The recombined code stream is used for performing audio and video synchronization processing on the set top box; the first device sends the reassembled code stream to the set top box, and solves the related art in the STB cut
  • the problem of poor synchronization of audio and video code streams, and thus without any modification to the set-top box can quickly achieve audio and video synchronization during channel switching, greatly improving the user experience.
  • the method further includes: the set top box performs audio and video synchronization processing according to the reassembled code stream, and detects whether the synchronization is successful; if the synchronization is successful, the set top box is first.
  • the device sends a termination instruction, wherein the termination instruction is used to instruct the first device to stop transmitting the reassembled code stream; and/or, if the synchronization is not detected within the first preset duration, the set top box sends a termination instruction to the first device.
  • the synchronization of the audio and video synchronization may be performed. If the synchronization is successful, the set top box instructs the first device to stop transmitting the recombined code stream, that is, to quickly realize the audio and video synchronization. After that, the PTS difference reduction processing is not performed by using the first device; or, the timer may be set in advance for the audio and video synchronization process of the set top box, and the timer starts to perform timing in the set top box, and is preset. Stop timing after the duration.
  • the termination instruction is sent to the first device; if the timing is detected within the time duration If the audio and video synchronization is successful, a termination command is sent to the first device when the synchronization is successfully detected.
  • the recombined code stream can be utilized in the whole process.
  • the original code stream sent by the encoder may be started to be received by the original code stream and the recombined code stream, and the original code stream is synchronized, so as to follow the preset time length before the first device stops transmitting the recombined code stream.
  • the original code stream can be received only, and the reassembled code stream is no longer needed to be received; that is, the reassembled code stream lays a foundation for audio and video synchronization of the original code stream only for a short period of time, and is subsequently utilized in audio and video playback. Still the original stream.
  • the method further includes: after the first device sends the reassembled code stream to the set top box, the method further includes: the set top box starts to receive the original code stream after receiving the reassembled code stream for a second preset duration After receiving the original code stream for a third preset duration, stopping receiving the reassembled code stream, wherein the set top box performs a fusion process on the reassembled code stream and the original code stream within a third preset duration of the set top box receiving the original code stream.
  • the set top box initially receives only the reassembled code stream, and after receiving the reassembled code stream for a second preset duration, begins to receive the reassembled code stream and the original code stream sent by the encoder (wherein the first device can be timed) After the second preset duration is reached, the set top box is notified to receive the original code stream sent by the encoder.
  • the set top box performs fusion processing on the two streams.
  • the set-top box performs the fusion processing on the recombined code stream and the original code stream by performing the following manner: the set-top box performs the fusion on the recombined code stream and the original code stream according to the real-time transport protocol RTP packet sequence number carried by the reassembled code stream and the original code stream respectively. deal with. Specifically, the set top box performs the fusion of the two code streams according to the received original code stream and the RTP header sequence of the previously received recombined code stream. When the packet sequence number of the original code stream catches up with the packet sequence number of the reassembled code stream, the A device stops transmitting the reassembled code stream. A timer may be set in the set-top box. If the synchronization time of the timer is not successfully achieved, the first device may be instructed to terminate the transmission of the reassembled code stream, and only the original code stream is received.
  • the acquiring, by the first device, the original code stream sent by the encoder comprises: acquiring, by the first device, the original code stream sent by the encoder via the content distribution network CDN device.
  • the first device can be directly connected to the set top box to send the reassembled code stream to the set top box; or the first device can be connected to the set top box via other devices.
  • the sending, by the first device, the reassembled code stream to the set top box includes: sending, by the first device, the reassembled code stream to the set top box via the CDN device.
  • the first device may be directly connected to the encoder to receive the original code stream transmitted by the encoder; or the first device may be connected to the encoder via other devices.
  • the method further includes: the set top box receives the channel switching instruction; and according to the channel switching instruction, the set top box sends a request message to the first device, where the request message is used for the request A device sends a reassembled code stream.
  • the channel switching instruction (for example, the channel switching instruction input by the user through the remote control device) may be used as a trigger signal, and when the trigger signal is received, the set top box automatically returns to the first
  • the device sends a request message for reassembling the code stream, and the first device sends the reassembled code stream to the set top box according to the request message.
  • the first device is a CDN device, wherein the CDN device comprises one of the following: a backbone CDN device, an edge CDN device.
  • the device inputs the original code stream output by the encoder (first extracts the PTS information of the audio and video, and determines whether the PTS difference is too large, for example, the PTS value of the video packet and the audio packet received by the terminal at the same time is too large, if it is too large, if it is too large That is, the PTS difference of the audio and video packets is subjected to a reduction process, and the code stream recombined by the audio and video PTS is output, and the set top box receives the recombined code stream and quickly realizes audio and video synchronization.
  • the above embodiment does not require any improvement of the set-top box, and can quickly realize audio and video synchronization when switching channels, which greatly improves the user's viewing experience.
  • the topology includes: the encoder transmits the original code stream to the backbone CDN device, and the backbone CDN device sends the original code stream to the set top box terminal via the edge CDN device, and the set top box terminal performs corresponding audio and video synchronization control.
  • FIG. 3 is a schematic diagram of an audio and video synchronization method according to a second embodiment of the present invention.
  • a PTS reassembly server is added based on the topology of the audio and video transmission network.
  • the PTS reassembly server is disposed between the CDN device and the set top box terminal.
  • the encoder sends the original code stream to the PTS reassembly server via the CDN device, and the PTS reassembly server analyzes the difference between the PTS of the video packet and the audio packet in the original code stream, and when the difference exceeds the reference threshold, the PTS performs the reduction.
  • the PTS reassembly server sends the PTS recombination code stream to the set-top box terminal, and the set-top box terminal quickly implements audio and video synchronization according to the received PTS recombination code stream, and after the synchronization succeeds, instructs the PTS reassembly server to stop transmitting the PTS recombination code stream, and then receives the
  • the original code stream generated by the encoder forwarded by the CDN device combines the original code stream with the PTS recombination code stream to realize synchronous output of audio and video.
  • the process mainly includes:
  • Step S31 deploying a PTS reassembly server in the transmission network, the function of the PTS reassembly server is to receive the code stream of the original encoder, perform caching, analyze the audio and video information, and rearrange the difference of the audio and video PTS, and the difference is The value is reduced.
  • Step S32 when the channel is switched, the set top box (STB) first communicates with the PTS reassembly server, requests the PTS to reassemble the code stream, and the code stream received by the PTS reassembly server is originated from the CDN central node, and is cached for a short time. This buffer is enough for the STB to quickly synchronize audio and video.
  • Step S33 After receiving the request command of the STB, the PTS reassembly server sends the reassembled code stream to the STB.
  • Step S34 after receiving the code stream of the PTS reassembly server, the STB quickly performs audio and video synchronization.
  • Step S35 After the STB synchronization succeeds, the PTS reassembly server immediately sends a command to stop the reassembly of the code stream (that is, the termination instruction described above), and then accepts the CDN source code stream, and performs fusion of the two streams.
  • Step S36 if the STB times out without synchronization success, the receiving recombination code stream is immediately stopped, and the CDN source code stream is received instead.
  • the set top box terminal can quickly realize the synchronization of audio and video without any improvement on the set top box terminal. It can quickly realize audio and video synchronization when switching channels, which greatly improves the user's viewing experience.
  • FIG. 4 is a schematic diagram of an audio and video synchronization method according to a third embodiment of the present invention.
  • a PTS reassembly server is added based on the topology of the audio and video transmission network.
  • the PTS reassembly server is disposed between the encoder and the backbone CDN device, and the PTS reassembly server receives the original code stream sent by the encoder, and performs PTS difference reduction processing on the original code stream to obtain a PTS recombination code stream, and the PTS recombination code is obtained.
  • the stream is sent to the backbone CDN device, and the backbone CDN device sends the PTS reassembly code stream to the set top box terminal via the edge CDN device.
  • the process mainly includes:
  • step S41 a PTS reassembly server is deployed at the back end of the encoder.
  • step S42 the PTS reassembly server accepts the original code stream from the encoder, analyzes the code stream, and reassembles the audio and video PTS.
  • step S43 the reassembled code stream is transmitted to the STB through the CDN device.
  • step S44 the STB can rely on the recombined code stream for fast synchronization.
  • a PTS reassembly server is set up between the CDN device and the encoder to send the recombined code stream to the set-top box terminal through the CDN device, and the set-top box terminal can quickly realize the synchronization of audio and video, without the need for the set-top box terminal. Any improvement can quickly realize audio and video synchronization when switching channels, greatly improving the user's viewing experience.
  • FIG. 5 is a schematic diagram of an audio and video synchronization method according to a fourth embodiment of the present invention.
  • a PTS reassembly code stream module is deployed on the backbone CDN device for performing a reduction process on the difference of the PTS of the original code stream.
  • the encoder sends the original code stream to the backbone CDN device, and the backbone CDN device passes.
  • the self-deployed PTS recombination code stream module performs a reduction process on the difference of the PTS of the original code stream to obtain a PTS recombination code stream, and sends the PTS recombination code stream to the set top box terminal via the edge CDN, and the set top box terminal reassembles the code stream based on the PTS. Realize audio and video synchronization.
  • the process mainly includes:
  • step S51 the PTS reassembly code stream module is directly deployed on a backbone CDN device.
  • Step S52 the PTS recombination code stream module analyzes the video and audio information, and reorganizes the audio and video PTS.
  • step S53 the reassembled code stream is sent through the backbone CDN device.
  • Step S54 The STB receives the PTS recombination code stream of the backbone CDN device through the edge CDN device to implement fast synchronization of audio and video.
  • the recombined code stream is sent to the set top box terminal through the CDN device, and the set top box terminal can quickly realize audio and video synchronization, without any need for the set top box terminal. Improved, you can quickly achieve audio and video synchronization when switching channels, greatly improving the user's look and feel experience.
  • FIG. 6 is a schematic diagram of an audio and video synchronization method according to a fifth embodiment of the present invention.
  • a PTS reassembly code stream module is deployed on the edge CDN device, and is set to perform a reduction process on the difference of the PTS of the original code stream.
  • the encoder generates the original code stream, which is sent to the edge CDN device by the backbone CDN device, and the PTS recombination code stream module is deployed in the edge CDN device, and the module performs a reduction process on the difference of the PTS of the original code stream to obtain a reduction process.
  • the PTS reassembles the code stream and sends the PTS reassembly code stream to the set top box terminal.
  • the set top box terminal performs audio and video synchronization based on the PTS reassembly code stream.
  • the process mainly includes:
  • the PTS recombination code stream module analyzes the video and audio information, and reorganizes the audio and video PTS.
  • the recombined code stream is sent through the edge CDN device.
  • the STB receives the PTS reassembly code stream of the edge CDN device to implement fast synchronization of audio and video.
  • the recombination code stream is sent to the set top box terminal through the CDN device, and the set top box terminal can quickly realize the synchronization of audio and video, thereby reducing the reorganization range, and not Any improvement to the set-top box terminal is required to quickly synchronize audio and video when switching channels, which greatly enhances the user's viewing experience.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM, including a number of instructions to make a terminal device (can be a mobile phone, a computer, The server, or network device, etc.) performs the methods described in various embodiments of the present invention.
  • An audio and video synchronization device is also provided in this embodiment, and the device is configured to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 7 is a schematic diagram of an audio and video synchronization apparatus according to an embodiment of the present invention. As shown in FIG. 7, the apparatus includes an acquisition module 70, a processing module 72, and a transmission module 74.
  • the obtaining module 70 is configured to obtain a source code stream sent by the encoder.
  • the processing module 72 is configured to perform a reduction process on the difference between the audio packet in the original code stream and the display time label PTS of the video packet to obtain a recombined code stream, where the recombined code stream is used in the set top box to perform audio and video synchronization processing.
  • the sending module 74 is configured to send the reassembled code stream to the set top box.
  • the original code stream sent by the encoder is obtained by the obtaining module 70; the processing module 72 performs a reduction process on the difference between the audio packet in the original code stream and the display time label PTS of the video packet to obtain a recombined code stream, where The reassembled code stream is used for performing the audio and video synchronization processing on the set top box; the sending module 74 sends the recombined code stream to the set top box, which solves the problem that the audio and video code stream synchronization effect is poor when the STB switches channels in the related art, and thus does not need to do any work on the set top box.
  • the modification can quickly realize the audio and video synchronization when the channel is switched, which greatly improves the user experience.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • An audio-video synchronization system is also provided in this embodiment.
  • the system is configured to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • FIG. 8 is a schematic diagram of an audio and video synchronization system in accordance with an embodiment of the present invention. As shown in FIG. 8, the system includes an encoder 80, a first device 82, and a set top box 84.
  • Encoder 80 is arranged to transmit the original stream.
  • the first device 82 is configured to obtain an original code stream sent by the encoder, perform a reduction process on the difference between the audio time packet of the original code stream and the display time label PTS of the video packet, obtain a recombined code stream, and send the recombined code stream.
  • the reassembled code stream is used for the set top box to perform audio and video synchronization processing.
  • the set top box 84 is configured to receive the reassembled code stream and perform audio and video synchronization processing according to the reassembled code stream.
  • the original code stream is sent by the encoder 80.
  • the first device 82 obtains the original code stream sent by the encoder, and performs a reduction process on the difference between the audio packet in the original code stream and the display time label PTS of the video packet. And reassembling the code stream, and sending the recombined code stream to the set top box, wherein the recombined code stream is used for the set top box to perform audio and video synchronization processing; the set top box 84 receives the recombined code stream, and performs audio and video synchronization processing according to the reassembled code stream, and solves the related art in the related art.
  • the STB switches channels, The problem of poor synchronization of audio and video code streams, and thus without any modification to the set-top box, can quickly realize audio and video synchronization during channel switching, greatly improving the user experience.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the audio-video synchronization method, device, and system provided by the embodiments of the present invention have the following beneficial effects: the problem that the audio and video code stream synchronization effect is poor when the STB switches channels in the related art is solved, and thus the problem is not needed.

Abstract

Provided in embodiments of the present invention are an audio and video synchronization method, device and system. The method comprises: a first device performs a difference reducing processing on differences of presentation time stamps (PTSs) of an audio packet and a video packet in a source code stream to obtain a restructured code stream, wherein the restructured code stream is used by a set-top box to perform an audio and video synchronization processing; and the first device sends the restructured code stream to the set-top box. The embodiment of the present invention solves the problem in the related art in which the audio and video code stream synchronization has poor effect when an STB switches channels, thereby enabling fast audio and video synchronization during channel switching without having to modify the set-top box, thus greatly improving user experience.

Description

音视频同步方法、装置及系统Audio and video synchronization method, device and system 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种音视频同步方法、装置及系统。The present invention relates to the field of communications, and in particular to an audio and video synchronization method, apparatus, and system.
背景技术Background technique
随着STB(Set Top Box,机顶盒)技术日益成熟,如何提高用户体验成为亟待解决的问题。通常,在STB切换频道时,为了实现视频音频同步输出,一般会采用如下两种同步机制:With the growing maturity of STB (Set Top Box) technology, how to improve the user experience has become an urgent problem to be solved. Generally, when the STB switches channels, in order to realize synchronous output of video and audio, the following two synchronization mechanisms are generally used:
(1)慢同步:STB收到视频就开始输出视频(不等与音频同步),在播放过程中,视频通过重放或者丢帧,逐步实现与音频之间的同步。这种方式的优点是视频播出速度快,频道切换速度快,但会在切入频道的前几秒看到慢动作现象,从而影响用户体验。(1) Slow synchronization: When the STB receives the video, it starts to output the video (not synchronized with the audio). During the playback, the video is synchronized with the audio by playing back or dropping the frame. The advantage of this method is that the video broadcast speed is fast, the channel switching speed is fast, but the slow motion phenomenon is seen in the first few seconds of cutting in the channel, thereby affecting the user experience.
(2)快同步:STB在实现视频和音频同步后才输出视频画面。采用该方式,用户不会看到视音频同步的过程,但由于同步后才有视频输出,因此导致频道切换时间长,进而也影响到用户体验。(2) Fast synchronization: The STB outputs the video picture after the video and audio are synchronized. In this way, the user does not see the process of video and audio synchronization, but since there is video output after synchronization, the channel switching time is long, which in turn affects the user experience.
因此,无论采用上述哪一种方案都无法规避音视频码流不同步带来的影响。Therefore, no matter which of the above schemes is adopted, there is no influence that the audio stream is not synchronized.
针对相关技术中在STB切换频道时,音视频码流同步效果差的问题,目前尚未提出有效的解决方案。In view of the problem that the audio and video code stream synchronization effect is poor when the STB switches channels in the related art, an effective solution has not been proposed yet.
发明内容Summary of the invention
本发明实施例提供了一种音视频同步方法、装置及系统,以至少解决相关技术中在STB切换频道时,音视频码流同步效果差的问题。The embodiment of the invention provides a method, a device and a system for synchronizing audio and video, so as to solve at least the problem that the audio and video code stream synchronization effect is poor when the STB switches channels in the related art.
根据本发明的一个实施例,提供了一种音视频同步方法,包括:第一设备获取编码器发送的原始码流;第一设备对原始码流中的音频包和视频包的显示时间标签PTS的差值执行缩小处理,得到重组码流,其中,重组码流用于机顶盒执行音视频同步处理;第一设备将重组码流发送至机顶盒。According to an embodiment of the present invention, there is provided a method for synchronizing audio and video, comprising: acquiring, by a first device, an original code stream sent by an encoder; and displaying, by a first device, a time stamp PTS of an audio packet and a video packet in the original code stream The difference is subjected to a reduction process to obtain a recombined code stream, wherein the reassembled code stream is used for the set top box to perform audio and video synchronization processing; and the first device transmits the reassembled code stream to the set top box.
可选地,第一设备对原始码流中的音频包和视频包的显示时间标签PTS的差值执行缩小处理包括:第一设备检测原始码流中的音频包和视频包的PTS的差值是否超过200ms;如果检测出原始码流中的音频包和视频包的PTS的差值超过200ms,则第一设备对原始码流中的音频包和视频包的PTS的差值执行缩小处理。Optionally, performing, by the first device, a reduction process on the difference between the audio packet in the original code stream and the display time label PTS of the video packet includes: detecting, by the first device, a difference between the audio packet in the original code stream and the PTS of the video packet. Whether it is more than 200 ms; if it is detected that the difference between the audio packet of the original stream and the PTS of the video packet exceeds 200 ms, the first device performs a reduction process on the difference between the audio packet of the original stream and the PTS of the video packet.
可选地,在第一设备将重组码流发送至机顶盒之后,该方法还包括:机顶盒根据重组码流执行音视频同步处理,并检测是否同步成功;如果检测出同步成功,则机顶盒向第一设备发送终止指令,其中,终止指令用于指示第一设备停止发送重组码流;和/或,如果在第一预 设时长内未检测出同步成功,则机顶盒向第一设备发送终止指令。Optionally, after the first device sends the reassembled code stream to the set top box, the method further includes: the set top box performs audio and video synchronization processing according to the reassembled code stream, and detects whether the synchronization is successful; if the synchronization is successful, the set top box is first. The device sends a termination instruction, wherein the termination instruction is used to instruct the first device to stop transmitting the reassembled code stream; and/or if the first pre- If the synchronization is not detected within the duration, the set top box sends a termination command to the first device.
可选地,在第一设备将重组码流发送至机顶盒之后,该方法还包括:机顶盒在接收重组码流达到第二预设时长之后,开始接收原始码流,在接收原始码流的时长达到第三预设时长之后,停止接收重组码流,其中,在机顶盒接收原始码流的第三预设时长内,机顶盒对重组码流和原始码流执行融合处理。Optionally, after the first device sends the reassembled code stream to the set top box, the method further includes: after receiving the reassembled code stream for the second preset duration, the set top box starts to receive the original code stream, and the time length of receiving the original code stream is reached. After the third preset duration, the receiving of the reassembled code stream is stopped, wherein the set top box performs a fusion process on the reassembled code stream and the original code stream within a third preset duration of the set top box receiving the original code stream.
可选地,机顶盒对重组码流和原始码流执行融合处理包括:机顶盒根据重组码流和原始码流分别携带的实时传输协议RTP包序号对重组码流和原始码流执行融合处理。Optionally, performing, by the set-top box, the merging process on the reassembled code stream and the original code stream, the set-top box performs a fusion process on the recombined code stream and the original code stream according to the real-time transport protocol RTP packet sequence number respectively carried by the reassembled code stream and the original code stream.
可选地,第一设备获取编码器发送的原始码流包括:第一设备经由内容分发网络CDN设备获取编码器发送的原始码流。Optionally, the acquiring, by the first device, the original code stream sent by the encoder comprises: acquiring, by the first device, the original code stream sent by the encoder via the content distribution network CDN device.
可选地,第一设备将重组码流发送至机顶盒包括:第一设备经由CDN设备将重组码流发送至机顶盒。Optionally, the sending, by the first device, the reassembled code stream to the set top box includes: sending, by the first device, the reassembled code stream to the set top box via the CDN device.
可选地,在第一设备将重组码流发送至机顶盒之前,该方法还包括:机顶盒接收频道切换指令;根据频道切换指令,机顶盒向第一设备发送请求消息,其中,请求消息用于请求第一设备发送重组码流。Optionally, before the first device sends the reassembled code stream to the set top box, the method further includes: the set top box receives the channel switching instruction; and according to the channel switching instruction, the set top box sends a request message to the first device, where the request message is used for the request A device sends a reassembled code stream.
可选地,第一设备为CDN设备,其中,CDN设备包括以下之一:骨干CDN设备,边缘CDN设备。Optionally, the first device is a CDN device, wherein the CDN device comprises one of the following: a backbone CDN device, an edge CDN device.
根据本发明的另一实施例,提供了一种音视频同步装置,包括:获取模块,设置为获取编码器发送的原始码流;处理模块,设置为对原始码流中的音频包和视频包的显示时间标签PTS的差值执行缩小处理,得到重组码流,其中,重组码流用于机顶盒执行音视频同步处理;发送模块,设置为将重组码流发送至机顶盒。According to another embodiment of the present invention, there is provided an audio and video synchronization apparatus, comprising: an acquisition module configured to acquire an original code stream sent by an encoder; and a processing module configured to match an audio package and a video package in the original code stream The difference of the display time label PTS performs a reduction process to obtain a recombined code stream, wherein the recombined code stream is used for the set top box to perform audio and video synchronization processing; and the sending module is configured to send the recombined code stream to the set top box.
根据本发明的另一实施例,提供了一种音视频同步系统,包括:编码器,设置为发送原始码流;第一设备,设置为获取编码器发送的原始码流,对原始码流中的音频包和视频包的显示时间标签PTS的差值执行缩小处理,得到重组码流,以及将重组码流发送至机顶盒,其中,重组码流用于机顶盒执行音视频同步处理;机顶盒,设置为接收重组码流,并根据重组码流执行音视频同步处理。According to another embodiment of the present invention, an audio and video synchronization system is provided, including: an encoder configured to transmit a source code stream; and a first device configured to acquire an original code stream sent by the encoder, in the original code stream The difference between the display time stamp PTS of the audio pack and the video pack performs a reduction process, obtains a recombined code stream, and sends the reassembled code stream to the set top box, wherein the reassembled code stream is used for performing set-top box to perform audio and video synchronization processing; the set top box is set to receive The code stream is reorganized, and audio and video synchronization processing is performed according to the recombined code stream.
本发明实施例,通过第一设备获取编码器发送的原始码流;第一设备对原始码流中的音频包和视频包的显示时间标签PTS的差值执行缩小处理,得到重组码流,其中,重组码流用于机顶盒执行音视频同步处理;第一设备将重组码流发送至机顶盒,解决了相关技术中在STB切换频道时,音视频码流同步效果差的问题,进而不需对机顶盒做任何的修改,即可在频道切换时快速实现音视频同步,大大提高了用户体验。In the embodiment of the present invention, the original code stream sent by the encoder is obtained by the first device; the first device performs a reduction process on the difference between the audio packet in the original code stream and the display time label PTS of the video packet to obtain a recombined code stream, where The recombined code stream is used for performing the audio and video synchronization processing on the set top box; the first device sends the recombined code stream to the set top box, which solves the problem that the audio and video code stream synchronization effect is poor when the STB switches channels in the related art, and thus does not need to do the set top box. Any modification can quickly realize audio and video synchronization when the channel is switched, which greatly improves the user experience.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示 意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are provided to provide a further understanding of the invention, which form a part of this application, The illustrative embodiments and the description thereof are illustrative of the invention and are not to be construed as limiting the invention. In the drawing:
图1是根据本发明第一实施例的音视频同步方法的流程图;1 is a flowchart of an audio and video synchronization method according to a first embodiment of the present invention;
图2是音视频传输网络的拓扑结构的示意图;2 is a schematic diagram of a topology structure of an audio and video transmission network;
图3是根据本发明第二实施例的音视频同步方法的示意图;3 is a schematic diagram of an audio and video synchronization method according to a second embodiment of the present invention;
图4是根据本发明第三实施例的音视频同步方法的示意图;4 is a schematic diagram of an audio and video synchronization method according to a third embodiment of the present invention;
图5是根据本发明第四实施例的音视频同步方法的示意图;FIG. 5 is a schematic diagram of an audio and video synchronization method according to a fourth embodiment of the present invention; FIG.
图6是根据本发明第五实施例的音视频同步方法的示意图;6 is a schematic diagram of an audio and video synchronization method according to a fifth embodiment of the present invention;
图7是根据本发明实施例的音视频同步装置的示意图;以及7 is a schematic diagram of an audio and video synchronization apparatus according to an embodiment of the present invention;
图8是根据本发明实施例的音视频同步系统的示意图。8 is a schematic diagram of an audio and video synchronization system in accordance with an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
在本实施例中提供了一种音视频同步方法,图1是根据本发明第一实施例的音视频同步方法的流程图,如图1所示,该流程包括如下步骤:In this embodiment, an audio and video synchronization method is provided. FIG. 1 is a flowchart of an audio and video synchronization method according to a first embodiment of the present invention. As shown in FIG. 1, the flow includes the following steps:
步骤S102,第一设备获取编码器发送的原始码流。Step S102: The first device acquires a source code stream sent by the encoder.
在该步骤中,第一设备可以直接与编码器连接,也即直接接收编码器发送的原始码流,或者第一设备也可以间接与编码器连接,例如,第一设备和编码器之间可以设置有其他的设备,比如CDN设备等,这样第一设备可以间接接收编码器发送的原始码流。In this step, the first device may be directly connected to the encoder, that is, directly receive the original code stream sent by the encoder, or the first device may also be indirectly connected to the encoder, for example, between the first device and the encoder. There are other devices, such as CDN devices, so that the first device can indirectly receive the original stream sent by the encoder.
步骤S104,第一设备对原始码流中的音频包和视频包的显示时间标签PTS的差值执行缩小处理,得到重组码流,其中,重组码流用于机顶盒执行音视频同步处理。Step S104: The first device performs a reduction process on the difference between the audio packet in the original code stream and the display time label PTS of the video packet to obtain a recombined code stream, where the reassembled code stream is used in the set top box to perform audio and video synchronization processing.
PTS为指示音视频显示时间的时间标签。显示时间标签PTS可以携带于原始码流的PES头信息之中,用于确定音视频显示的次序。The PTS is a time stamp indicating the time at which the audio and video are displayed. The display time stamp PTS may be carried in the PES header information of the original code stream for determining the order in which the audio and video are displayed.
在该实施例中,编码器生成的原始码流的显示时间标签PTS的差值可能较小,也可能较大。可选地,可以预先设置一个参考阈值,当原始码流的PTS的差值超过该参考阈值时,认为该原始码流的PTS的差值较大,反之,认为该原始码流的PTS的差值较小。第一设备对原始码流中的音频包和视频包的显示时间标签PTS的差值执行缩小处理包括:第一设备对原始码流中的音频包和视频包的显示时间标签PTS的差值执行缩小处理,使得PTS的差值不超过 上述的参考阈值,也得到重组码流。需要说明的是,该重组码流具有但不限于具有以下特征:音频包和视频包的PTS的差值不超过上述的参考阈值。In this embodiment, the difference in display time stamp PTS of the original code stream generated by the encoder may be small or large. Optionally, a reference threshold may be preset, and when the difference of the PTS of the original code stream exceeds the reference threshold, the difference of the PTS of the original code stream is considered to be large, and vice versa, the difference of the PTS of the original code stream is considered. The value is small. Performing a reduction process on the difference between the audio packet of the original code stream and the display time label PTS of the video packet by the first device includes: performing, by the first device, a difference between the audio packet in the original code stream and the display time label PTS of the video packet Reduce the processing so that the difference in PTS does not exceed The above reference threshold also results in a recombination code stream. It should be noted that the recombined code stream has, but is not limited to, the following characteristics: the difference between the PTS of the audio packet and the video packet does not exceed the above reference threshold.
为了使得重组码流可以更准确地适用于机顶盒执行音视频同步,可选地,可将上述的参考阈值设置为200ms,则第一设备对原始码流中的音频包和视频包的显示时间标签PTS的差值执行缩小处理包括:第一设备检测原始码流中的音频包和视频包的PTS的差值是否超过200ms;如果检测出原始码流中的音频包和视频包的PTS的差值超过200ms,则第一设备对原始码流中的音频包和视频包的PTS的差值执行缩小处理。In order to enable the reassembled code stream to be more accurately applied to the set top box to perform audio and video synchronization, optionally, the above reference threshold may be set to 200 ms, and the first device displays the time stamp of the audio pack and the video pack in the original stream. Performing the reduction processing of the difference of the PTS includes: the first device detects whether the difference between the audio packet of the original code stream and the PTS of the video packet exceeds 200 ms; if the difference between the PTS of the audio packet and the video packet in the original code stream is detected After more than 200 ms, the first device performs a reduction process on the difference between the audio packets in the original stream and the PTS of the video packets.
需要说明的是,第一设备设置于编码器和机顶盒之间,可以是音视频传输网络之外引入的一个设备,或者,也可以是音视频传输网络中的某个设备兼任的设备角色。例如,第一设备可以是传输网络中的CDN设备,该CDN设备区别于传统的CDN设备之处在于,在该CDN设备中设置有设置为执行PTS差值缩小处理的处理模块。因此,在本发明中,不对第一设备的实体形式做具体的限定,但是该第一设备需具有如下功能:It should be noted that the first device is disposed between the encoder and the set top box, and may be a device introduced outside the audio and video transmission network, or may be a device role concurrently owned by a certain device in the audio and video transmission network. For example, the first device may be a CDN device in a transport network, the CDN device being different from the conventional CDN device in that a processing module configured to perform a PTS difference reduction process is provided in the CDN device. Therefore, in the present invention, the physical form of the first device is not specifically limited, but the first device needs to have the following functions:
在接收到原始编码器的码流后,对音视频内容进行提取分析,判断视频与音频PTS是否差值过大(例如,如果同一时刻STB接受到的视频包和音频包的PTS值超过200ms,就会对音视频同步造成一定的影响),如果是,则对码流的内容进行二次重组,重组后的码流需使得音频包与视频包的PTS差值足够小(例如小于200ms)。After receiving the code stream of the original encoder, extracting and analyzing the audio and video content to determine whether the video and the audio PTS are too different (for example, if the PTS value of the video packet and the audio packet received by the STB at the same time exceeds 200 ms, It will have a certain impact on the audio and video synchronization. If it is, the content of the code stream will be recombined twice. The recombined code stream needs to make the PTS difference between the audio package and the video packet small enough (for example, less than 200ms).
另外,需要说明的是,本发明中对音频包和视频包的PTS的差值的缩小处理,可采用的具体的缩小方法较多,本发明不对此做具体的限定。In addition, it should be noted that, in the present invention, there are many specific reduction methods that can be used for the reduction of the difference between the PTS of the audio pack and the video pack, and the present invention does not specifically limit this.
步骤S106,第一设备将重组码流发送至机顶盒。Step S106, the first device sends the reassembled code stream to the set top box.
在该步骤中,第一设备可以直接将重组码流发送至机顶盒,也即第一设备和机顶盒直接相连接,或者第一设备和机顶盒之间也可以设置有其他的设备,例如,第一设备和机顶盒之间设置有CDN设备,可以是骨干CDN或者边缘CDN设备,通过CDN设备将第一设备生成的重组码流传送至机顶盒。In this step, the first device may directly send the recombined code stream to the set top box, that is, the first device and the set top box are directly connected, or another device may be disposed between the first device and the set top box, for example, the first device. A CDN device is disposed between the set top box and the CDN device, and the CDN device can transmit the recombined code stream generated by the first device to the set top box through the CDN device.
这里,机顶盒在接收到第一设备发送的重组码流之后,基于该重组码流,执行对音视频的同步。由于重组码流的音频包和视频包的PTS的差值相比原始码流进行了缩小处理,因此,在机顶盒接收到PTS差值缩小的原始码流(重组码流)之后,可以根据该重组码流快速实现音视频同步,进而缩短了机顶盒侧同步处理的时间,提高了频道切换用户的用户体验。Here, after receiving the recombined code stream sent by the first device, the set top box performs synchronization of the audio and video based on the recombined code stream. Since the difference between the PTS of the audio stream of the reassembled code stream and the PTS of the video packet is reduced compared to the original code stream, after the set-top box receives the original code stream (recombined code stream) with the PTS difference reduced, the reassembly can be performed according to the reassembly. The code stream quickly realizes audio and video synchronization, thereby shortening the time of synchronization processing on the set top box side, and improving the user experience of the channel switching user.
需要说明的是,机顶盒执行音视频同步的过程,可以一直基于重组码流执行,也即机顶盒控制播放音视频的过程中,重组码流不断地产生,并被发送至机顶盒;或者,也可以在最初进行音视频同步时,借助于重组码流,在音视频同步成功后,转而接收原始码流,从而实现音视频的同步播出。It should be noted that the process of performing audio and video synchronization of the set top box can be performed based on the recombined code stream, that is, in the process of controlling the playing of audio and video by the set top box, the recombined code stream is continuously generated and sent to the set top box; or, When the audio and video synchronization is initially performed, by means of the recombined code stream, after the audio and video synchronization is successful, the original code stream is received instead, thereby realizing the synchronized broadcast of the audio and video.
该实施例,通过第一设备获取编码器发送的原始码流;第一设备对原始码流中的音频包和视频包的显示时间标签PTS的差值执行缩小处理,得到重组码流,其中,重组码流用于机顶盒执行音视频同步处理;第一设备将重组码流发送至机顶盒,解决了相关技术中在STB切 换频道时,音视频码流同步效果差的问题,进而不需对机顶盒做任何的修改,即可在频道切换时快速实现音视频同步,大大提高了用户体验。In this embodiment, the original code stream sent by the encoder is obtained by the first device; the first device performs a reduction process on the difference between the audio time packet of the original code stream and the display time label PTS of the video packet to obtain a recombined code stream, where The recombined code stream is used for performing audio and video synchronization processing on the set top box; the first device sends the reassembled code stream to the set top box, and solves the related art in the STB cut When changing channels, the problem of poor synchronization of audio and video code streams, and thus without any modification to the set-top box, can quickly achieve audio and video synchronization during channel switching, greatly improving the user experience.
可选地,在第一设备将重组码流发送至机顶盒之后,该方法还包括:机顶盒根据重组码流执行音视频同步处理,并检测是否同步成功;如果检测出同步成功,则机顶盒向第一设备发送终止指令,其中,终止指令用于指示第一设备停止发送重组码流;和/或,如果在第一预设时长内未检测出同步成功,则机顶盒向第一设备发送终止指令。Optionally, after the first device sends the reassembled code stream to the set top box, the method further includes: the set top box performs audio and video synchronization processing according to the reassembled code stream, and detects whether the synchronization is successful; if the synchronization is successful, the set top box is first. The device sends a termination instruction, wherein the termination instruction is used to instruct the first device to stop transmitting the reassembled code stream; and/or, if the synchronization is not detected within the first preset duration, the set top box sends a termination instruction to the first device.
为了提高音视频同步的执行效率,可选地,可以在对音视频同步是否成功进行检测,如果检测出同步成功,则机顶盒指示第一设备停止发送重组码流,也即在快速实现音视频同步后,不再利用第一设备执行PTS差值缩小处理;或者,也可以预先在为机顶盒的音视频同步过程设定定时器,定时器在机顶盒接收到重组码流开始进行计时,并在预设时长后停止计时。同时,在计时过程中检测音视频同步是否执行成功,如果在预设时长内机顶盒未检测出音视频同步成功,则在计时终止时,向第一设备发送终止指令;如果在计时时长内检测出音视频同步成功,则在检测到同步成功时,向第一设备发送终止指令。In order to improve the efficiency of the audio and video synchronization, optionally, the synchronization of the audio and video synchronization may be performed. If the synchronization is successful, the set top box instructs the first device to stop transmitting the recombined code stream, that is, to quickly realize the audio and video synchronization. After that, the PTS difference reduction processing is not performed by using the first device; or, the timer may be set in advance for the audio and video synchronization process of the set top box, and the timer starts to perform timing in the set top box, and is preset. Stop timing after the duration. At the same time, detecting whether the audio and video synchronization is successful during the timing, if the set top box does not detect the audio and video synchronization success within the preset time period, when the timing is terminated, the termination instruction is sent to the first device; if the timing is detected within the time duration If the audio and video synchronization is successful, a termination command is sent to the first device when the synchronization is successfully detected.
需要说明的是,机顶盒播放音视频过程中,可以全程利用重组码流。或者,也可以在指示第一设备停止发送重组码流之前的预设时长内,开始接收编码器发送的原始码流,经过原始码流与重组码流的融合,使得原始码流同步,这样后续可以只接收原始码流,而不再需要接收重组码流;也即,重组码流只在一段较短的时长内为原始码流的音视频同步奠定基础,而后续在音视频播放过程中利用的还是原始码流。It should be noted that during the process of playing audio and video in the set top box, the recombined code stream can be utilized in the whole process. Alternatively, the original code stream sent by the encoder may be started to be received by the original code stream and the recombined code stream, and the original code stream is synchronized, so as to follow the preset time length before the first device stops transmitting the recombined code stream. The original code stream can be received only, and the reassembled code stream is no longer needed to be received; that is, the reassembled code stream lays a foundation for audio and video synchronization of the original code stream only for a short period of time, and is subsequently utilized in audio and video playback. Still the original stream.
为了提高音视频同步的执行效率,可选地,在第一设备将重组码流发送至机顶盒之后,该方法还包括:机顶盒在接收重组码流达到第二预设时长之后,开始接收原始码流,在接收原始码流的时长达到第三预设时长之后,停止接收重组码流,其中,在机顶盒接收原始码流的第三预设时长内,机顶盒对重组码流和原始码流执行融合处理。In order to improve the performance of the audio and video synchronization, the method further includes: after the first device sends the reassembled code stream to the set top box, the method further includes: the set top box starts to receive the original code stream after receiving the reassembled code stream for a second preset duration After receiving the original code stream for a third preset duration, stopping receiving the reassembled code stream, wherein the set top box performs a fusion process on the reassembled code stream and the original code stream within a third preset duration of the set top box receiving the original code stream. .
在该实施例中,机顶盒最初只接收重组码流,在接收重组码流第二预设时长之后,开始同时接收重组码流和编码器发送的原始码流(其中,可以是第一设备进行计时,在达到第二预设时长之后,通知机顶盒接收编码器发送的原始码流)。机顶盒对两路码流执行融合处理。可选地,机顶盒对重组码流和原始码流执行融合处理可以通过以下方式实现:机顶盒根据重组码流和原始码流分别携带的实时传输协议RTP包序号对重组码流和原始码流执行融合处理。具体地,机顶盒根据接收到的原始码流和之前接收的重组码流的RTP头包序进行两条码流的融合,当原始码流的包序号赶上重组码流的包序号,则可以指示第一设备停止发送重组码流。其中,可以在机顶盒中设置一定时器,如果超过该定时器的定时时长尚未实现融合成功,也可以指示终止第一设备发送重组码流,而只接收原始码流。In this embodiment, the set top box initially receives only the reassembled code stream, and after receiving the reassembled code stream for a second preset duration, begins to receive the reassembled code stream and the original code stream sent by the encoder (wherein the first device can be timed) After the second preset duration is reached, the set top box is notified to receive the original code stream sent by the encoder. The set top box performs fusion processing on the two streams. Optionally, the set-top box performs the fusion processing on the recombined code stream and the original code stream by performing the following manner: the set-top box performs the fusion on the recombined code stream and the original code stream according to the real-time transport protocol RTP packet sequence number carried by the reassembled code stream and the original code stream respectively. deal with. Specifically, the set top box performs the fusion of the two code streams according to the received original code stream and the RTP header sequence of the previously received recombined code stream. When the packet sequence number of the original code stream catches up with the packet sequence number of the reassembled code stream, the A device stops transmitting the reassembled code stream. A timer may be set in the set-top box. If the synchronization time of the timer is not successfully achieved, the first device may be instructed to terminate the transmission of the reassembled code stream, and only the original code stream is received.
需要说明的是,对于本发明中重组码流和原始码流的融合处理,可采用的具体的融合方法较多,这里不再做具体的限定。It should be noted that, for the fusion processing of the recombined code stream and the original code stream in the present invention, a specific fusion method may be adopted, and no specific limitation is made herein.
可选地,第一设备获取编码器发送的原始码流包括:第一设备经由内容分发网络CDN设备获取编码器发送的原始码流。 Optionally, the acquiring, by the first device, the original code stream sent by the encoder comprises: acquiring, by the first device, the original code stream sent by the encoder via the content distribution network CDN device.
在该实施例中,第一设备可以直接与机顶盒相连接,以将重组码流发送至机顶盒;或者,第一设备可以经由其他设备与机顶盒相连接。In this embodiment, the first device can be directly connected to the set top box to send the reassembled code stream to the set top box; or the first device can be connected to the set top box via other devices.
可选地,第一设备将重组码流发送至机顶盒包括:第一设备经由CDN设备将重组码流发送至机顶盒。Optionally, the sending, by the first device, the reassembled code stream to the set top box includes: sending, by the first device, the reassembled code stream to the set top box via the CDN device.
在该实施例中,第一设备可以直接与编码器向连接,以接收编码器发送的原始码流;或者第一设备也可以经由其他设备与编码器相连接。In this embodiment, the first device may be directly connected to the encoder to receive the original code stream transmitted by the encoder; or the first device may be connected to the encoder via other devices.
可选地,在第一设备将重组码流发送至机顶盒之前,该方法还包括:机顶盒接收频道切换指令;根据频道切换指令,机顶盒向第一设备发送请求消息,其中,请求消息用于请求第一设备发送重组码流。Optionally, before the first device sends the reassembled code stream to the set top box, the method further includes: the set top box receives the channel switching instruction; and according to the channel switching instruction, the set top box sends a request message to the first device, where the request message is used for the request A device sends a reassembled code stream.
为了对音视频同步执行有效地控制,可选地,可以以频道切换指令(例如,用户通过遥控设备输入的频道切换指令)为触发信号,当接收到该触发信号时,机顶盒会自动向第一设备发送重组码流的请求消息,第一设备按照请求消息将重组码流发送至机顶盒。In order to perform effective control on the audio and video synchronization, the channel switching instruction (for example, the channel switching instruction input by the user through the remote control device) may be used as a trigger signal, and when the trigger signal is received, the set top box automatically returns to the first The device sends a request message for reassembling the code stream, and the first device sends the reassembled code stream to the set top box according to the request message.
可选地,第一设备为CDN设备,其中,CDN设备包括以下之一:骨干CDN设备,边缘CDN设备。Optionally, the first device is a CDN device, wherein the CDN device comprises one of the following: a backbone CDN device, an edge CDN device.
在上述实施例中,通过在编码器与机顶盒之间引入一个装置(该装置部署在码流传输网络中的某个节点服务器上,或者为码流传输网络中另外引入的一台服务器),该装置输入编码器输出的原始码流(首先提取音视频的PTS信息,判断PTS差值是否过大例如同一时刻终端接受到的视频包和音频包的PTS值超过200ms即为过大,如果过大即对音视频包的PTS差值执行缩小处理),输出音视频PTS重组后的码流,机顶盒接收到重组后的码流并快速实现音视频同步。上述实施例不需要机顶盒做任何改进,即可在切换频道时快速实现音视频同步,大大提高了用户的观感体验。In the above embodiment, by introducing a device between the encoder and the set top box (the device is deployed on a node server in the code stream transmission network, or a server additionally introduced in the code stream transmission network), The device inputs the original code stream output by the encoder (first extracts the PTS information of the audio and video, and determines whether the PTS difference is too large, for example, the PTS value of the video packet and the audio packet received by the terminal at the same time is too large, if it is too large, if it is too large That is, the PTS difference of the audio and video packets is subjected to a reduction process, and the code stream recombined by the audio and video PTS is output, and the set top box receives the recombined code stream and quickly realizes audio and video synchronization. The above embodiment does not require any improvement of the set-top box, and can quickly realize audio and video synchronization when switching channels, which greatly improves the user's viewing experience.
图2是音视频传输网络的拓扑结构的示意图。如图2所示,该拓扑结构包括:编码器传输原始码流至骨干CDN设备,骨干CDN设备经边缘CDN设备将原始码流发送至机顶盒终端,机顶盒终端进行相应的音视频同步控制。2 is a schematic diagram of a topology of an audiovisual transmission network. As shown in FIG. 2, the topology includes: the encoder transmits the original code stream to the backbone CDN device, and the backbone CDN device sends the original code stream to the set top box terminal via the edge CDN device, and the set top box terminal performs corresponding audio and video synchronization control.
图3是根据本发明第二实施例的音视频同步方法的示意图。如图3所示,在音视频传输网络的拓扑结构的基础上增加了PTS重组服务器。该PTS重组服务器设置于CDN设备和机顶盒终端之间。编码器经由CDN设备将原始码流发送至PTS重组服务器,PTS重组服务器对原始码流中的视频包和音频包的PTS的差值进行分析,在该差值超过参考阈值时,将PTS执行缩小处理,并获取PTS重组码流(也即上述实施例中的重组码流)。PTS重组服务器将PTS重组码流发送至机顶盒终端,机顶盒终端根据接收到的PTS重组码流快速实现音视频同步,并在同步成功后指示PTS重组服务器停止发送PTS重组码流,并转而接收经由CDN设备转发的编码器生成的原始码流,进而将原始码流与PTS重组码流进行融合,实现音视频的同步输出。3 is a schematic diagram of an audio and video synchronization method according to a second embodiment of the present invention. As shown in FIG. 3, a PTS reassembly server is added based on the topology of the audio and video transmission network. The PTS reassembly server is disposed between the CDN device and the set top box terminal. The encoder sends the original code stream to the PTS reassembly server via the CDN device, and the PTS reassembly server analyzes the difference between the PTS of the video packet and the audio packet in the original code stream, and when the difference exceeds the reference threshold, the PTS performs the reduction. Processing, and acquiring the PTS recombination code stream (that is, the recombined code stream in the above embodiment). The PTS reassembly server sends the PTS recombination code stream to the set-top box terminal, and the set-top box terminal quickly implements audio and video synchronization according to the received PTS recombination code stream, and after the synchronization succeeds, instructs the PTS reassembly server to stop transmitting the PTS recombination code stream, and then receives the The original code stream generated by the encoder forwarded by the CDN device combines the original code stream with the PTS recombination code stream to realize synchronous output of audio and video.
具体地,该过程主要包括: Specifically, the process mainly includes:
步骤S31,在传输网络部署一台PTS重组服务器,PTS重组服务器的功能是接收原始编码器的码流,并进行缓存,对音频视频信息进行分析,重新整理音视频PTS的差值,并将差值缩小。Step S31, deploying a PTS reassembly server in the transmission network, the function of the PTS reassembly server is to receive the code stream of the original encoder, perform caching, analyze the audio and video information, and rearrange the difference of the audio and video PTS, and the difference is The value is reduced.
步骤S32,当切换频道的时候,机顶盒(STB)首先与这台PTS重组服务器进行通信,请求PTS重组码流,PTS重组服务器接收的码流来源于CDN中心节点,并进行了较短时间的缓存,这段缓存足以让STB快速实现音视频同步。Step S32, when the channel is switched, the set top box (STB) first communicates with the PTS reassembly server, requests the PTS to reassemble the code stream, and the code stream received by the PTS reassembly server is originated from the CDN central node, and is cached for a short time. This buffer is enough for the STB to quickly synchronize audio and video.
步骤S33,PTS重组服务器接收到STB的请求命令后,将自己重组后的码流发送给STB。Step S33: After receiving the request command of the STB, the PTS reassembly server sends the reassembled code stream to the STB.
步骤S34,STB接收到PTS重组服务器的码流后,快速进行音视频同步。Step S34, after receiving the code stream of the PTS reassembly server, the STB quickly performs audio and video synchronization.
步骤S35,STB同步成功后,立即给PTS重组服务器发送停止请求重组码流的命令(也即上述的终止指令),转而接受CDN原始码流,并进行两条流的融合。Step S35: After the STB synchronization succeeds, the PTS reassembly server immediately sends a command to stop the reassembly of the code stream (that is, the termination instruction described above), and then accepts the CDN source code stream, and performs fusion of the two streams.
步骤S36,如果STB超时没有同步成功,也会立即停止接收重组码流,转而接收CDN原始码流。Step S36, if the STB times out without synchronization success, the receiving recombination code stream is immediately stopped, and the CDN source code stream is received instead.
通过该实施例,通过在CDN设备和机顶盒终端之间设置一个PTS重组服务器,以将重组码流发送至机顶盒终端,用于机顶盒终端快速实现音视频的同步,不需对机顶盒终端作任何改进,就可在切换频道时快速实现音视频同步,大大提高了用户的观感体验。With this embodiment, by setting a PTS reassembly server between the CDN device and the set top box terminal, the reassembled code stream is sent to the set top box terminal, and the set top box terminal can quickly realize the synchronization of audio and video without any improvement on the set top box terminal. It can quickly realize audio and video synchronization when switching channels, which greatly improves the user's viewing experience.
图4是根据本发明第三实施例的音视频同步方法的示意图。如图4所示,在音视频传输网络的拓扑结构的基础上增加了PTS重组服务器。该PTS重组服务器设置于编码器和骨干CDN设备之间,PTS重组服务器接收编码器发送的原始码流,并对原始码流执行PTS差值缩小的处理,得到PTS重组码流,将PTS重组码流发送至骨干CDN设备,骨干CDN设备经由边缘CDN设备将PTS重组码流发送至机顶盒终端。4 is a schematic diagram of an audio and video synchronization method according to a third embodiment of the present invention. As shown in FIG. 4, a PTS reassembly server is added based on the topology of the audio and video transmission network. The PTS reassembly server is disposed between the encoder and the backbone CDN device, and the PTS reassembly server receives the original code stream sent by the encoder, and performs PTS difference reduction processing on the original code stream to obtain a PTS recombination code stream, and the PTS recombination code is obtained. The stream is sent to the backbone CDN device, and the backbone CDN device sends the PTS reassembly code stream to the set top box terminal via the edge CDN device.
具体地,该过程主要包括:Specifically, the process mainly includes:
步骤S41,在编码器的后端部署一台PTS重组服务器。In step S41, a PTS reassembly server is deployed at the back end of the encoder.
步骤S42,PTS重组服务器接受编码器出来的原始码流,对码流进行分析,并对音视频PTS进行重组。In step S42, the PTS reassembly server accepts the original code stream from the encoder, analyzes the code stream, and reassembles the audio and video PTS.
步骤S43,重组后的码流会经过CDN设备,传输到STB。In step S43, the reassembled code stream is transmitted to the STB through the CDN device.
步骤S44,STB可以依靠重组后的码流进行快速同步。In step S44, the STB can rely on the recombined code stream for fast synchronization.
通过该实施例,通过在CDN设备和编码器之间设置一个PTS重组服务器,以将重组码流经CDN设备发送至机顶盒终端,用于机顶盒终端快速实现音视频的同步,不需对机顶盒终端作任何改进,就可在切换频道时快速实现音视频同步,大大提高了用户的观感体验。With this embodiment, a PTS reassembly server is set up between the CDN device and the encoder to send the recombined code stream to the set-top box terminal through the CDN device, and the set-top box terminal can quickly realize the synchronization of audio and video, without the need for the set-top box terminal. Any improvement can quickly realize audio and video synchronization when switching channels, greatly improving the user's viewing experience.
图5是根据本发明第四实施例的音视频同步方法的示意图。如图5所示,在音视频传输网络的拓扑结构的基础上,在骨干CDN设备上部署了PTS重组码流模块,用于对原始码流的PTS的差值执行缩小处理。其中,编码器发送原始码流至骨干CDN设备,骨干CDN设备通 过自身部署的PTS重组码流模块,对原始码流的PTS的差值执行缩小处理,得到PTS重组码流,并将PTS重组码流经由边缘CDN发送至机顶盒终端,机顶盒终端基于PTS重组码流实现音视频同步。FIG. 5 is a schematic diagram of an audio and video synchronization method according to a fourth embodiment of the present invention. As shown in FIG. 5, on the basis of the topology of the audio and video transmission network, a PTS reassembly code stream module is deployed on the backbone CDN device for performing a reduction process on the difference of the PTS of the original code stream. The encoder sends the original code stream to the backbone CDN device, and the backbone CDN device passes. The self-deployed PTS recombination code stream module performs a reduction process on the difference of the PTS of the original code stream to obtain a PTS recombination code stream, and sends the PTS recombination code stream to the set top box terminal via the edge CDN, and the set top box terminal reassembles the code stream based on the PTS. Realize audio and video synchronization.
具体地,该过程主要包括:Specifically, the process mainly includes:
步骤S51,直接在某个骨干CDN设备上部署PTS重组码流模块。In step S51, the PTS reassembly code stream module is directly deployed on a backbone CDN device.
步骤S52,PTS重组码流模块分析视音频信息,并对音视频PTS进行重组。Step S52, the PTS recombination code stream module analyzes the video and audio information, and reorganizes the audio and video PTS.
步骤S53,重组后的码流会经过骨干CDN设备发出。In step S53, the reassembled code stream is sent through the backbone CDN device.
步骤S54,STB经过边缘CDN设备接收到骨干CDN设备的PTS重组码流以实现音视频的快速同步。Step S54: The STB receives the PTS recombination code stream of the backbone CDN device through the edge CDN device to implement fast synchronization of audio and video.
通过该实施例,通过在骨干CDN设备中设置一个PTS重组码流模块,以将重组码流经CDN设备发送至机顶盒终端,用于机顶盒终端快速实现音视频的同步,不需对机顶盒终端作任何改进,就可在切换频道时快速实现音视频同步,大大提高了用户的观感体验。In this embodiment, by setting a PTS reassembly code stream module in the backbone CDN device, the recombined code stream is sent to the set top box terminal through the CDN device, and the set top box terminal can quickly realize audio and video synchronization, without any need for the set top box terminal. Improved, you can quickly achieve audio and video synchronization when switching channels, greatly improving the user's look and feel experience.
图6是根据本发明第五实施例的音视频同步方法的示意图。如图6所示,在音视频传输网络的拓扑结构的基础上,在边缘CDN设备上部署了PTS重组码流模块,设置为对原始码流的PTS的差值执行缩小处理。其中,编码器生成原始码流,将通过骨干CDN设备将其发送至边缘CDN设备,边缘CDN设备中部署有PTS重组码流模块,该模块对原始码流的PTS的差值执行缩小处理,得到PTS重组码流,并将该PTS重组码流发送至机顶盒终端。机顶盒终端基于PTS重组码流执行音视频的同步。FIG. 6 is a schematic diagram of an audio and video synchronization method according to a fifth embodiment of the present invention. As shown in FIG. 6, on the basis of the topology of the audio and video transmission network, a PTS reassembly code stream module is deployed on the edge CDN device, and is set to perform a reduction process on the difference of the PTS of the original code stream. The encoder generates the original code stream, which is sent to the edge CDN device by the backbone CDN device, and the PTS recombination code stream module is deployed in the edge CDN device, and the module performs a reduction process on the difference of the PTS of the original code stream to obtain a reduction process. The PTS reassembles the code stream and sends the PTS reassembly code stream to the set top box terminal. The set top box terminal performs audio and video synchronization based on the PTS reassembly code stream.
具体地,该过程主要包括:Specifically, the process mainly includes:
S61,在某个边缘CDN设备上部署PTS重组码流模块。S61. Deploy a PTS reassembly code stream module on an edge CDN device.
S62,PTS重组码流模块分析视音频信息,并对音视频PTS进行重组。S62: The PTS recombination code stream module analyzes the video and audio information, and reorganizes the audio and video PTS.
S63,重组后的码流会经过边缘CDN设备发出。S63, the recombined code stream is sent through the edge CDN device.
S64,STB接受到边缘CDN设备的PTS重组码流以实现音视频的快速同步。S64. The STB receives the PTS reassembly code stream of the edge CDN device to implement fast synchronization of audio and video.
通过该实施例,通过在边缘CDN设备中设置一个PTS重组码流模块,以将重组码流经CDN设备发送至机顶盒终端,用于机顶盒终端快速实现音视频的同步,缩小了重组范围,并且不需对机顶盒终端作任何改进,就可在切换频道时快速实现音视频同步,大大提高了用户的观感体验。With this embodiment, by setting a PTS reassembly code stream module in the edge CDN device, the recombination code stream is sent to the set top box terminal through the CDN device, and the set top box terminal can quickly realize the synchronization of audio and video, thereby reducing the reorganization range, and not Any improvement to the set-top box terminal is required to quickly synchronize audio and video when switching channels, which greatly enhances the user's viewing experience.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机, 服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM, including a number of instructions to make a terminal device (can be a mobile phone, a computer, The server, or network device, etc.) performs the methods described in various embodiments of the present invention.
在本实施例中还提供了一种音视频同步装置,该装置设置为实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。An audio and video synchronization device is also provided in this embodiment, and the device is configured to implement the foregoing embodiments and preferred embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图7是根据本发明实施例的音视频同步装置的示意图。如图7所示,该装置包括:获取模块70、处理模块72和发送模块74。FIG. 7 is a schematic diagram of an audio and video synchronization apparatus according to an embodiment of the present invention. As shown in FIG. 7, the apparatus includes an acquisition module 70, a processing module 72, and a transmission module 74.
获取模块70,设置为获取编码器发送的原始码流。The obtaining module 70 is configured to obtain a source code stream sent by the encoder.
处理模块72,设置为对原始码流中的音频包和视频包的显示时间标签PTS的差值执行缩小处理,得到重组码流,其中,重组码流用于机顶盒执行音视频同步处理。The processing module 72 is configured to perform a reduction process on the difference between the audio packet in the original code stream and the display time label PTS of the video packet to obtain a recombined code stream, where the recombined code stream is used in the set top box to perform audio and video synchronization processing.
发送模块74,设置为将重组码流发送至机顶盒。The sending module 74 is configured to send the reassembled code stream to the set top box.
该实施例,通过获取模块70获取编码器发送的原始码流;处理模块72对原始码流中的音频包和视频包的显示时间标签PTS的差值执行缩小处理,得到重组码流,其中,重组码流用于机顶盒执行音视频同步处理;发送模块74将重组码流发送至机顶盒,解决了相关技术中在STB切换频道时,音视频码流同步效果差的问题,进而不需对机顶盒做任何的修改,即可在频道切换时快速实现音视频同步,大大提高了用户体验。In this embodiment, the original code stream sent by the encoder is obtained by the obtaining module 70; the processing module 72 performs a reduction process on the difference between the audio packet in the original code stream and the display time label PTS of the video packet to obtain a recombined code stream, where The reassembled code stream is used for performing the audio and video synchronization processing on the set top box; the sending module 74 sends the recombined code stream to the set top box, which solves the problem that the audio and video code stream synchronization effect is poor when the STB switches channels in the related art, and thus does not need to do any work on the set top box. The modification can quickly realize the audio and video synchronization when the channel is switched, which greatly improves the user experience.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
在本实施例中还提供了一种音视频同步系统,该系统设置为实现上述实施例及优选实施方式,已经进行过说明的不再赘述。An audio-video synchronization system is also provided in this embodiment. The system is configured to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
图8是根据本发明实施例的音视频同步系统的示意图。如图8所示,该系统包括:编码器80、第一设备82和机顶盒84。8 is a schematic diagram of an audio and video synchronization system in accordance with an embodiment of the present invention. As shown in FIG. 8, the system includes an encoder 80, a first device 82, and a set top box 84.
编码器80,设置为发送原始码流。Encoder 80 is arranged to transmit the original stream.
第一设备82,设置为获取编码器发送的原始码流,对原始码流中的音频包和视频包的显示时间标签PTS的差值执行缩小处理,得到重组码流,以及将重组码流发送至机顶盒,其中,重组码流用于机顶盒执行音视频同步处理。The first device 82 is configured to obtain an original code stream sent by the encoder, perform a reduction process on the difference between the audio time packet of the original code stream and the display time label PTS of the video packet, obtain a recombined code stream, and send the recombined code stream. To the set top box, wherein the reassembled code stream is used for the set top box to perform audio and video synchronization processing.
机顶盒84,设置为接收重组码流,并根据重组码流执行音视频同步处理。The set top box 84 is configured to receive the reassembled code stream and perform audio and video synchronization processing according to the reassembled code stream.
该实施例,通过编码器80发送原始码流;第一设备82获取编码器发送的原始码流,对原始码流中的音频包和视频包的显示时间标签PTS的差值执行缩小处理,得到重组码流,以及将重组码流发送至机顶盒,其中,重组码流用于机顶盒执行音视频同步处理;机顶盒84接收重组码流,并根据重组码流执行音视频同步处理,解决了相关技术中在STB切换频道时, 音视频码流同步效果差的问题,进而不需对机顶盒做任何的修改,即可在频道切换时快速实现音视频同步,大大提高了用户体验。In this embodiment, the original code stream is sent by the encoder 80. The first device 82 obtains the original code stream sent by the encoder, and performs a reduction process on the difference between the audio packet in the original code stream and the display time label PTS of the video packet. And reassembling the code stream, and sending the recombined code stream to the set top box, wherein the recombined code stream is used for the set top box to perform audio and video synchronization processing; the set top box 84 receives the recombined code stream, and performs audio and video synchronization processing according to the reassembled code stream, and solves the related art in the related art. When the STB switches channels, The problem of poor synchronization of audio and video code streams, and thus without any modification to the set-top box, can quickly realize audio and video synchronization during channel switching, greatly improving the user experience.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,获取编码器发送的原始码流。S1: Obtain the original code stream sent by the encoder.
S2,对原始码流中的音频包和视频包的显示时间标签PTS的差值执行缩小处理,得到重组码流,其中,重组码流用于机顶盒执行音视频同步处理。S2, performing a reduction process on the difference between the audio time packet of the original code stream and the display time label PTS of the video packet to obtain a recombined code stream, where the recombined code stream is used for the set top box to perform audio and video synchronization processing.
S3,将重组码流发送至机顶盒。S3, the reassembled code stream is sent to the set top box.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
如上所述,本发明实施例提供的一种音视频同步方法、装置及系统,具有以下有益效果:解决了相关技术中在STB切换频道时,音视频码流同步效果差的问题,进而不需对机顶盒做任何的修改,即可在频道切换时快速实现音视频同步,大大提高了用户体验。 As described above, the audio-video synchronization method, device, and system provided by the embodiments of the present invention have the following beneficial effects: the problem that the audio and video code stream synchronization effect is poor when the STB switches channels in the related art is solved, and thus the problem is not needed. By making any modifications to the set-top box, you can quickly synchronize audio and video during channel switching, greatly improving the user experience.

Claims (12)

  1. 一种音视频同步方法,包括:An audio and video synchronization method includes:
    第一设备获取编码器发送的原始码流;The first device acquires a source code stream sent by the encoder;
    所述第一设备对所述原始码流中的音频包和视频包的显示时间标签PTS的差值执行缩小处理,得到重组码流,其中,所述重组码流用于机顶盒执行音视频同步处理;And performing, by the first device, a reduction process on a difference between a display time stamp PTS of the audio packet and the video packet in the original code stream, to obtain a recombined code stream, where the recombined code stream is used to perform audio and video synchronization processing on the set top box;
    所述第一设备将所述重组码流发送至所述机顶盒。The first device sends the reassembled code stream to the set top box.
  2. 根据权利要求1所述的方法,其中,所述第一设备对所述原始码流中的音频包和视频包的显示时间标签PTS的差值执行缩小处理包括:The method according to claim 1, wherein the performing, by the first device, a reduction process on a difference value of a display time stamp PTS of the audio packet and the video packet in the original code stream comprises:
    所述第一设备检测所述原始码流中的音频包和视频包的PTS的差值是否超过200ms;The first device detects whether a difference between a PTS of the audio packet and the video packet in the original code stream exceeds 200 ms;
    如果检测出所述原始码流中的音频包和视频包的PTS的差值超过200ms,则所述第一设备对所述原始码流中的音频包和视频包的PTS的差值执行缩小处理。If it is detected that the difference between the audio packets of the original code stream and the PTS of the video packet exceeds 200 ms, the first device performs a reduction process on the difference between the audio packets of the original code stream and the PTS of the video packets. .
  3. 根据权利要求1所述的方法,其中,在所述第一设备将所述重组码流发送至所述机顶盒之后,所述方法还包括:The method of claim 1, wherein after the first device sends the reassembled code stream to the set top box, the method further comprises:
    所述机顶盒根据所述重组码流执行音视频同步处理,并检测是否同步成功;The set top box performs audio and video synchronization processing according to the reassembled code stream, and detects whether the synchronization is successful;
    如果检测出同步成功,则所述机顶盒向所述第一设备发送终止指令,其中,所述终止指令用于指示所述第一设备停止发送所述重组码流;和/或,If the synchronization is successful, the set top box sends a termination instruction to the first device, where the termination instruction is used to instruct the first device to stop sending the reassembled code stream; and/or,
    如果在第一预设时长内未检测出同步成功,则所述机顶盒向所述第一设备发送所述终止指令。If the synchronization is not detected within the first preset duration, the set top box sends the termination instruction to the first device.
  4. 根据权利要求1所述的方法,其中,在所述第一设备将所述重组码流发送至所述机顶盒之后,所述方法还包括:The method of claim 1, wherein after the first device sends the reassembled code stream to the set top box, the method further comprises:
    所述机顶盒在接收所述重组码流达到第二预设时长之后,开始接收所述原始码流,在接收所述原始码流的时长达到第三预设时长之后,停止接收所述重组码流,其中,在所述机顶盒接收所述原始码流的第三预设时长内,所述机顶盒对所述重组码流和所述原始码流执行融合处理。After receiving the reassembled code stream for a second preset duration, the set-top box starts to receive the original code stream, and stops receiving the reassembled code stream after receiving the original code stream for a third preset duration. The set top box performs a fusion process on the reassembled code stream and the original code stream within a third preset duration in which the set top box receives the original code stream.
  5. 根据权利要求4所述的方法,其中,所述机顶盒对所述重组码流和所述原始码流执行融合处理包括:The method according to claim 4, wherein said set top box performs a fusion process on said reassembled code stream and said original code stream comprises:
    所述机顶盒根据所述重组码流和所述原始码流分别携带的实时传输协议RTP包序号对所述重组码流和所述原始码流执行融合处理。The set top box performs a fusion process on the reassembled code stream and the original code stream according to the real-time transport protocol RTP packet sequence number respectively carried by the reassembled code stream and the original code stream.
  6. 根据权利要求1所述的方法,其中,第一设备获取编码器发送的原始码流包括:The method according to claim 1, wherein the acquiring, by the first device, the original code stream sent by the encoder comprises:
    所述第一设备经由内容分发网络CDN设备获取所述编码器发送的原始码流。The first device acquires a source code stream sent by the encoder via a content distribution network CDN device.
  7. 根据权利要求1所述的方法,其中,所述第一设备将所述重组码流发送至所述机顶盒包 括:The method of claim 1 wherein said first device transmits said reassembled code stream to said set top box include:
    所述第一设备经由CDN设备将所述重组码流发送至所述机顶盒。The first device transmits the reassembled code stream to the set top box via a CDN device.
  8. 根据权利要求1所述的方法,其中,在所述第一设备将所述重组码流发送至所述机顶盒之前,所述方法还包括:The method of claim 1, wherein before the first device sends the reassembled code stream to the set top box, the method further comprises:
    所述机顶盒接收频道切换指令;The set top box receives a channel switching instruction;
    根据所述频道切换指令,所述机顶盒向所述第一设备发送请求消息,其中,所述请求消息用于请求所述第一设备发送所述重组码流。And the set top box sends a request message to the first device according to the channel switching instruction, where the request message is used to request the first device to send the reassembled code stream.
  9. 根据权利要求1所述的方法,其中,所述第一设备为CDN设备,其中,所述CDN设备包括以下之一:骨干CDN设备,边缘CDN设备。The method of claim 1, wherein the first device is a CDN device, wherein the CDN device comprises one of: a backbone CDN device, an edge CDN device.
  10. 一种音视频同步装置,包括:An audio and video synchronization device includes:
    获取模块,设置为获取编码器发送的原始码流;Obtaining a module, configured to obtain a source code stream sent by the encoder;
    处理模块,设置为对所述原始码流中的音频包和视频包的显示时间标签PTS的差值执行缩小处理,得到重组码流,其中,所述重组码流用于机顶盒执行音视频同步处理;a processing module, configured to perform a reduction process on a difference between a display time stamp PTS of the audio packet and the video packet in the original code stream, to obtain a recombined code stream, where the reassembled code stream is used to perform audio and video synchronization processing on the set top box;
    发送模块,设置为将所述重组码流发送至机顶盒。And a sending module, configured to send the reassembled code stream to the set top box.
  11. 一种音视频同步系统,包括:An audio and video synchronization system includes:
    编码器,设置为发送原始码流;An encoder configured to transmit a source stream;
    第一设备,设置为获取所述编码器发送的原始码流,对所述原始码流中的音频包和视频包的显示时间标签PTS的差值执行缩小处理,得到重组码流,以及将所述重组码流发送至机顶盒,其中,所述重组码流用于所述机顶盒执行音视频同步处理;a first device, configured to acquire an original code stream sent by the encoder, perform a reduction process on a difference between a display time stamp PTS of the audio packet and the video packet in the original code stream, obtain a recombined code stream, and Transmitting the reassembled code stream to the set top box, wherein the reassembled code stream is used to perform audio and video synchronization processing on the set top box;
    所述机顶盒,设置为接收所述重组码流,并根据所述重组码流执行所述音视频同步处理。The set top box is configured to receive the reassembled code stream, and perform the audio and video synchronization process according to the reassembled code stream.
  12. 一种计算机存储介质,设置为存储用于执行如权利要求1至9中任一项所述的音视频同步方法的计算机程序。 A computer storage medium arranged to store a computer program for performing the audio-video synchronization method according to any one of claims 1 to 9.
PCT/CN2016/104028 2015-10-30 2016-10-31 Audio and video synchronization method, device and system WO2017071670A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510730966.5 2015-10-30
CN201510730966.5A CN106658065B (en) 2015-10-30 2015-10-30 Audio and video synchronization method, device and system

Publications (1)

Publication Number Publication Date
WO2017071670A1 true WO2017071670A1 (en) 2017-05-04

Family

ID=58629920

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/104028 WO2017071670A1 (en) 2015-10-30 2016-10-31 Audio and video synchronization method, device and system

Country Status (2)

Country Link
CN (1) CN106658065B (en)
WO (1) WO2017071670A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113747209A (en) * 2021-08-02 2021-12-03 北京数字电视国家工程实验室有限公司 Method and device for recombining multi-channel TS (transport stream) programs
CN114339302A (en) * 2021-12-31 2022-04-12 咪咕文化科技有限公司 Broadcasting guide method, device, equipment and computer storage medium
CN115334344A (en) * 2022-08-08 2022-11-11 青岛海信宽带多媒体技术有限公司 Channel switching method and device applied to intelligent set top box

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109257641B (en) * 2018-09-05 2021-03-16 福建星网智慧科技股份有限公司 Audio and video synchronization method and system in wireless screen transmission
CN111988645B (en) * 2020-08-27 2022-07-19 上海七牛信息技术有限公司 Audio and video transmission bandwidth self-adaption method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0783824A1 (en) * 1994-09-30 1997-07-16 Cirrus Logic, Inc. Programmable audio-video synchronization method and apparatus for multimedia systems
KR20060065436A (en) * 2004-12-10 2006-06-14 한국전자통신연구원 Apparatus and method for synchronization of audio and video in dmb apparatus
JP2008061010A (en) * 2006-08-31 2008-03-13 Toshiba Corp Video and audio transmitter
CN101271720A (en) * 2008-04-22 2008-09-24 中兴通讯股份有限公司 Synchronization process for mobile phone stream media audio and video
CN102868939A (en) * 2012-09-10 2013-01-09 杭州电子科技大学 Method for synchronizing audio/video data in real-time video monitoring system
CN103581730A (en) * 2013-10-28 2014-02-12 南京熊猫电子股份有限公司 Method for achieving synchronization of audio and video on digital set top box
CN104618786A (en) * 2014-12-22 2015-05-13 深圳市腾讯计算机系统有限公司 Audio/video synchronization method and device

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101350754B1 (en) * 2006-11-07 2014-01-10 톰슨 라이센싱 Method for reducing channel change times and synchronizing audio/video content during channel change
KR101132043B1 (en) * 2007-08-27 2012-04-02 후지쯔 가부시끼가이샤 Decoder and decoding method
CN101340591B (en) * 2008-08-11 2011-04-06 华为终端有限公司 Processing method and apparatus for receiving audio data in decoding system
CN101662689B (en) * 2008-08-25 2011-07-06 华为技术有限公司 Method and system for switching interactive TV channels and method and device for sending audio and video streams
CN101394469B (en) * 2008-10-29 2011-04-06 北京创毅视讯科技有限公司 Audio and video synchronization method, device and a digital television chip
CN101778269B (en) * 2009-01-14 2012-10-24 扬智电子科技(上海)有限公司 Synchronization method of audio/video frames of set top box
KR20100124909A (en) * 2009-05-20 2010-11-30 삼성전자주식회사 Apparatus and method for synchronization between video and audio in mobile communication terminal
CN102075806B (en) * 2011-01-26 2012-12-05 四川长虹电器股份有限公司 Audio and video synchronization method of digital television
WO2012151756A1 (en) * 2011-05-12 2012-11-15 Intel Corporation Techniques for synchronization of audio and video
CN102724559A (en) * 2012-06-13 2012-10-10 天脉聚源(北京)传媒科技有限公司 Method and system for synchronizing encoding of videos and audios
CN103167342B (en) * 2013-03-29 2016-07-13 天脉聚源(北京)传媒科技有限公司 A kind of audio-visual synchronization processing means and method
CN103237255A (en) * 2013-04-24 2013-08-07 南京龙渊微电子科技有限公司 Multi-thread audio and video synchronization control method and system
CN103747316B (en) * 2013-12-23 2018-04-06 乐视致新电子科技(天津)有限公司 A kind of audio and video synchronization method and electronic equipment
TWI561070B (en) * 2014-01-03 2016-12-01 Mstar Semiconductor Inc Decoder and decoding method for audio video stream synchronization

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0783824A1 (en) * 1994-09-30 1997-07-16 Cirrus Logic, Inc. Programmable audio-video synchronization method and apparatus for multimedia systems
KR20060065436A (en) * 2004-12-10 2006-06-14 한국전자통신연구원 Apparatus and method for synchronization of audio and video in dmb apparatus
JP2008061010A (en) * 2006-08-31 2008-03-13 Toshiba Corp Video and audio transmitter
CN101271720A (en) * 2008-04-22 2008-09-24 中兴通讯股份有限公司 Synchronization process for mobile phone stream media audio and video
CN102868939A (en) * 2012-09-10 2013-01-09 杭州电子科技大学 Method for synchronizing audio/video data in real-time video monitoring system
CN103581730A (en) * 2013-10-28 2014-02-12 南京熊猫电子股份有限公司 Method for achieving synchronization of audio and video on digital set top box
CN104618786A (en) * 2014-12-22 2015-05-13 深圳市腾讯计算机系统有限公司 Audio/video synchronization method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113747209A (en) * 2021-08-02 2021-12-03 北京数字电视国家工程实验室有限公司 Method and device for recombining multi-channel TS (transport stream) programs
CN113747209B (en) * 2021-08-02 2023-09-19 北京数字电视国家工程实验室有限公司 Method and device for reorganizing multi-channel TS (transport stream) programs
CN114339302A (en) * 2021-12-31 2022-04-12 咪咕文化科技有限公司 Broadcasting guide method, device, equipment and computer storage medium
CN115334344A (en) * 2022-08-08 2022-11-11 青岛海信宽带多媒体技术有限公司 Channel switching method and device applied to intelligent set top box
CN115334344B (en) * 2022-08-08 2023-08-18 青岛海信宽带多媒体技术有限公司 Channel switching method and device applied to intelligent set top box

Also Published As

Publication number Publication date
CN106658065A (en) 2017-05-10
CN106658065B (en) 2021-10-22

Similar Documents

Publication Publication Date Title
WO2023024834A1 (en) Game data processing method and apparatus, and storage medium
WO2017071670A1 (en) Audio and video synchronization method, device and system
JP7120997B2 (en) Multi-mode synchronous rendering of audio and video
US11758209B2 (en) Video distribution synchronization
US8813160B2 (en) Method, system and user device for obtaining a key frame in a streaming media service
JP2019050636A (en) Synchronizing multiple over the top streaming clients
CN113225598B (en) Method, device and equipment for synchronizing audio and video of mobile terminal and storage medium
CN105992025B (en) System time calibration method, audio sync playback method and the device played based on audio sync
WO2017096935A1 (en) Fast channel switching method and server, and iptv system
JP5854243B2 (en) Method and apparatus for IP video signal synchronization
US10887646B2 (en) Live streaming with multiple remote commentators
WO2014000703A1 (en) Video processing method, terminal and caption server
CA2432158A1 (en) Webcasting method and system for time-based synchronization of multiple, independent media streams
CN103546662A (en) Audio and video synchronizing method in network monitoring system
WO2019228187A1 (en) Network live-broadcasting method and device, terminal and server
WO2010075743A1 (en) Method and device for displaying time of internet protocol television (iptv)
JP5841715B2 (en) VIDEO / AUDIO OUTPUT DEVICE, VIDEO / AUDIO OUTPUT SYSTEM, AND MASTER DEVICE
US20170353747A1 (en) Quality of Media Synchronization
WO2012163181A1 (en) Method and device for implementing fast channel change
US20140365685A1 (en) Method, System, Capturing Device and Synchronization Server for Enabling Synchronization of Rendering of Multiple Content Parts, Using a Reference Rendering Timeline
KR20110040687A (en) Network device, information processing apparatus, stream switching method, information processing method, program, and content distribution system
US9549223B2 (en) Server, client apparatus, data distribution method, and data distribution system
WO2013189435A2 (en) Processing method, system, and related device based on play state information synchronization
US20220394328A1 (en) Consolidated Watch Parties
KR102271686B1 (en) Multi-media resource synchronization push method based on heterogeneous networks

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: 16859105

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: 16859105

Country of ref document: EP

Kind code of ref document: A1