WO2012094977A1 - Method and system for merging transmission streams smoothly - Google Patents
Method and system for merging transmission streams smoothly Download PDFInfo
- Publication number
- WO2012094977A1 WO2012094977A1 PCT/CN2012/070166 CN2012070166W WO2012094977A1 WO 2012094977 A1 WO2012094977 A1 WO 2012094977A1 CN 2012070166 W CN2012070166 W CN 2012070166W WO 2012094977 A1 WO2012094977 A1 WO 2012094977A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- clock synchronization
- synchronization reference
- packet
- transport
- clock
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/242—Synchronization processes, e.g. processing of PCR [Program Clock References]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
- H04N21/64322—IP
Definitions
- the present invention relates to transmission techniques in multimedia systems, and more particularly to a method and system for smooth splicing of transport streams.
- the clock synchronization reference enables the stream stream receiving end to reproduce the program desired by the stream stream transmitting end.
- the video server may insert the code stream of the advertisement in real time during the process of sending the on-demand program code stream, and then send the code stream of the program after the advertisement is inserted, the code stream of the program and The code stream of the advertisement may have different clock synchronization references, and the initial transmission packet of the code stream of the subsequent program that is interposed by the advertisement may lack a clock synchronization reference.
- a stream of code in the middle of the program is clipped off, and subsequent start programs may lack a clock synchronization reference, causing the clipped program to be missing the clock synchronization reference for a period of time.
- the technical problem to be solved by the present invention is to overcome the deficiencies of the prior art described above, and to provide a method and system for smooth splicing of a transport stream, which can ensure smooth update of the clock synchronization reference in time when the code stream is spliced.
- the present invention provides a method for smooth splicing of a transport stream, including: inserting or intercepting a transport stream, inserting one or more transport packets carrying a clock synchronization reference and a time stamp at a splicing point, or A clock synchronization reference is inserted in the first subsequent transport packet at the splice point.
- the above method has the following characteristics: When using one or more transport packets carrying a clock synchronization reference and time stamp at the splice point,
- Tbase TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock accuracy of the transport packet time stamp;
- the TbaseO is a clock synchronization reference in a transport packet including a clock synchronization reference closest to the splicing point before the splicing point in the transport stream
- TpacketO is a transmission including a clock synchronization reference closest to the splicing point.
- Time stamp carried in the packet, Tpacket is a time stamp carried in the first subsequent transmission packet at the splicing point in the transport stream;
- the timestamp carried in the inserted transport packet is the timestamp Tpacket carried in the first subsequent transport packet at the splice point in the transport stream.
- the above method has the following characteristics:
- the inserted clock synchronization reference Tbase is calculated according to the following formula:
- Tbase TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock accuracy of the transport packet time stamp;
- the TbaseO is a clock synchronization reference in a transport packet including a clock synchronization reference closest to the splicing point before the splicing point in the transport stream
- TpacketO is a transmission including a clock synchronization reference closest to the splicing point.
- the timestamp carried in the packet, Tpacket is the timestamp carried in the first subsequent transport packet at the splice point in the transport stream.
- the above method has the following characteristics:
- the inserted transport packet When the one or more transport packets carrying the clock synchronization reference and the time stamp are inserted at the splicing point, the inserted transport packet further carries a clock synchronization reference update indication and a clock synchronization reference update sequence number;
- the clock synchronization reference update indication and the clock synchronization reference update sequence number are also inserted in the first subsequent transmission packet.
- the above method has the following characteristics:
- the code stream obtaining device obtains the inserted or intercepted transport stream, if it detects that the data packet carries a clock synchronization reference update indication, it determines whether the new update is based on the clock synchronization reference update number carried in the data packet, if , then use the clock synchronization reference carried in the packet as the new synchronous clock reference.
- the present invention provides a system for smooth splicing of a transport stream, including a stream splicing device.
- the code stream splicing device is configured to: insert one or more transport packets carrying a clock synchronization reference and a time stamp at the splicing point when inserting or intercepting the transport stream, or the first subsequent transmission at the splicing point Insert a clock synchronization reference into the package.
- the above system has the following characteristics:
- the code stream splicing device is further configured to: when inserting one or more transport packets carrying a clock synchronization reference and a time stamp at the splicing point,
- Tbase TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock accuracy of the transport packet time stamp;
- the TbaseO is a clock synchronization reference in a transport packet including a clock synchronization reference closest to the splicing point before the splicing point in the transport stream
- TpacketO is a transmission including a clock synchronization reference closest to the splicing point.
- Time stamp carried in the packet, Tpacket is a time stamp carried in the first subsequent transmission packet at the splicing point in the transport stream;
- the timestamp carried in the inserted transport packet is the timestamp Tpacket carried in the first subsequent transport packet at the splice point in the transport stream.
- the above system has the following characteristics:
- the code stream splicing device is further configured to: when the clock synchronization reference is inserted into the first subsequent transmission packet at the splicing point,
- Tbase TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock timing for transmission packet time stamp Degree
- the TbaseO is a clock synchronization reference in a transport packet including a clock synchronization reference closest to the splicing point before the splicing point in the transport stream
- TpacketO is a transmission including a clock synchronization reference closest to the splicing point.
- the timestamp carried in the packet, Tpacket is the timestamp carried in the first subsequent transport packet at the splice point in the transport stream.
- the above system has the following characteristics:
- the code stream splicing device is further configured to: when inserting one or more transport packets carrying a clock synchronization reference and a time stamp at the splicing point, the inserted transport packet also carries a clock synchronization reference update indication and a clock synchronization reference update Serial number; When the clock synchronization reference is inserted into the first subsequent transmission packet at the splicing point, the clock synchronization reference update indication and the clock synchronization reference update sequence number are inserted in the first subsequent transmission packet.
- the above system further includes a code stream acquiring device,
- the code stream splicing device is further configured to: send the inserted or intercepted transport stream to the code stream acquiring device;
- the code stream obtaining device is configured to: after obtaining the inserted or intercepted transport stream, if it is detected that the data packet carries a clock synchronization reference update indication, determine whether the new serial number is based on the clock synchronization reference update number carried in the data packet. Update, if yes, use the clock synchronization reference carried in the packet as the new synchronous clock reference.
- FIG. 1 is a schematic structural diagram of a transmission packet according to an embodiment of the present invention.
- FIG. 2 is a schematic structural diagram of an MPEG-2 (Moving Picture Experts Group) TS (Transport Stream) packet according to an application example of the present invention
- FIG. 3 is a schematic diagram of a clock synchronization reference update process according to an application example of the present invention. Preferred embodiment of the invention
- the basic idea of the present invention is to dynamically update the clock synchronization reference by means of in-band mode, to ensure that the code stream splicing can smoothly process the update of the clock synchronization reference in time, and prevent the spliced code stream from lacking the clock synchronization reference.
- the transport stream (code stream) is encapsulated as a transport packet for transmission and storage.
- the transport stream When inserting or intercepting the transport stream, one or more transport packets carrying the clock synchronization reference and time stamp are inserted at the splice point, or a clock synchronization reference is inserted in the first subsequent transport packet at the splice point.
- the clock synchronization reference carried in the inserted transport packet can be calculated according to the following formula or the clock synchronization reference Tbase can be inserted in the first subsequent transport packet at the splicing point:
- Tbase TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock accuracy of the transport packet time stamp;
- the TbaseO is a clock synchronization reference in a transport packet including a clock synchronization reference closest to the splicing point before the splicing point in the transport stream
- TpacketO is a transmission including a clock synchronization reference closest to the splicing point.
- the timestamp carried in the packet, Tpacket is the timestamp carried in the first subsequent transport packet at the splice point in the transport stream.
- the timestamp carried in the inserted transport packet is the timestamp Tpacket carried in the first subsequent transport packet at the splice point in the transport stream.
- the inserted transport packet may further carry a clock synchronization reference update indication and a clock synchronization reference update sequence number;
- the clock synchronization reference update indication and the clock synchronization reference update sequence number may also be inserted in the first subsequent transmission packet.
- the synchronous clock reference field is used to identify the synchronous clock reference
- the synchronous clock reference update indication field indicates the update of the synchronous clock reference
- the synchronous clock reference update sequence number field indicates the same
- the timestamp field indicates the program timestamp corresponding to the synchronous clock reference.
- FIG. 1 shows a clock synchronization reference field and a clock synchronization reference update indication field and a clock synchronization reference update sequence number field and a time stamp field which are included in the transport packet
- the present invention is not limited thereto. In practical applications, the above The position and order of the clock synchronization reference field and the clock synchronization reference update indication field and the clock synchronization reference update sequence number field and the time stamp field in the transport packet may also be different from FIG.
- the code stream obtaining device obtains the inserted or intercepted transport stream, if it detects that the data packet carries a clock synchronization reference update indication, it determines whether the new update is based on the clock synchronization reference update number carried in the data packet, if , then use the clock synchronization reference carried in the packet as the new synchronous clock reference.
- a plurality of transmission packets carrying a clock synchronization reference and a time stamp may be inserted at the splicing point, and each clock synchronization reference update sequence number is the same, and the code stream acquisition device may determine whether the value is determined according to the value of the field. It belongs to the same update to prevent the loss of clock synchronization baseline update caused by network packet loss.
- Embodiment 1 The process of inserting a transport stream:
- the program is packaged into a process of transmitting a transmission packet to the network, and an advertisement transmission package is inserted in the process of transmitting the program transmission package.
- the clock synchronization reference TbaseO in the program transmission package containing the clock synchronization reference closest to the splice point, and the time stamp Tpacket0 carried in the program transmission packet, before the splice point (insertion point) are recorded. And record the time stamp Tpacket carried in the first program transmission packet after the splicing point (insertion point).
- the advertisement transport packet is sent, the time of the program transmission packet is sent, and the clock synchronization reference of the program is calculated:
- Tbase TbaseO+ ( Tpacket-TpacketO ) *Synchronous Clock Accuracy / Clock Accuracy of Transmit Packet Time Stamp
- the length of the transport packet is a fixed length
- construct one or more new transport packets add a clock synchronization reference field in the new transport packet, and set the value of the clock synchronization reference field to Tbase, and add in the transport packet a timestamp field and setting the value of the timestamp field to Tpacket, and in the pass
- a clock synchronization reference update indication field and a synchronization clock reference update sequence number field are added to the packet.
- the value of the clock synchronization reference update indication field may be set to 1 to indicate the update of the synchronous clock reference, and the value of the synchronous clock reference update sequence number field is set to be the last update sequence number of the program plus one, if it is the first update, Set the value of the Synchronous Clock Base Update Sequence Number field to 1.
- the clock synchronization reference field is added and the value of the clock synchronization reference field is set to Tbase, and A clock synchronization reference update indication field and a synchronization clock reference update sequence number field are added to the transport packet.
- the value of the clock synchronization reference update indication field may be set to 1 to indicate the update of the synchronous clock reference, and the value of the synchronous clock reference update sequence number field is set to be the last update sequence number of the program plus one, if it is the first update, Set the value of the Synchronous Clock Base Update Sequence Number field to 1.
- the program transmission package is sent in sequence.
- the code stream obtaining device is a terminal receiving device, and receives a transport packet.
- the terminal receiving device detects that the clock synchronization reference update indication field in the transport packet indicates that the synchronous clock reference is updated, detecting a clock synchronization reference update sequence number field in the transport packet, The clock synchronization reference update sequence number field determines whether the clock synchronization reference is a new update. If the terminal receiving device detects the synchronization clock reference update, the value of the clock synchronization reference field in the transmission packet is used as the new synchronization clock reference. The value of the timestamp field in the transport packet is used as the new timestamp reference.
- Embodiment 2 Processing the interception of the transport stream:
- the program is clipped and the middle piece of the program is removed.
- the program transmission including the clock synchronization reference closest to the splicing point is recorded before the splicing point (clip point) is recorded at the time of determining the last transport packet to be clipped.
- Tbase TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock timing for transmission packet time stamp Degree
- the length of the transport packet is a fixed length
- construct a new transport packet add a clock synchronization reference field in the one new transport packet, and set a value of the clock synchronization reference field to Tbase, and add in the transport packet
- the timestamp field and the value of the timestamp field are set to Tpacket, and a clock synchronization reference update indication field and a synchronization clock reference update sequence number field are added to the transport packet.
- the value of the clock synchronization reference update indication field may be set to 1 to indicate the update of the synchronous clock reference, and the value of the synchronous clock reference update sequence number field is set to be the last update sequence number of the program plus one, if it is the first update, Set the value of the Synchronous Clock Base Update Sequence Number field to 1. After inserting the new one transmission package, merge the remaining program transmission packages after the editing.
- the clock synchronization reference field is added and the value of the clock synchronization reference field is concatenated. It is Tbase, and a clock synchronization reference update indication field and a synchronous clock reference update sequence number field are added to the transport packet.
- the value of the clock synchronization reference update indication field may be set to 1 to indicate the update of the synchronous clock reference, and the value of the synchronous clock reference update sequence number field is set to be the last update sequence number of the program plus one, if it is the first update, Set the value of the Synchronous Clock Base Update Sequence Number field to 1.
- the code stream obtaining device is a code stream presenting device, and processes a transport packet in the spliced file, and detects that a clock synchronization reference update indication field in the transport packet indicates that the synchronous clock reference update is updated, and detects a clock synchronization reference update sequence number field in the transport packet, The clock synchronization reference update sequence number field determines whether it is a new clock synchronization reference update.
- the code stream presentation device detects the clock synchronization reference update, the value of the clock synchronization reference field in the transport packet is used as a new clock synchronization reference, and the value of the time stamp field in the transport packet is used as a new time. Poke the benchmark.
- FIG. 2 is a schematic structural diagram of an MPEG-2 TS packet extended clock synchronization reference update indication field and a clock synchronization reference update sequence number field according to the present invention.
- the embodiment uses an MPEG-2 TS file as a file source, then clips the file, cuts a MPEG-2 TS stream from it, and then MPEG-2 both ends. The TS stream is spliced into one file.
- Step 301 The clock synchronization reference is updated before processing.
- the file is 1799 seconds long, and then the file is clipped, and an MPEG-2 TS stream is clipped from 600 seconds to 1199 seconds.
- the clock synchronization in the transport packet containing the clock synchronization reference closest to the 600th second is recorded.
- the base TbaseO and the time stamp TpacketO in the transport packet record the time stamp Tpacket of the 1199th second transport packet.
- Step 302 Clock synchronization reference update processing.
- the clock synchronization reference of the program is calculated at the end of the program clip (i.e., the transmission packet of the 1199th second).
- Tbase TbaseO+ ( Tpacket-TpacketO ) *Synchronous Clock Accuracy / Clock Accuracy of Transmit Packet Time Stamp
- MPEG-2 TS is a fixed-length transport packet, therefore, constructing a new transport packet, adding a clock synchronization reference field in the new transport packet, juxtaposed the value of the synchronous clock reference field to Tbase, and in the transport packet Adding a clock synchronization reference update indication field and setting the value of the clock synchronization reference update indication field to 1, while adding a clock synchronization reference update sequence number field to the transmission packet and setting the value of the synchronization clock reference update sequence number field 1 . Add a time stamp field to the transport packet and set the value of the time stamp field to Tpacket. Finally, after inserting the new one after the MPEG-2 TS stream from 0 seconds to 599 seconds, another MPEG-2 TS packet stream from 1200 seconds to 1799 seconds is merged.
- the code stream presentation device processes the transport packet in the spliced file, and detects that the clock synchronization reference update indication field in the transport packet indicates that the synchronous clock reference update is updated, and detects a clock synchronization update sequence number field in the transport packet. It is judged by the value of the clock synchronization update sequence number field that it is a new clock synchronization reference update.
- the code stream presentation device detects the clock synchronization reference update, the value of the clock synchronization reference field in the transport packet is used as a new synchronous clock reference, and the value of the time stamp field in the transport packet is used as a new time. Poke the benchmark.
- the system for smooth splicing of the transport stream in the embodiment of the present invention includes a code stream splicing device and a code stream acquiring device,
- the code stream splicing device is configured to insert one or more transport packets carrying a clock synchronization reference and a time stamp at a splicing point when inserting or intercepting the transport stream, or the first subsequent transport packet at the splicing point Insert a clock synchronization reference in.
- the code stream splicing device can be further used when inserting one or more transport packets carrying a clock synchronization reference and a time stamp at a splicing point,
- Tbase TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock accuracy of the transport packet time stamp;
- the TbaseO is a clock synchronization reference in a transport packet including a clock synchronization reference closest to the splicing point before the splicing point in the transport stream
- TpacketO is a transmission including a clock synchronization reference closest to the splicing point.
- Time stamp carried in the packet, Tpacket is a time stamp carried in the first subsequent transmission packet at the splicing point in the transport stream;
- the timestamp carried in the inserted transport packet is the timestamp Tpacket carried in the first subsequent transport packet at the splice point in the transport stream.
- the code stream splicing device can be further used when the clock synchronization reference is inserted into the first subsequent transmission packet at the splicing point,
- Tbase TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock accuracy of the transport packet time stamp;
- the TbaseO is a clock synchronization reference in a transport packet including a clock synchronization reference closest to the splicing point before the splicing point in the transport stream
- TpacketO is a transmission including a clock synchronization reference closest to the splicing point.
- the timestamp carried in the packet, Tpacket is the timestamp carried in the first subsequent transport packet at the splice point in the transport stream.
- the code stream splicing device can be further configured to: when the one or more transport packets carrying the clock synchronization reference and the time stamp are inserted at the splicing point, the inserted transport packet further carries a clock synchronization reference update indication and a clock synchronization reference Update sequence number; when used in the first subsequent transmission package at the splicing point When the clock synchronization reference is entered, a clock synchronization reference update indication and a clock synchronization reference update sequence number are also inserted in the first subsequent transmission packet.
- the code stream splicing device is further configured to send the inserted or intercepted transport stream to the code stream obtaining device;
- the code stream obtaining device may be configured to: after detecting the transport stream after the insertion or interception, if detecting that the data packet carries a clock synchronization reference update indication, determine whether the new update is based on the clock synchronization reference update sequence number carried in the data packet. If yes, use the clock synchronization reference carried in the packet as the new synchronous clock reference.
- the present invention can ensure that the stream splicing can smoothly process the update of the clock synchronization reference in time, and prevent the spliced code stream from lacking the clock synchronization reference, thereby providing a guarantee means for synchronous updating of the clock reference.
- a program instructing the associated hardware such as a read-only memory, a magnetic disk, or an optical disk.
- all or part of the steps of the foregoing embodiments may also be implemented by using one or more integrated circuits. Accordingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, or may use software functions. The form of the module is implemented. The invention is not limited to any specific form of combination of hardware and software.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
Disclosed are a method and system for merging transmission streams smoothly, wherein the method includes: when a transmission stream is inserted or intercepted, one or more transmission packets carrying a clock synchronization reference and a timestamp are inserted at a merging point, or the clock synchronization reference is inserted into a first subsequent transmission packet at the merging point. The present invention ensures that the subsequent programs can obtain the clock synchronization reference very quickly after a program has been inserted or edited by computing and updating the clock synchronization reference of the program when inserting or editing the program.
Description
一种传输流平滑拼接的方法和系统 Method and system for smooth splicing of transport stream
技术领域 Technical field
本发明涉及多媒体系统中传输技术, 尤其涉及一种传输流平滑拼接的方 法和系统。 The present invention relates to transmission techniques in multimedia systems, and more particularly to a method and system for smooth splicing of transport streams.
背景技术 Background technique
随着通信技术的发展, 多媒体系统中的传输技术的应用越来越广。 目前, IPTV( Internet Protocol Television,因特网协议电视)、 VOIP( Voice Over Internet Protocol, 网络电话)和视频监控业务得到了越来越广泛的应用。 时钟同步基准使得码流接收端能够再生码流发送端所期望的节目。 但是 在节目插入过程中, 例如视频点播业务, 视频服务器在发送点播节目码流的 过程中, 可能会实时插入广告的码流, 待广告插播完后再发送节目的码流, 节目的码流和广告的码流可能存在不同的时钟同步基准, 而且被广告插断的 后续节目的码流的起始传输包可能缺少时钟同步基准。 在节目编辑过程中, 例如存储设备中节目的剪辑, 节目中间的一段码流被剪掉, 后续起始节目可 能缺少时钟同步基准, 造成剪辑后的节目在一段时间内时钟同步基准缺失。 With the development of communication technology, the application of transmission technology in multimedia systems is becoming more and more widespread. At present, IPTV (Internet Protocol Television), VOIP (Voice Over Internet Protocol) and video surveillance services have become more and more widely used. The clock synchronization reference enables the stream stream receiving end to reproduce the program desired by the stream stream transmitting end. However, during the program insertion process, such as video on demand service, the video server may insert the code stream of the advertisement in real time during the process of sending the on-demand program code stream, and then send the code stream of the program after the advertisement is inserted, the code stream of the program and The code stream of the advertisement may have different clock synchronization references, and the initial transmission packet of the code stream of the subsequent program that is interposed by the advertisement may lack a clock synchronization reference. During the program editing process, such as a clip of a program in a storage device, a stream of code in the middle of the program is clipped off, and subsequent start programs may lack a clock synchronization reference, causing the clipped program to be missing the clock synchronization reference for a period of time.
发明内容 Summary of the invention
本发明要解决的技术问题就是克服上述现有技术的不足, 提出一种传输 流平滑拼接的方法和系统, 保证码流拼接时能够及时平滑处理时钟同步基准 的更新。 为了解决上述问题, 本发明提供一种传输流平滑拼接的方法, 包括: 在对传输流插入或截取时, 在拼接点处插入携带时钟同步基准和时戳的 一个或多个传输包, 或者, 在拼接点处第一个后续的传输包中插入时钟同步 基准。 The technical problem to be solved by the present invention is to overcome the deficiencies of the prior art described above, and to provide a method and system for smooth splicing of a transport stream, which can ensure smooth update of the clock synchronization reference in time when the code stream is spliced. In order to solve the above problem, the present invention provides a method for smooth splicing of a transport stream, including: inserting or intercepting a transport stream, inserting one or more transport packets carrying a clock synchronization reference and a time stamp at a splicing point, or A clock synchronization reference is inserted in the first subsequent transport packet at the splice point.
优选地, 上述方法具有以下特点:
当釆用在拼接点处插入携带时钟同步基准和时戳的一个或多个传输包 时, Preferably, the above method has the following characteristics: When using one or more transport packets carrying a clock synchronization reference and time stamp at the splice point,
按照下式计算得到所插入的传输包中携带的时钟同步基准 Tbase: Calculate the clock synchronization reference Tbase carried in the inserted transport packet according to the following formula:
Tbase=TbaseO+ ( Tpacket-TpacketO ) *同步时钟精度 /传输包时戳的时钟精 度; Tbase=TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock accuracy of the transport packet time stamp;
其中, 所述 TbaseO为所述传输流中拼接点之前, 离所述拼接点最近的包 含时钟同步基准的传输包中的时钟同步基准, TpacketO 为离所述拼接点最近 的包含时钟同步基准的传输包中携带的时戳, Tpacket为所述传输流中拼接点 处第一个后续的传输包中携带的时戳; The TbaseO is a clock synchronization reference in a transport packet including a clock synchronization reference closest to the splicing point before the splicing point in the transport stream, and TpacketO is a transmission including a clock synchronization reference closest to the splicing point. Time stamp carried in the packet, Tpacket is a time stamp carried in the first subsequent transmission packet at the splicing point in the transport stream;
所插入的传输包中携带的时戳为所述传输流中拼接点处第一个后续的传 输包中携带的时戳 Tpacket。 The timestamp carried in the inserted transport packet is the timestamp Tpacket carried in the first subsequent transport packet at the splice point in the transport stream.
优选地, 上述方法具有以下特点: Preferably, the above method has the following characteristics:
当釆用在拼接点处第一个后续的传输包中插入时钟同步基准时, 按照下式计算得到所插入时钟同步基准 Tbase: When the clock synchronization reference is inserted into the first subsequent transmission packet at the splicing point, the inserted clock synchronization reference Tbase is calculated according to the following formula:
Tbase=TbaseO+ ( Tpacket-TpacketO ) *同步时钟精度 /传输包时戳的时钟精 度; Tbase=TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock accuracy of the transport packet time stamp;
其中, 所述 TbaseO为所述传输流中拼接点之前, 离所述拼接点最近的包 含时钟同步基准的传输包中的时钟同步基准, TpacketO 为离所述拼接点最近 的包含时钟同步基准的传输包中携带的时戳, Tpacket为所述传输流中拼接点 处第一个后续的传输包中携带的时戳。 The TbaseO is a clock synchronization reference in a transport packet including a clock synchronization reference closest to the splicing point before the splicing point in the transport stream, and TpacketO is a transmission including a clock synchronization reference closest to the splicing point. The timestamp carried in the packet, Tpacket is the timestamp carried in the first subsequent transport packet at the splice point in the transport stream.
优选地, 上述方法具有以下特点: Preferably, the above method has the following characteristics:
当釆用在拼接点处插入携带时钟同步基准和时戳的一个或多个传输包 时, 所插入的传输包中还携带时钟同步基准更新指示和时钟同步基准更新序 号; When the one or more transport packets carrying the clock synchronization reference and the time stamp are inserted at the splicing point, the inserted transport packet further carries a clock synchronization reference update indication and a clock synchronization reference update sequence number;
当釆用在拼接点处第一个后续的传输包中插入时钟同步基准时, 还在所 述第一个后续的传输包中插入时钟同步基准更新指示和时钟同步基准更新序 号。
优选地, 上述方法具有以下特点: When the clock synchronization reference is inserted into the first subsequent transmission packet at the splicing point, the clock synchronization reference update indication and the clock synchronization reference update sequence number are also inserted in the first subsequent transmission packet. Preferably, the above method has the following characteristics:
当码流获取设备得到插入或截取后的所述传输流, 若检测到数据包中携 带有时钟同步基准更新指示, 根据该数据包中携带的时钟同步基准更新序号 判断是否为新的更新, 若是, 则使用该数据包中携带的时钟同步基准作为新 的同步时钟基准。 When the code stream obtaining device obtains the inserted or intercepted transport stream, if it detects that the data packet carries a clock synchronization reference update indication, it determines whether the new update is based on the clock synchronization reference update number carried in the data packet, if , then use the clock synchronization reference carried in the packet as the new synchronous clock reference.
为了解决上述问题, 本发明提供一种传输流平滑拼接的系统, 包括码流 拼接设备, In order to solve the above problems, the present invention provides a system for smooth splicing of a transport stream, including a stream splicing device.
所述码流拼接设备设置为: 在对传输流插入或截取时, 在拼接点处插入 携带时钟同步基准和时戳的一个或多个传输包, 或者, 在拼接点处第一个后 续的传输包中插入时钟同步基准。 The code stream splicing device is configured to: insert one or more transport packets carrying a clock synchronization reference and a time stamp at the splicing point when inserting or intercepting the transport stream, or the first subsequent transmission at the splicing point Insert a clock synchronization reference into the package.
优选地, 上述系统具有以下特点: Preferably, the above system has the following characteristics:
所述码流拼接设备还设置为: 当釆用在拼接点处插入携带时钟同步基准 和时戳的一个或多个传输包时, The code stream splicing device is further configured to: when inserting one or more transport packets carrying a clock synchronization reference and a time stamp at the splicing point,
按照下式计算得到所插入的传输包中携带的时钟同步基准 Tbase: Calculate the clock synchronization reference Tbase carried in the inserted transport packet according to the following formula:
Tbase=TbaseO+ ( Tpacket-TpacketO ) *同步时钟精度 /传输包时戳的时钟精 度; Tbase=TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock accuracy of the transport packet time stamp;
其中, 所述 TbaseO为所述传输流中拼接点之前, 离所述拼接点最近的包 含时钟同步基准的传输包中的时钟同步基准, TpacketO 为离所述拼接点最近 的包含时钟同步基准的传输包中携带的时戳, Tpacket为所述传输流中拼接点 处第一个后续的传输包中携带的时戳; The TbaseO is a clock synchronization reference in a transport packet including a clock synchronization reference closest to the splicing point before the splicing point in the transport stream, and TpacketO is a transmission including a clock synchronization reference closest to the splicing point. Time stamp carried in the packet, Tpacket is a time stamp carried in the first subsequent transmission packet at the splicing point in the transport stream;
所插入的传输包中携带的时戳为所述传输流中拼接点处第一个后续的传 输包中携带的时戳 Tpacket。 The timestamp carried in the inserted transport packet is the timestamp Tpacket carried in the first subsequent transport packet at the splice point in the transport stream.
优选地, 上述系统具有以下特点: Preferably, the above system has the following characteristics:
所述码流拼接设备还设置为: 当釆用在拼接点处第一个后续的传输包中 插入时钟同步基准时, The code stream splicing device is further configured to: when the clock synchronization reference is inserted into the first subsequent transmission packet at the splicing point,
按照下式计算得到所插入时钟同步基准 Tbase: Calculate the inserted clock synchronization reference Tbase according to the following formula:
Tbase=TbaseO+ ( Tpacket-TpacketO ) *同步时钟精度 /传输包时戳的时钟精
度; Tbase=TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock timing for transmission packet time stamp Degree
其中, 所述 TbaseO为所述传输流中拼接点之前, 离所述拼接点最近的包 含时钟同步基准的传输包中的时钟同步基准, TpacketO 为离所述拼接点最近 的包含时钟同步基准的传输包中携带的时戳, Tpacket为所述传输流中拼接点 处第一个后续的传输包中携带的时戳。 The TbaseO is a clock synchronization reference in a transport packet including a clock synchronization reference closest to the splicing point before the splicing point in the transport stream, and TpacketO is a transmission including a clock synchronization reference closest to the splicing point. The timestamp carried in the packet, Tpacket is the timestamp carried in the first subsequent transport packet at the splice point in the transport stream.
优选地, 上述系统具有以下特点: Preferably, the above system has the following characteristics:
码流拼接设备还设置为: 当釆用在拼接点处插入携带时钟同步基准和时 戳的一个或多个传输包时, 所插入的传输包中还携带时钟同步基准更新指示 和时钟同步基准更新序号; 当釆用在拼接点处第一个后续的传输包中插入时 钟同步基准时, 在所述第一个后续的传输包中插入时钟同步基准更新指示和 时钟同步基准更新序号。 The code stream splicing device is further configured to: when inserting one or more transport packets carrying a clock synchronization reference and a time stamp at the splicing point, the inserted transport packet also carries a clock synchronization reference update indication and a clock synchronization reference update Serial number; When the clock synchronization reference is inserted into the first subsequent transmission packet at the splicing point, the clock synchronization reference update indication and the clock synchronization reference update sequence number are inserted in the first subsequent transmission packet.
优选地, 上述系统还包括码流获取设备, Preferably, the above system further includes a code stream acquiring device,
码流拼接设备还设置为: 将插入或截取后的传输流发送给所述码流获取 设备; The code stream splicing device is further configured to: send the inserted or intercepted transport stream to the code stream acquiring device;
码流获取设备设置为: 得到插入或截取后的所述传输流后, 若检测到数 据包中携带有时钟同步基准更新指示, 根据该数据包中携带的时钟同步基准 更新序号判断是否为新的更新, 若是, 则使用该数据包中携带的时钟同步基 准作为新的同步时钟基准。 The code stream obtaining device is configured to: after obtaining the inserted or intercepted transport stream, if it is detected that the data packet carries a clock synchronization reference update indication, determine whether the new serial number is based on the clock synchronization reference update number carried in the data packet. Update, if yes, use the clock synchronization reference carried in the packet as the new synchronous clock reference.
本发明实施例在节目插入过程中或者编辑的过程中, 通过计算并且更新 节目的时钟同步基准, 确保节目插入完成后或者节目编辑后, 后续的节目能 够很快获取时钟同步基准。 In the embodiment of the present invention, during the program insertion process or during the editing process, by calculating and updating the clock synchronization reference of the program, it is ensured that the subsequent program can quickly acquire the clock synchronization reference after the program insertion is completed or after the program is edited.
附图概述 BRIEF abstract
图 1为本发明实施例的的传输包结构示意图; 1 is a schematic structural diagram of a transmission packet according to an embodiment of the present invention;
图 2为本发明应用示例的 MPEG-2 ( Moving Pictures Experts Group, 运动 图像专家组) TS ( Transport Stream, 传输流) 包结构示意图; 2 is a schematic structural diagram of an MPEG-2 (Moving Picture Experts Group) TS (Transport Stream) packet according to an application example of the present invention;
图 3为本发明应用示例的时钟同步基准更新流程示意图。
本发明的较佳实施方式 FIG. 3 is a schematic diagram of a clock synchronization reference update process according to an application example of the present invention. Preferred embodiment of the invention
下文中将结合附图对本发明的实施例进行详细说明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互任意组合。 Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
本发明的基本思想是, 通过带内的方式动态平滑更新时钟同步基准, 保 证码流拼接能够及时平滑处理时钟同步基准的更新, 防止拼接后的码流缺少 时钟同步基准。 The basic idea of the present invention is to dynamically update the clock synchronization reference by means of in-band mode, to ensure that the code stream splicing can smoothly process the update of the clock synchronization reference in time, and prevent the spliced code stream from lacking the clock synchronization reference.
具体地, 传输流(码流)封装为传输包以用于传输和存储。 在对传输流 插入或截取时, 在拼接点处插入携带时钟同步基准和时戳的一个或多个传输 包, 或者, 在拼接点处第一个后续的传输包中插入时钟同步基准。 Specifically, the transport stream (code stream) is encapsulated as a transport packet for transmission and storage. When inserting or intercepting the transport stream, one or more transport packets carrying the clock synchronization reference and time stamp are inserted at the splice point, or a clock synchronization reference is inserted in the first subsequent transport packet at the splice point.
可按照下式计算得到所插入的传输包中携带的时钟同步基准或在拼接点 处第一个后续的传输包中插入时钟同步基准 Tbase: The clock synchronization reference carried in the inserted transport packet can be calculated according to the following formula or the clock synchronization reference Tbase can be inserted in the first subsequent transport packet at the splicing point:
Tbase=TbaseO+ ( Tpacket-TpacketO ) *同步时钟精度 /传输包时戳的时钟精 度; Tbase=TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock accuracy of the transport packet time stamp;
其中, 所述 TbaseO为所述传输流中拼接点之前, 离所述拼接点最近的包 含时钟同步基准的传输包中的时钟同步基准, TpacketO 为离所述拼接点最近 的包含时钟同步基准的传输包中携带的时戳, Tpacket为所述传输流中拼接点 处第一个后续的传输包中携带的时戳。 The TbaseO is a clock synchronization reference in a transport packet including a clock synchronization reference closest to the splicing point before the splicing point in the transport stream, and TpacketO is a transmission including a clock synchronization reference closest to the splicing point. The timestamp carried in the packet, Tpacket is the timestamp carried in the first subsequent transport packet at the splice point in the transport stream.
所插入的传输包中携带的时戳为所述传输流中拼接点处第一个后续的传 输包中携带的时戳 Tpacket。 The timestamp carried in the inserted transport packet is the timestamp Tpacket carried in the first subsequent transport packet at the splice point in the transport stream.
另外, 当釆用在拼接点处插入携带时钟同步基准和时戳的一个或多个传 输包时, 所插入的传输包中还可以携带时钟同步基准更新指示和时钟同步基 准更新序号; In addition, when one or more transport packets carrying a clock synchronization reference and a time stamp are inserted at the splicing point, the inserted transport packet may further carry a clock synchronization reference update indication and a clock synchronization reference update sequence number;
当釆用在拼接点处第一个后续的传输包中插入时钟同步基准时, 还可以 在所述第一个后续的传输包中插入时钟同步基准更新指示和时钟同步基准更 新序号。 When the clock synchronization reference is inserted into the first subsequent transmission packet at the splicing point, the clock synchronization reference update indication and the clock synchronization reference update sequence number may also be inserted in the first subsequent transmission packet.
如图 1所示, 同步时钟基准字段用来标识同步时钟基准, 同步时钟基准 更新指示字段指示同步时钟基准的更新, 同步时钟基准更新序号字段指示同
步时钟基准更新次数, 时戳字段表示同步时钟基准对应的节目时戳。 As shown in FIG. 1, the synchronous clock reference field is used to identify the synchronous clock reference, the synchronous clock reference update indication field indicates the update of the synchronous clock reference, and the synchronous clock reference update sequence number field indicates the same The number of step clock reference updates, the timestamp field indicates the program timestamp corresponding to the synchronous clock reference.
虽然图 1示出了传输包中具有的时钟同步基准字段和时钟同步基准更新 指示字段以及时钟同步基准更新序号字段和时戳字段, 但本发明并不以此为 限, 在实际应用中, 上述时钟同步基准字段和时钟同步基准更新指示字段以 及时钟同步基准更新序号字段和时戳字段在传输包中的位置和顺序也可与图 1不同。 Although FIG. 1 shows a clock synchronization reference field and a clock synchronization reference update indication field and a clock synchronization reference update sequence number field and a time stamp field which are included in the transport packet, the present invention is not limited thereto. In practical applications, the above The position and order of the clock synchronization reference field and the clock synchronization reference update indication field and the clock synchronization reference update sequence number field and the time stamp field in the transport packet may also be different from FIG.
当码流获取设备得到插入或截取后的所述传输流, 若检测到数据包中携 带有时钟同步基准更新指示, 根据该数据包中携带的时钟同步基准更新序号 判断是否为新的更新, 若是, 则使用该数据包中携带的时钟同步基准作为新 的同步时钟基准。 When the code stream obtaining device obtains the inserted or intercepted transport stream, if it detects that the data packet carries a clock synchronization reference update indication, it determines whether the new update is based on the clock synchronization reference update number carried in the data packet, if , then use the clock synchronization reference carried in the packet as the new synchronous clock reference.
在一次时钟同步基准更新的过程中, 在拼接点处可插入携带时钟同步基 准和时戳的多个传输包, 每个时钟同步基准更新序号相同, 码流获取设备可 根据该字段的值确定是否是属于同一次更新, 以防止网络丟包造成时钟同步 基准更新丟失的问题。 In a process of updating the clock synchronization reference, a plurality of transmission packets carrying a clock synchronization reference and a time stamp may be inserted at the splicing point, and each clock synchronization reference update sequence number is the same, and the code stream acquisition device may determine whether the value is determined according to the value of the field. It belongs to the same update to prevent the loss of clock synchronization baseline update caused by network packet loss.
下面以对传输流插入和截取两种情况分别描述: The following describes the two cases of transport stream insertion and interception:
实施例一, 对传输流进行插入的处理: Embodiment 1 The process of inserting a transport stream:
本实施例中, 将节目封装为传输包向网络发送的过程中, 在发送节目传 输包的过程中, 插入广告传输包。 In this embodiment, the program is packaged into a process of transmitting a transmission packet to the network, and an advertisement transmission package is inserted in the process of transmitting the program transmission package.
在开始插入广告之前, 记录拼接点 (插入点)之前, 离所述拼接点最近 的包含时钟同步基准的节目传输包中的时钟同步基准 TbaseO, 以及该节目传 输包中携带的时戳 Tpacket0。 并记录拼接点 (插入点)之后第一个节目传输 包中携带的时戳 Tpacket。待发送完广告传输包后,再发送节目传输包的时刻 , 计算节目的时钟同步基准: Before the insertion of the advertisement, the clock synchronization reference TbaseO in the program transmission package containing the clock synchronization reference closest to the splice point, and the time stamp Tpacket0 carried in the program transmission packet, before the splice point (insertion point) are recorded. And record the time stamp Tpacket carried in the first program transmission packet after the splicing point (insertion point). After the advertisement transport packet is sent, the time of the program transmission packet is sent, and the clock synchronization reference of the program is calculated:
Tbase=TbaseO+ ( Tpacket-TpacketO ) *同步时钟精度 /传输包时戳的时钟精 度 Tbase=TbaseO+ ( Tpacket-TpacketO ) *Synchronous Clock Accuracy / Clock Accuracy of Transmit Packet Time Stamp
如果传输包的长度为固定长度, 构造一个或多个新的传输包, 在所述新 的传输包中添加时钟同步基准字段并置时钟同步基准字段的值为 Tbase,在所 述传输包中添加时戳字段并且置所述时戳字段的值为 Tpacket,并且在所述传
输包中添加时钟同步基准更新指示字段和同步时钟基准更新序号字段。其中, 可设置时钟同步基准更新指示字段的值为 1 以指示同步时钟基准的更新, 设 置同步时钟基准更新序号字段的值为本节目的上次更新序号加 1 , 如果是第 一次更新, 可设置同步时钟基准更新序号字段的值为 1。 待所述新的 1个或 多个传输包发送完成后, 再发送剩余的节目传输包。 其中, 发送多个新的传 输包的目的是避免由于网络丟包, 接收端没有接收到该新的传输包。 If the length of the transport packet is a fixed length, construct one or more new transport packets, add a clock synchronization reference field in the new transport packet, and set the value of the clock synchronization reference field to Tbase, and add in the transport packet a timestamp field and setting the value of the timestamp field to Tpacket, and in the pass A clock synchronization reference update indication field and a synchronization clock reference update sequence number field are added to the packet. The value of the clock synchronization reference update indication field may be set to 1 to indicate the update of the synchronous clock reference, and the value of the synchronous clock reference update sequence number field is set to be the last update sequence number of the program plus one, if it is the first update, Set the value of the Synchronous Clock Base Update Sequence Number field to 1. After the transmission of the new one or more transport packets is completed, the remaining program transport packets are sent. The purpose of sending multiple new transport packets is to avoid the network packet loss, and the receiver does not receive the new transport packet.
如果传输包的长度为可变长度, 在后续多个节目传输包中, 如果所述节 目传输包中没有时钟同步基准字段则添加时钟同步基准字段并置时钟同步基 准字段的值为 Tbase,并且在所述传输包中添加时钟同步基准更新指示字段和 同步时钟基准更新序号字段。 其中, 可设置时钟同步基准更新指示字段的值 为 1 以指示同步时钟基准的更新, 设置同步时钟基准更新序号字段的值为本 节目的上次更新序号加 1 , 如果是第一次更新, 可设置同步时钟基准更新序 号字段的值为 1。 依次发送节目传输包。 If the length of the transport packet is a variable length, in a subsequent plurality of program transport packets, if there is no clock synchronization reference field in the program transport packet, the clock synchronization reference field is added and the value of the clock synchronization reference field is set to Tbase, and A clock synchronization reference update indication field and a synchronization clock reference update sequence number field are added to the transport packet. The value of the clock synchronization reference update indication field may be set to 1 to indicate the update of the synchronous clock reference, and the value of the synchronous clock reference update sequence number field is set to be the last update sequence number of the program plus one, if it is the first update, Set the value of the Synchronous Clock Base Update Sequence Number field to 1. The program transmission package is sent in sequence.
码流获取设备为终端接收设备, 接收传输包, 所述终端接收设备检测到 传输包中时钟同步基准更新指示字段指示同步时钟基准更新时, 检测所述传 输包中时钟同步基准更新序号字段, 由所述时钟同步基准更新序号字段判断 时钟同步基准是否为新的更新。 如果所述终端接收设备检测到同步时钟基准 更新后, 则使用所述传输包中的时钟同步基准字段的值作为新的同步时钟基 准。 使用所述传输包中的时戳字段的值作为新的时戳基准。 The code stream obtaining device is a terminal receiving device, and receives a transport packet. When the terminal receiving device detects that the clock synchronization reference update indication field in the transport packet indicates that the synchronous clock reference is updated, detecting a clock synchronization reference update sequence number field in the transport packet, The clock synchronization reference update sequence number field determines whether the clock synchronization reference is a new update. If the terminal receiving device detects the synchronization clock reference update, the value of the clock synchronization reference field in the transmission packet is used as the new synchronization clock reference. The value of the timestamp field in the transport packet is used as the new timestamp reference.
实施例二, 对传输流进行截取的处理: Embodiment 2: Processing the interception of the transport stream:
本实施例中, 对节目进行剪辑, 去掉中间的一段节目。 In this embodiment, the program is clipped and the middle piece of the program is removed.
在节目剪辑而遍历文件中的传输包的过程中, 在确定了需要剪辑的最后 一个传输包的时刻, 记录拼接点 (剪辑点)之前, 离所述拼接点最近的包含 时钟同步基准的节目传输包中的时钟同步基准 TbaseO, 以及该节目传输包中 携带的时戳 Tpacket0。 并记录拼接点 (剪辑点)之后要保留的第一个节目传 输包中携带的时戳 Tpacket。 计算节目的时钟同步基准: In the process of traversing the transport packet in the file during the program editing, the program transmission including the clock synchronization reference closest to the splicing point is recorded before the splicing point (clip point) is recorded at the time of determining the last transport packet to be clipped. The clock synchronization reference TbaseO in the packet, and the time stamp Tpacket0 carried in the program transmission packet. And record the time stamp Tpacket carried in the first program transmission packet to be retained after the splicing point (clip point). Calculate the clock synchronization reference for the program:
Tbase=TbaseO+ ( Tpacket-TpacketO ) *同步时钟精度 /传输包时戳的时钟精
度 Tbase=TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock timing for transmission packet time stamp Degree
如果传输包的长度为固定长度, 则构造 1个新的传输包, 在所述 1个新 传输包中添加时钟同步基准字段并置时钟同步基准字段的值为 Tbase,在所述 传输包中添加时戳字段并且置所述时戳字段的值为 Tpacket,并且在所述传输 包中添加时钟同步基准更新指示字段和同步时钟基准更新序号字段。 其中, 可设置时钟同步基准更新指示字段的值为 1以指示同步时钟基准的更新, 设 置同步时钟基准更新序号字段的值为本节目的上次更新序号加 1 , 如果是第 一次更新, 可设置同步时钟基准更新序号字段的值为 1。 插入所述新的 1个 传输包后, 合并剪辑后剩余的节目传输包。 If the length of the transport packet is a fixed length, construct a new transport packet, add a clock synchronization reference field in the one new transport packet, and set a value of the clock synchronization reference field to Tbase, and add in the transport packet The timestamp field and the value of the timestamp field are set to Tpacket, and a clock synchronization reference update indication field and a synchronization clock reference update sequence number field are added to the transport packet. The value of the clock synchronization reference update indication field may be set to 1 to indicate the update of the synchronous clock reference, and the value of the synchronous clock reference update sequence number field is set to be the last update sequence number of the program plus one, if it is the first update, Set the value of the Synchronous Clock Base Update Sequence Number field to 1. After inserting the new one transmission package, merge the remaining program transmission packages after the editing.
如果传输包的长度为可变长度, 则检测剪辑掉的最后一个传输包的下一 个传输包, 如果所述传输包中没有时钟同步基准字段则添加时钟同步基准字 段并置时钟同步基准字段的值为 Tbase,并且在所述传输包中添加时钟同步基 准更新指示字段和同步时钟基准更新序号字段。 其中, 可设置时钟同步基准 更新指示字段的值为 1以指示同步时钟基准的更新, 设置同步时钟基准更新 序号字段的值为本节目的上次更新序号加 1 , 如果是第一次更新, 可设置同 步时钟基准更新序号字段的值为 1。 合并剪辑后剩余的节目传输包。 码流获取设备为码流展现设备, 处理拼接文件中传输包, 检测到传输包 中时钟同步基准更新指示字段指示同步时钟基准更新时, 检测所述传输包中 时钟同步基准更新序号字段, 由所述时钟同步基准更新序号字段判断是否是 新的时钟同步基准更新。 所述码流展现设备检测到时钟同步基准更新后, 使 用所述传输包中的时钟同步基准字段的值作为新的时钟同步基准, 使用所述 传输包中的时戳字段的值作为新的时戳基准。 If the length of the transport packet is variable length, the next transport packet of the last transport packet clipped out is detected, and if there is no clock synchronization reference field in the transport packet, the clock synchronization reference field is added and the value of the clock synchronization reference field is concatenated. It is Tbase, and a clock synchronization reference update indication field and a synchronous clock reference update sequence number field are added to the transport packet. The value of the clock synchronization reference update indication field may be set to 1 to indicate the update of the synchronous clock reference, and the value of the synchronous clock reference update sequence number field is set to be the last update sequence number of the program plus one, if it is the first update, Set the value of the Synchronous Clock Base Update Sequence Number field to 1. The program transfer package remaining after the merge is edited. The code stream obtaining device is a code stream presenting device, and processes a transport packet in the spliced file, and detects that a clock synchronization reference update indication field in the transport packet indicates that the synchronous clock reference update is updated, and detects a clock synchronization reference update sequence number field in the transport packet, The clock synchronization reference update sequence number field determines whether it is a new clock synchronization reference update. After the code stream presentation device detects the clock synchronization reference update, the value of the clock synchronization reference field in the transport packet is used as a new clock synchronization reference, and the value of the time stamp field in the transport packet is used as a new time. Poke the benchmark.
下面以一具体的应用示例进一步说明本发明。 图 2为本发明在 MPEG-2 TS包扩充时钟同步基准更新指示字段和时钟同 步基准更新序号字段的结构示意图。 为便于描述, 实施例使用了 MPEG-2 TS文件作为文件源, 然后对所述该 文件进行剪辑, 从中剪掉一段 MPEG-2 TS码流, 然后再将首尾两段 MPEG-2
TS码流拼接为一个文件。 The invention will now be further illustrated by a specific application example. 2 is a schematic structural diagram of an MPEG-2 TS packet extended clock synchronization reference update indication field and a clock synchronization reference update sequence number field according to the present invention. For ease of description, the embodiment uses an MPEG-2 TS file as a file source, then clips the file, cuts a MPEG-2 TS stream from it, and then MPEG-2 both ends. The TS stream is spliced into one file.
如图 3所示, 节目拼接设备上, 时钟同步基准更新按以下方法进行: 步骤 301 : 时钟同步基准更新前处理。 As shown in FIG. 3, on the program splicing device, the clock synchronization reference update is performed as follows: Step 301: The clock synchronization reference is updated before processing.
该文件的时长为 1799秒, 然后对所述该文件进行剪辑, 从第 600秒到 1199秒剪掉一段 MPEG-2 TS码流。 The file is 1799 seconds long, and then the file is clipped, and an MPEG-2 TS stream is clipped from 600 seconds to 1199 seconds.
确定剪辑的起始点和终点后, 在节目剪辑而遍历文件中的传输包直到剪 辑的终点的过程中, 记录第 600秒之前, 离第 600秒最近的包含时钟同步基 准的传输包中的时钟同步基准 TbaseO以及该传输包中的时戳 TpacketO, 同时 记录第 1199秒的传输包的时戳 Tpacket。 After determining the start and end points of the clip, during the program clip and traversing the transport packet in the file until the end of the clip, before the 600th second, the clock synchronization in the transport packet containing the clock synchronization reference closest to the 600th second is recorded. The base TbaseO and the time stamp TpacketO in the transport packet record the time stamp Tpacket of the 1199th second transport packet.
步骤 302: 时钟同步基准更新处理。 Step 302: Clock synchronization reference update processing.
计算在节目剪辑终点处(即第 1199秒的传输包),节目的时钟同步基准。 The clock synchronization reference of the program is calculated at the end of the program clip (i.e., the transmission packet of the 1199th second).
Tbase=TbaseO+ ( Tpacket-TpacketO ) *同步时钟精度 /传输包时戳的时钟精 度 Tbase=TbaseO+ ( Tpacket-TpacketO ) *Synchronous Clock Accuracy / Clock Accuracy of Transmit Packet Time Stamp
MPEG-2 TS是固定长度的传输包, 因此, 构造 1个新的传输包, 在所述 新传输包中添加时钟同步基准字段并置同步时钟基准字段的值为 Tbase,并且 在所述传输包中添加时钟同步基准更新指示字段并且置所述时钟同步基准更 新指示字段的值为 1 , 同时在所述传输包中添加时钟同步基准更新序号字段 并且置所述同步时钟基准更新序号字段的值为 1 , 在所述传输包中添加时戳 字段并且置所述时戳字段的值为 Tpacket。最后在从 0秒到 599秒这段 MPEG-2 TS码流后面插入所述新的 1个传输包后, 再合并从 1200秒到 1799秒的另外 一段 MPEG-2 TS包码流。 MPEG-2 TS is a fixed-length transport packet, therefore, constructing a new transport packet, adding a clock synchronization reference field in the new transport packet, juxtaposed the value of the synchronous clock reference field to Tbase, and in the transport packet Adding a clock synchronization reference update indication field and setting the value of the clock synchronization reference update indication field to 1, while adding a clock synchronization reference update sequence number field to the transmission packet and setting the value of the synchronization clock reference update sequence number field 1 . Add a time stamp field to the transport packet and set the value of the time stamp field to Tpacket. Finally, after inserting the new one after the MPEG-2 TS stream from 0 seconds to 599 seconds, another MPEG-2 TS packet stream from 1200 seconds to 1799 seconds is merged.
码流展现设备处理已经拼接文件中传输包, 在码流拼接处, 检测到所述 传输包中时钟同步基准更新指示字段指示同步时钟基准更新时, 检测所述传 输包中时钟同步更新序号字段, 由所述时钟同步更新序号字段的值为 1判断 是新的时钟同步基准更新。 所述码流展现设备检测到时钟同步基准更新后, 使用所述传输包中的时钟同步基准字段的值作为新的同步时钟基准, 使用所 述传输包中的时戳字段的值作为新的时戳基准。
相应地, 本发明实施例的传输流平滑拼接的系统, 包括码流拼接设备和 码流获取设备, The code stream presentation device processes the transport packet in the spliced file, and detects that the clock synchronization reference update indication field in the transport packet indicates that the synchronous clock reference update is updated, and detects a clock synchronization update sequence number field in the transport packet. It is judged by the value of the clock synchronization update sequence number field that it is a new clock synchronization reference update. After the code stream presentation device detects the clock synchronization reference update, the value of the clock synchronization reference field in the transport packet is used as a new synchronous clock reference, and the value of the time stamp field in the transport packet is used as a new time. Poke the benchmark. Correspondingly, the system for smooth splicing of the transport stream in the embodiment of the present invention includes a code stream splicing device and a code stream acquiring device,
所述码流拼接设备用于在对传输流插入或截取时, 在拼接点处插入携带 时钟同步基准和时戳的一个或多个传输包, 或者, 在拼接点处第一个后续的 传输包中插入时钟同步基准。 The code stream splicing device is configured to insert one or more transport packets carrying a clock synchronization reference and a time stamp at a splicing point when inserting or intercepting the transport stream, or the first subsequent transport packet at the splicing point Insert a clock synchronization reference in.
所述码流拼接设备可进一步用于当釆用在拼接点处插入携带时钟同步基 准和时戳的一个或多个传输包时, The code stream splicing device can be further used when inserting one or more transport packets carrying a clock synchronization reference and a time stamp at a splicing point,
按照下式计算得到所插入的传输包中携带的时钟同步基准 Tbase: Calculate the clock synchronization reference Tbase carried in the inserted transport packet according to the following formula:
Tbase=TbaseO+ ( Tpacket-TpacketO ) *同步时钟精度 /传输包时戳的时钟精 度; Tbase=TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock accuracy of the transport packet time stamp;
其中, 所述 TbaseO为所述传输流中拼接点之前, 离所述拼接点最近的包 含时钟同步基准的传输包中的时钟同步基准, TpacketO 为离所述拼接点最近 的包含时钟同步基准的传输包中携带的时戳, Tpacket为所述传输流中拼接点 处第一个后续的传输包中携带的时戳; The TbaseO is a clock synchronization reference in a transport packet including a clock synchronization reference closest to the splicing point before the splicing point in the transport stream, and TpacketO is a transmission including a clock synchronization reference closest to the splicing point. Time stamp carried in the packet, Tpacket is a time stamp carried in the first subsequent transmission packet at the splicing point in the transport stream;
所插入的传输包中携带的时戳为所述传输流中拼接点处第一个后续的传 输包中携带的时戳 Tpacket。 The timestamp carried in the inserted transport packet is the timestamp Tpacket carried in the first subsequent transport packet at the splice point in the transport stream.
所述码流拼接设备可进一步用于当釆用在拼接点处第一个后续的传输包 中插入时钟同步基准时, The code stream splicing device can be further used when the clock synchronization reference is inserted into the first subsequent transmission packet at the splicing point,
按照下式计算得到所插入时钟同步基准 Tbase: Calculate the inserted clock synchronization reference Tbase according to the following formula:
Tbase=TbaseO+ ( Tpacket-TpacketO ) *同步时钟精度 /传输包时戳的时钟精 度; Tbase=TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock accuracy of the transport packet time stamp;
其中, 所述 TbaseO为所述传输流中拼接点之前, 离所述拼接点最近的包 含时钟同步基准的传输包中的时钟同步基准, TpacketO 为离所述拼接点最近 的包含时钟同步基准的传输包中携带的时戳, Tpacket为所述传输流中拼接点 处第一个后续的传输包中携带的时戳。 The TbaseO is a clock synchronization reference in a transport packet including a clock synchronization reference closest to the splicing point before the splicing point in the transport stream, and TpacketO is a transmission including a clock synchronization reference closest to the splicing point. The timestamp carried in the packet, Tpacket is the timestamp carried in the first subsequent transport packet at the splice point in the transport stream.
码流拼接设备可进一步用于, 当釆用在拼接点处插入携带时钟同步基准 和时戳的一个或多个传输包时, 所插入的传输包中还携带时钟同步基准更新 指示和时钟同步基准更新序号; 当釆用在拼接点处第一个后续的传输包中插
入时钟同步基准时, 还在所述第一个后续的传输包中插入时钟同步基准更新 指示和时钟同步基准更新序号。 The code stream splicing device can be further configured to: when the one or more transport packets carrying the clock synchronization reference and the time stamp are inserted at the splicing point, the inserted transport packet further carries a clock synchronization reference update indication and a clock synchronization reference Update sequence number; when used in the first subsequent transmission package at the splicing point When the clock synchronization reference is entered, a clock synchronization reference update indication and a clock synchronization reference update sequence number are also inserted in the first subsequent transmission packet.
码流拼接设备可进一步用于将插入或截取后的传输流发送给所述码流获 取设备; The code stream splicing device is further configured to send the inserted or intercepted transport stream to the code stream obtaining device;
码流获取设备可用于得到插入或截取后的所述传输流后, 若检测到数据 包中携带有时钟同步基准更新指示, 根据该数据包中携带的时钟同步基准更 新序号判断是否为新的更新, 若是, 则使用该数据包中携带的时钟同步基准 作为新的同步时钟基准。 The code stream obtaining device may be configured to: after detecting the transport stream after the insertion or interception, if detecting that the data packet carries a clock synchronization reference update indication, determine whether the new update is based on the clock synchronization reference update sequence number carried in the data packet. If yes, use the clock synchronization reference carried in the packet as the new synchronous clock reference.
综上所述, 本发明可保证码流拼接能够及时平滑处理时钟同步基准的更 新, 防止拼接后的码流缺少时钟同步基准, 从而提供了时钟基准同步更新的 保证手段。 本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现, 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。 In summary, the present invention can ensure that the stream splicing can smoothly process the update of the clock synchronization reference in time, and prevent the spliced code stream from lacking the clock synchronization reference, thereby providing a guarantee means for synchronous updating of the clock reference. One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program instructing the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Optionally, all or part of the steps of the foregoing embodiments may also be implemented by using one or more integrated circuits. Accordingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, or may use software functions. The form of the module is implemented. The invention is not limited to any specific form of 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 In the embodiment of the present invention, during the program insertion process or during the editing process, by calculating and updating the clock synchronization reference of the program, it is ensured that the subsequent program can quickly acquire the clock synchronization reference after the program insertion is completed or after the program is edited.
Claims
1、 一种传输流平滑拼接的方法, 包括: A method for smooth splicing of a transport stream, comprising:
在对传输流插入或截取时, 在拼接点处插入携带时钟同步基准和时戳的 一个或多个传输包, 或者, 在拼接点处第一个后续的传输包中插入时钟同步 基准。 When inserting or intercepting the transport stream, one or more transport packets carrying the clock synchronization reference and time stamp are inserted at the splice point, or a clock synchronization reference is inserted in the first subsequent transport packet at the splice point.
2、 如权利要求 1所述的方法, 其中, 2. The method of claim 1 wherein
当釆用在拼接点处插入携带时钟同步基准和时戳的一个或多个传输包 时, When using one or more transport packets carrying a clock synchronization reference and time stamp at the splice point,
按照下式计算得到所插入的传输包中携带的时钟同步基准 Tbase: Calculate the clock synchronization reference Tbase carried in the inserted transport packet according to the following formula:
Tbase=TbaseO+ ( Tpacket-TpacketO ) *同步时钟精度 /传输包时戳的时钟精 度; Tbase=TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock accuracy of the transport packet time stamp;
其中, 所述 TbaseO为所述传输流中拼接点之前, 离所述拼接点最近的包 含时钟同步基准的传输包中的时钟同步基准, TpacketO 为离所述拼接点最近 的包含时钟同步基准的传输包中携带的时戳, Tpacket为所述传输流中拼接点 处第一个后续的传输包中携带的时戳; The TbaseO is a clock synchronization reference in a transport packet including a clock synchronization reference closest to the splicing point before the splicing point in the transport stream, and TpacketO is a transmission including a clock synchronization reference closest to the splicing point. Time stamp carried in the packet, Tpacket is a time stamp carried in the first subsequent transmission packet at the splicing point in the transport stream;
所插入的传输包中携带的时戳为所述传输流中拼接点处第一个后续的传 输包中携带的时戳 Tpacket。 The timestamp carried in the inserted transport packet is the timestamp Tpacket carried in the first subsequent transport packet at the splice point in the transport stream.
3、 如权利要求 1所述的方法, 其中, 3. The method of claim 1, wherein
当釆用在拼接点处第一个后续的传输包中插入时钟同步基准时, 按照下式计算得到所插入时钟同步基准 Tbase: When the clock synchronization reference is inserted into the first subsequent transmission packet at the splicing point, the inserted clock synchronization reference Tbase is calculated according to the following formula:
Tbase=TbaseO+ ( Tpacket-TpacketO ) *同步时钟精度 /传输包时戳的时钟精 度; Tbase=TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock accuracy of the transport packet time stamp;
其中, 所述 TbaseO为所述传输流中拼接点之前, 离所述拼接点最近的包 含时钟同步基准的传输包中的时钟同步基准, TpacketO 为离所述拼接点最近 的包含时钟同步基准的传输包中携带的时戳, Tpacket为所述传输流中拼接点 处第一个后续的传输包中携带的时戳。 The TbaseO is a clock synchronization reference in a transport packet including a clock synchronization reference closest to the splicing point before the splicing point in the transport stream, and TpacketO is a transmission including a clock synchronization reference closest to the splicing point. The timestamp carried in the packet, Tpacket is the timestamp carried in the first subsequent transport packet at the splice point in the transport stream.
4、 如权利要求 1 ~ 3中任意一项所述的方法, 其中, 当釆用在拼接点处插入携带时钟同步基准和时戳的一个或多个传输包 时, 所插入的传输包中还携带时钟同步基准更新指示和时钟同步基准更新序 号; 4. The method according to any one of claims 1 to 3, wherein When the one or more transport packets carrying the clock synchronization reference and the time stamp are inserted at the splicing point, the inserted transport packet further carries a clock synchronization reference update indication and a clock synchronization reference update sequence number;
当釆用在拼接点处第一个后续的传输包中插入时钟同步基准时, 还在所 述第一个后续的传输包中插入时钟同步基准更新指示和时钟同步基准更新序 号。 When the clock synchronization reference is inserted into the first subsequent transmission packet at the splicing point, the clock synchronization reference update indication and the clock synchronization reference update sequence are also inserted in the first subsequent transmission packet.
5、 如权利要求 4所述的方法, 其中, 5. The method of claim 4, wherein
当码流获取设备得到插入或截取后的所述传输流, 若检测到数据包中携 带有时钟同步基准更新指示, 根据该数据包中携带的时钟同步基准更新序号 判断是否为新的更新, 若是, 则使用该数据包中携带的时钟同步基准作为新 的同步时钟基准。 When the code stream obtaining device obtains the inserted or intercepted transport stream, if it detects that the data packet carries a clock synchronization reference update indication, it determines whether the new update is based on the clock synchronization reference update number carried in the data packet, if , then use the clock synchronization reference carried in the packet as the new synchronous clock reference.
6、 一种传输流平滑拼接的系统, 包括码流拼接设备, 6. A system for smooth splicing of transport streams, including a stream stream splicing device,
所述码流拼接设备设置为: 在对传输流插入或截取时, 在拼接点处插入 携带时钟同步基准和时戳的一个或多个传输包, 或者, 在拼接点处第一个后 续的传输包中插入时钟同步基准。 The code stream splicing device is configured to: insert one or more transport packets carrying a clock synchronization reference and a time stamp at the splicing point when inserting or intercepting the transport stream, or the first subsequent transmission at the splicing point Insert a clock synchronization reference into the package.
7、 如权利要求 6所述的系统, 其中, 7. The system of claim 6 wherein
所述码流拼接设备还设置为: 当釆用在拼接点处插入携带时钟同步基准 和时戳的一个或多个传输包时, The code stream splicing device is further configured to: when inserting one or more transport packets carrying a clock synchronization reference and a time stamp at the splicing point,
按照下式计算得到所插入的传输包中携带的时钟同步基准 Tbase: Calculate the clock synchronization reference Tbase carried in the inserted transport packet according to the following formula:
Tbase=TbaseO+ ( Tpacket-TpacketO ) *同步时钟精度 /传输包时戳的时钟精 度; Tbase=TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock accuracy of the transport packet time stamp;
其中, 所述 TbaseO为所述传输流中拼接点之前, 离所述拼接点最近的包 含时钟同步基准的传输包中的时钟同步基准, TpacketO 为离所述拼接点最近 的包含时钟同步基准的传输包中携带的时戳, Tpacket为所述传输流中拼接点 处第一个后续的传输包中携带的时戳; The TbaseO is a clock synchronization reference in a transport packet including a clock synchronization reference closest to the splicing point before the splicing point in the transport stream, and TpacketO is a transmission including a clock synchronization reference closest to the splicing point. Time stamp carried in the packet, Tpacket is a time stamp carried in the first subsequent transmission packet at the splicing point in the transport stream;
所插入的传输包中携带的时戳为所述传输流中拼接点处第一个后续的传 输包中携带的时戳 Tpacket。 The timestamp carried in the inserted transport packet is the timestamp Tpacket carried in the first subsequent transport packet at the splice point in the transport stream.
8、 如权利要求 6所述的系统, 其中, 所述码流拼接设备还设置为: 当釆用在拼接点处第一个后续的传输包中 插入时钟同步基准时, 8. The system of claim 6 wherein The code stream splicing device is further configured to: when the clock synchronization reference is inserted into the first subsequent transmission packet at the splicing point,
按照下式计算得到所插入时钟同步基准 Tbase: Calculate the inserted clock synchronization reference Tbase according to the following formula:
Tbase=TbaseO+ ( Tpacket-TpacketO ) *同步时钟精度 /传输包时戳的时钟精 度; Tbase=TbaseO+ ( Tpacket-TpacketO ) * Synchronous clock accuracy / clock accuracy of the transport packet time stamp;
其中, 所述 TbaseO为所述传输流中拼接点之前, 离所述拼接点最近的包 含时钟同步基准的传输包中的时钟同步基准, TpacketO 为离所述拼接点最近 的包含时钟同步基准的传输包中携带的时戳, Tpacket为所述传输流中拼接点 处第一个后续的传输包中携带的时戳。 The TbaseO is a clock synchronization reference in a transport packet including a clock synchronization reference closest to the splicing point before the splicing point in the transport stream, and TpacketO is a transmission including a clock synchronization reference closest to the splicing point. The timestamp carried in the packet, Tpacket is the timestamp carried in the first subsequent transport packet at the splice point in the transport stream.
9、 如权利要求 6 ~ 8中任意一项所述的系统, 其中, 9. The system according to any one of claims 6 to 8, wherein
码流拼接设备还设置为: 当釆用在拼接点处插入携带时钟同步基准和时 戳的一个或多个传输包时, 所插入的传输包中还携带时钟同步基准更新指示 和时钟同步基准更新序号; 当釆用在拼接点处第一个后续的传输包中插入时 钟同步基准时, 在所述第一个后续的传输包中插入时钟同步基准更新指示和 时钟同步基准更新序号。 The code stream splicing device is further configured to: when inserting one or more transport packets carrying a clock synchronization reference and a time stamp at the splicing point, the inserted transport packet also carries a clock synchronization reference update indication and a clock synchronization reference update Serial number; When the clock synchronization reference is inserted into the first subsequent transmission packet at the splicing point, the clock synchronization reference update indication and the clock synchronization reference update sequence number are inserted in the first subsequent transmission packet.
10、 如权利要求 9所述的系统, 其中, 所述系统还包括码流获取设备, 码流拼接设备还设置为: 将插入或截取后的传输流发送给所述码流获取 设备; The system of claim 9, wherein the system further includes a code stream acquisition device, and the code stream splicing device is further configured to: send the inserted or intercepted transport stream to the code stream acquisition device;
码流获取设备设置为: 得到插入或截取后的所述传输流后, 若检测到数 据包中携带有时钟同步基准更新指示, 根据该数据包中携带的时钟同步基准 更新序号判断是否为新的更新, 若是, 则使用该数据包中携带的时钟同步基 准作为新的同步时钟基准。 The code stream obtaining device is configured to: after obtaining the inserted or intercepted transport stream, if it is detected that the data packet carries a clock synchronization reference update indication, determine whether the new serial number is based on the clock synchronization reference update number carried in the data packet. Update, if yes, use the clock synchronization reference carried in the packet as the new synchronous clock reference.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110005056.2A CN102595253B (en) | 2011-01-11 | 2011-01-11 | Method and system for smooth registration of transport stream |
CN201110005056.2 | 2011-01-11 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2012094977A1 true WO2012094977A1 (en) | 2012-07-19 |
Family
ID=46483384
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2012/070166 WO2012094977A1 (en) | 2011-01-11 | 2012-01-10 | Method and system for merging transmission streams smoothly |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102595253B (en) |
WO (1) | WO2012094977A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106534896B (en) * | 2016-11-25 | 2019-06-18 | 北京数码视讯科技股份有限公司 | A kind of transmission method and device of transport stream TS |
CN106851350B (en) * | 2016-12-30 | 2019-07-30 | 中广热点云科技有限公司 | A kind of system and method for transport stream smooth registration |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1236267A (en) * | 1998-03-09 | 1999-11-24 | 索尼公司 | Video editing apparatus and video editing method |
CN1636403A (en) * | 2001-06-01 | 2005-07-06 | 通用仪表公司 | Splicing of digital video transport streams |
US6993081B1 (en) * | 1999-11-23 | 2006-01-31 | International Business Machines Corporation | Seamless splicing/spot-insertion for MPEG-2 digital video/audio stream |
US20060075449A1 (en) * | 2004-09-24 | 2006-04-06 | Cisco Technology, Inc. | Distributed architecture for digital program insertion in video streams delivered over packet networks |
CN101374231A (en) * | 2007-04-30 | 2009-02-25 | Vixs系统公司 | System and method for combining a plurality of video streams |
-
2011
- 2011-01-11 CN CN201110005056.2A patent/CN102595253B/en active Active
-
2012
- 2012-01-10 WO PCT/CN2012/070166 patent/WO2012094977A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1236267A (en) * | 1998-03-09 | 1999-11-24 | 索尼公司 | Video editing apparatus and video editing method |
US6993081B1 (en) * | 1999-11-23 | 2006-01-31 | International Business Machines Corporation | Seamless splicing/spot-insertion for MPEG-2 digital video/audio stream |
CN1636403A (en) * | 2001-06-01 | 2005-07-06 | 通用仪表公司 | Splicing of digital video transport streams |
US20060075449A1 (en) * | 2004-09-24 | 2006-04-06 | Cisco Technology, Inc. | Distributed architecture for digital program insertion in video streams delivered over packet networks |
CN101374231A (en) * | 2007-04-30 | 2009-02-25 | Vixs系统公司 | System and method for combining a plurality of video streams |
Also Published As
Publication number | Publication date |
---|---|
CN102595253B (en) | 2017-03-22 |
CN102595253A (en) | 2012-07-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8775546B2 (en) | Systems and methods for synchronizing operations among a plurality of independently clocked digital data processing devices that independently source digital data | |
JP5086285B2 (en) | Video distribution system, video distribution apparatus, and synchronization correction processing apparatus | |
TWI668982B (en) | Method and server device for transport interface for multimedia and file transport, and computer-readable storage medium for recording related instructions thereon | |
KR102049907B1 (en) | Media data transmission apparatus and method, and media data reception apparatus and method in mmt system | |
JP6053686B2 (en) | Methods and corresponding devices for synchronizing multimedia flows | |
CN103200461B (en) | A kind of multiple stage playback terminal synchronous playing system and player method | |
CN109565466B (en) | Lip sound synchronization method and device among multiple devices | |
KR101941900B1 (en) | Heterogeneous network transfer method considering cache window size and cache time in dynamic time | |
EP3258697B1 (en) | Transmission apparatus, transmission method, reception apparatus, and reception method | |
CN107995503B (en) | Audio and video playing method and device | |
WO2010072077A1 (en) | Method, device and system for processing media data | |
CN103096183B (en) | A kind of highly efficient stream media transmission method | |
WO2014078818A1 (en) | Common event-based multidevice media playback | |
CN106488259A (en) | A kind of virtual joining method of HLS Streaming Media burst and system | |
WO2015183814A1 (en) | Http live streaming dateranges | |
US20210044874A1 (en) | System and Method for Optimizing Playlist Information for Ultra Low Latency Live Streaming | |
TW201409998A (en) | Rendering time control | |
WO2012094977A1 (en) | Method and system for merging transmission streams smoothly | |
JP2015026920A (en) | Content recording/reproducing device | |
EP2491715B1 (en) | Method and system for media play position control | |
CN114339267B (en) | File carousel push method and device and live push server | |
WO2012094992A1 (en) | Method and system for data acquisition | |
CN113169969A (en) | Multicast to unicast conversion | |
CN102231803B (en) | Fault tolerant method for supporting TS streaming media file | |
JP4364619B2 (en) | Multiple video time synchronous display terminal, multiple video time synchronous display method, program, and recording medium |
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: 12734288 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: 12734288 Country of ref document: EP Kind code of ref document: A1 |