CN102595253B - Method and system for smooth registration of transport stream - Google Patents
Method and system for smooth registration of transport stream Download PDFInfo
- Publication number
- CN102595253B CN102595253B CN201110005056.2A CN201110005056A CN102595253B CN 102595253 B CN102595253 B CN 102595253B CN 201110005056 A CN201110005056 A CN 201110005056A CN 102595253 B CN102595253 B CN 102595253B
- Authority
- CN
- China
- Prior art keywords
- synchronous base
- clock synchronous
- clock
- splice point
- time stamp
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The invention discloses a method and a system for the smooth registration of a transport stream. The method comprises the following step of: during the insertion or interception of the transport stream, inserting one or more transport packets carrying a time synchronous reference and timestamps at a registration point, or inserting the clock synchronization reference into a first subsequent transport packet at the registration point. By the method and the system, in a program insertion process or a program edition process, the clock synchronization reference of a program is calculated and updated, so that a subsequent program can quickly acquire the clock synchronization reference after the insertion or edition of the program is finished.
Description
Technical field
The present invention relates to transmission technology in multimedia system, more particularly to a kind of method of transport stream smooth registration and it is
System.
Background technology
With the development of communication technology, the application of the transmission technology in multimedia system is more and more wider.At present, IPTV
(Internet Protocol Television, internet protocol TV), VOIP (Voice Over Internet
Protocol, the networking telephone) and video monitoring service obtained increasingly being widely applied.
Clock synchronous base enables code stream receiving terminal to regenerate the desired program of code stream transmitting terminal.But insert in program
During entering, such as VOD service, video server may be inserted during program request program stream is sent in real time
The code stream of advertisement, the code stream for retransmiting the code stream of program, the code stream of program and advertisement after advertisement insertion is complete there may be difference
Clock synchronous base, and the original transmission bag of the code stream of the subsequent program interrupted by advertisement may lack clock synchronization base
It is accurate.During editing saving, such as the editing of program in storage device, the segment encode stream in the middle of program are cut up, follow-up to rise
Beginning program may lack clock synchronous base, cause the program after editing to lack in a period of time internal clock synchronous base.
The content of the invention
The technical problem to be solved in the present invention is exactly to overcome above-mentioned the deficiencies in the prior art, proposes that a kind of transport stream is smooth and spells
The method and system for connecing, it is ensured that be capable of the renewal of smoothing processing clock synchronous base in time when code stream splices.
In order to solve the above problems, the present invention provides a kind of method of transport stream smooth registration, including:
When inserting to transport stream or intercept, carry clock synchronous base and time stamp one or many is inserted at splice point
Individual transmission bag, or, clock synchronous base is inserted in first follow-up transmission bag at splice point.
Preferably, said method has the characteristics that:
When one or more the transmission bags for carrying clock synchronous base and time stamp using the insertion at splice point,
The clock synchronous base Tbase carried in being calculated inserted transmission bag according to the following formula:
The clock accuracy of Tbase=Tbase0+ (Tpacket-Tpacket0) * synchronised clock precision/transmission bag time stamp;
Wherein, the Tbase0 is in the transport stream before splice point, from nearest same comprising clock of the splice point
Step benchmark transmission bag in clock synchronous base, Tpacket0 be from the splice point it is nearest comprising clock synchronous base
The time stamp that carries in transmission bag, Tpacket be carry in first follow-up transmission bag at splice point in the transport stream when
Stamp;
In the transmission bag for being inserted, the time stamp that carries is in the transport stream at splice point in first follow-up transmission bag
The time stamp Tpacket of carrying.
Preferably, said method has the characteristics that:
When the insertion clock synchronous base in first follow-up transmission bag at splice point is adopted,
Inserted clock synchronous base Tbase is calculated according to the following formula:
The clock accuracy of Tbase=Tbase0+ (Tpacket-Tpacket0) * synchronised clock precision/transmission bag time stamp;
Wherein, the Tbase0 is in the transport stream before splice point, from nearest same comprising clock of the splice point
Step benchmark transmission bag in clock synchronous base, Tpacket0 be from the splice point it is nearest comprising clock synchronous base
The time stamp that carries in transmission bag, Tpacket be carry in first follow-up transmission bag at splice point in the transport stream when
Stamp.
Preferably, said method has the characteristics that:
When one or more the transmission bags for carrying clock synchronous base and time stamp using the insertion at splice point, inserted
Transmission bag in also carry clock synchronous base update instruction and clock synchronous base and update sequence number;
When the insertion clock synchronous base in first follow-up transmission bag at splice point is adopted, also at described first
Clock synchronous base update instruction is inserted in follow-up transmission bag and clock synchronous base updates sequence number.
Preferably, said method has the characteristics that:
When code stream obtains transport stream after equipment is inserted or intercepted, if carrying clock in detecting packet
Synchronous base update instruction, updates sequence number according to the clock synchronous base carried in the packet and determines whether new renewal,
If so, the clock synchronous base carried in the packet is then used as new synchronised clock benchmark.
In order to solve the above problems, the present invention provides a kind of system of transport stream smooth registration, splices equipment including code stream,
The code stream splices equipment for when inserting to transport stream or intercept, inserting and carry clock synchronization at splice point
One or more transmission bags of benchmark and time stamp, or, clock synchronization is inserted in first follow-up transmission bag at splice point
Benchmark.
Preferably, said system has the characteristics that:
The code stream splicing equipment is further used for when using insertion carrying clock synchronous base and time stamp at splice point
One or more transmission bag when,
The clock synchronous base Tbase carried in being calculated inserted transmission bag according to the following formula:
The clock accuracy of Tbase=Tbase0+ (Tpacket-Tpacket0) * synchronised clock precision/transmission bag time stamp;
Wherein, the Tbase0 is in the transport stream before splice point, from nearest same comprising clock of the splice point
Step benchmark transmission bag in clock synchronous base, Tpacket0 be from the splice point it is nearest comprising clock synchronous base
The time stamp that carries in transmission bag, Tpacket be carry in first follow-up transmission bag at splice point in the transport stream when
Stamp;
In the transmission bag for being inserted, the time stamp that carries is in the transport stream at splice point in first follow-up transmission bag
The time stamp Tpacket of carrying.
Preferably, said system has the characteristics that:
Code stream splicing equipment be further used for when adopt insert in first follow-up transmission bag at splice point when
During clock synchronous base,
Inserted clock synchronous base Tbase is calculated according to the following formula:
The clock accuracy of Tbase=Tbase0+ (Tpacket-Tpacket0) * synchronised clock precision/transmission bag time stamp;
Wherein, the Tbase0 is in the transport stream before splice point, from nearest same comprising clock of the splice point
Step benchmark transmission bag in clock synchronous base, Tpacket0 be from the splice point it is nearest comprising clock synchronous base
The time stamp that carries in transmission bag, Tpacket be carry in first follow-up transmission bag at splice point in the transport stream when
Stamp.
Preferably, said system has the characteristics that:
Code stream splicing equipment is further used for, as using the insertion carrying clock synchronous base at splice point and time stamp
During individual or multiple transmission bags, clock synchronous base update instruction is also carried in the transmission bag for being inserted and clock synchronous base updates
Sequence number;When the insertion clock synchronous base in first follow-up transmission bag at splice point is adopted, also after described first
Clock synchronous base update instruction is inserted in continuous transmission bag and clock synchronous base updates sequence number.
Preferably, said system also includes that code stream obtains equipment,
Code stream splicing equipment is further used for for the transport stream after insertion or intercepting being sent to the code stream acquisition equipment;
After code stream obtains the transport stream after equipment is used for being inserted or being intercepted, if carrying in detecting packet
Clock synchronous base update instruction, according to the clock synchronous base that carries in the packet update sequence number determine whether it is new more
Newly, the clock synchronous base carried in the packet is if so, then used as new synchronised clock benchmark.
By the present invention, in program insertion process or editor during, by calculate and update program when
Clock synchronous base, it is ensured that after the completion of program insertion or after editing saving, follow-up program can obtain clock synchronization base quickly
It is accurate.
Description of the drawings
Transmission packet structure schematic diagrams of the Fig. 1 for the embodiment of the present invention;
Fig. 2 is that (Moving Pictures Experts Group, moving image are special for the MPEG-2 using example of the invention
Family's group) TS (Transport Stream, transport stream) pack arrangement schematic diagram;
Fig. 3 is that the present invention updates schematic flow sheet using the clock synchronous base of example.
Specific embodiment
Embodiments of the invention are described in detail below in conjunction with accompanying drawing.It should be noted that not conflicting
In the case of, the feature in embodiment and embodiment in the application can mutual combination in any.
The present invention basic thought be, the dynamic smoothing refresh clock synchronous base by way of in band, it is ensured that code stream spell
The renewal for being capable of smoothing processing clock synchronous base in time is connect, prevents spliced code stream to lack clock synchronous base.
Specifically, transport stream (code stream) is encapsulated as transmission bag for transmitting and storing.Transport stream is being inserted or is being intercepted
When, the insertion at the splice point carries one or more transmission bags of clock synchronous base and time stamp, or, first at the splice point
Clock synchronous base is inserted in individual follow-up transmission bag.
The clock synchronous base that carries during inserted transmission bag can be calculated according to the following formula or first at the splice point
Clock synchronous base Tbase is inserted in individual follow-up transmission bag:
The clock accuracy of Tbase=Tbase0+ (Tpacket-Tpacket0) * synchronised clock precision/transmission bag time stamp;
Wherein, the Tbase0 is in the transport stream before splice point, from nearest same comprising clock of the splice point
Step benchmark transmission bag in clock synchronous base, Tpacket0 be from the splice point it is nearest comprising clock synchronous base
The time stamp that carries in transmission bag, Tpacket be carry in first follow-up transmission bag at splice point in the transport stream when
Stamp.
In the transmission bag for being inserted, the time stamp that carries is in the transport stream at splice point in first follow-up transmission bag
The time stamp Tpacket of carrying.
In addition, when one or more the transmission bags for carrying clock synchronous base and time stamp using the insertion at splice point,
Clock synchronous base update instruction can also be carried in the transmission bag for being inserted and clock synchronous base updates sequence number;
When adopt at splice point insert clock synchronous base in first follow-up transmission bag when, can be with described the
Clock synchronous base update instruction is inserted in one follow-up transmission bag and clock synchronous base updates sequence number.
As shown in figure 1, synchronised clock benchmark field is used for identifying synchronised clock benchmark, synchronised clock datum renewal indicates word
Section indicates the renewal of synchronised clock benchmark, and synchronised clock datum renewal sequence number field indicates synchronised clock datum renewal number of times, when
Stamp field represents the corresponding program time stamp of synchronised clock benchmark.
Although clock synchronous base field and clock synchronous base update instruction field that Fig. 1 has in showing transmission bag
And clock synchronous base updates sequence number field and time stamp field, but the present invention is not limited thereto, in actual applications, above-mentioned
Clock synchronous base field and clock synchronous base update instruction field and clock synchronous base update sequence number field and time stamp
Field position in the transport packet and order also can be different from Fig. 1.
When code stream obtains transport stream after equipment is inserted or intercepted, if carrying clock in detecting packet
Synchronous base update instruction, updates sequence number according to the clock synchronous base carried in the packet and determines whether new renewal,
If so, the clock synchronous base carried in the packet is then used as new synchronised clock benchmark.
During a clock synchronous base updates, can be inserted at splice point and carry clock synchronous base and time stamp
Multiple transmission bags, it is identical that each clock synchronous base updates sequence number, and code stream obtains equipment and can be determined according to the value of the field and be
It is no to be belonging to once updating, to prevent Network Packet Loss from causing clock synchronous base to update the problem lost.
Described with inserting and intercepting two kinds of situations to transport stream respectively below:
Embodiment one, the process inserted by transport stream:
In the present embodiment, by program be encapsulated as transmission bag to network send during, send program transmission bag mistake
Cheng Zhong, insertion advertisement transmission bag.
Before advertisement is initially inserted into, before record concatenation point (insertion point), from the splice point it is nearest comprising clock
Clock synchronous base Tbase0 in the program transmission bag of synchronous base, and the time stamp carried in the program transmission bag
Tpacket0.And the time stamp Tpacket carried in top line transmission bag after record concatenation point (insertion point).It is to be sent complete
After advertisement transmission bag, the moment of program transmission bag is retransmited, the clock synchronous base of program is calculated:
The clock accuracy of Tbase=Tbase0+ (Tpacket-Tpacket0) * synchronised clock precision/transmission bag time stamp
If the length of transmission bag is regular length, one or more new transmission bags are constructed, in the new transmission bag
The value of middle addition clock synchronous base field juxtaposition clock synchronous base field is Tbase, in the transmission bag adds time stamp
The field and value for putting the time stamp field is Tpacket, and add clock synchronous base in the transmission bag and update and refer to
Show field and synchronised clock datum renewal sequence number field.Wherein, can arrange clock synchronous base update instruction field value be 1 with
The renewal of synchronised clock benchmark is indicated, the value for arranging synchronised clock datum renewal sequence number field updated sequence number for the last time of this program
Plus 1, if updating for the first time, the value that can arrange synchronised clock datum renewal sequence number field is 1.Treat described new 1 or many
After individual transmission bag is sent completely, remaining program transmission bag is retransmited.Wherein, the purpose for sending multiple new transmission bags is to avoid
Due to Network Packet Loss, receiving terminal is not received by the new transmission bag.
If the length of transmission bag is variable-length, in follow-up multiple program transmission bags, if the program transmission bag
In do not have clock synchronous base field then add clock synchronous base field juxtaposition clock synchronous base field value be Tbase,
And add clock synchronous base update instruction field and synchronised clock datum renewal sequence number field in the transmission bag.Its
In, the value that can arrange clock synchronous base update instruction field is 1 to indicate the renewal of synchronised clock benchmark, setting synchronised clock
The value of datum renewal sequence number field updated sequence number for the last time of this program and adds 1, if updating for the first time, can arrange synchronised clock
The value of datum renewal sequence number field is 1.Program transmission bag is sent successively.
It is terminal receiving device that code stream obtains equipment, receives transmission bag, and the terminal receiving device is detected in transmission bag
Clock synchronous base update instruction field indicate synchronised clock datum renewal when, detect it is described transmission bag in clock synchronous base more
New sequence number field, updates sequence number field by the clock synchronous base and judges whether clock synchronous base is new renewal.If
After the terminal receiving device detects synchronised clock datum renewal, then using the clock synchronous base field in the transmission bag
Value as new synchronised clock benchmark.Using the value of the time stamp field in the transmission bag as new time stamp benchmark.
Embodiment two, the process intercepted by transport stream:
In the present embodiment, editing is carried out to program, remove one section of program of centre.
During program editing travels through the transmission bag in file, determine need editing last transmission
The moment of bag, before record concatenation point (clip point), from the nearest program transmission comprising clock synchronous base of the splice point
Clock synchronous base Tbase0 in bag, and the time stamp Tpacket0 carried in the program transmission bag.And record concatenation point (is cut
Volume point) after the time stamp Tpacket that carries in top line transmission bag to be retained.Calculate the clock synchronous base of program:
The clock accuracy of Tbase=Tbase0+ (Tpacket-Tpacket0) * synchronised clock precision/transmission bag time stamp
If the length of transmission bag is regular length, 1 new transmission bag is constructed, added in described 1 new transmission bag
The value of added-time clock synchronous base field juxtaposition clock synchronous base field is Tbase, in the transmission bag adds time stamp field
And it is Tpacket to put the value of the time stamp field, and add clock synchronous base update instruction word in the transmission bag
Section and synchronised clock datum renewal sequence number field.Wherein, the value that can arrange clock synchronous base update instruction field is 1 to indicate
The renewal of synchronised clock benchmark, the value for arranging synchronised clock datum renewal sequence number field add 1 for the last time renewal sequence number of this program,
If updating for the first time, the value that can arrange synchronised clock datum renewal sequence number field is 1.Insertion 1 new transmission bag
Afterwards, merge remaining program transmission bag after editing.
If the length of transmission bag is variable-length, the next transmission of last transmission bag that editing is fallen is detected
Bag, adds clock synchronous base field juxtaposition clock synchronous base if described transmission in bag if no clock synchronous base field
The value of field is Tbase, and in the transmission bag adds clock synchronous base update instruction field and synchronised clock benchmark
Update sequence number field.Wherein, the value that can arrange clock synchronous base update instruction field is 1 to indicate synchronised clock benchmark more
Newly, the value for arranging synchronised clock datum renewal sequence number field adds 1 for the last time renewal sequence number of this program, if for the first time more
Newly, the value that can arrange synchronised clock datum renewal sequence number field is 1.Merge remaining program transmission bag after editing.
Code stream obtains equipment and represents equipment for code stream, processes transmission bag in splicing file, and in detecting transmission bag, clock is same
When step datum renewal indication field indicates synchronised clock datum renewal, in detecting the transmission bag, clock synchronous base updates sequence number
Field, updates sequence number field by the clock synchronous base and judges whether it is that new clock synchronous base updates.The code stream exhibition
After existing equipment detects the renewal of clock synchronous base, using the value of the clock synchronous base field in the transmission bag as new
Clock synchronous base, using the value of the time stamp field in the transmission bag as new time stamp benchmark.
Specifically the present invention is further illustrated using example with one below.
Fig. 2 expands clock synchronous base update instruction field for the present invention in MPEG-2TS bags and clock synchronous base updates
The structural representation of sequence number field.
For ease of description, embodiment has used MPEG-2TS files as file source, then described this document has been cut
Volume, one section of MPEG-2TS code stream is therefrom cut, two sections of MPEG-2TS code streams of head and the tail are spliced into into a file again then.
As shown in figure 3, on customized program equipment, clock synchronous base updates to be carried out by the following method:
Step 301:Clock synchronous base updates pre-treatment.
This document when a length of 1799 seconds, editing is carried out to described this document then, one was cut from the 600th second by 1199 seconds
Section MPEG-2TS code streams.
After determining starting point and the terminal of editing, the transmission traveled through in file in program editing is wrapped until the terminal of editing
During, record the 600th second before, the clock synchronization in the 600th second nearest transmission bag comprising clock synchronous base
Time stamp Tpacket0 in benchmark Tbase0 and the transmission bag, while the time stamp Tpacket of the record transmission bag of the 1199th second.
Step 302:The renewal of clock synchronous base is processed.
Calculate in program editing destination county (the transmission bag of i.e. the 1199th second), the clock synchronous base of program.
The clock accuracy of Tbase=Tbase0+ (Tpacket-Tpacket0) * synchronised clock precision/transmission bag time stamp
MPEG-2TS is the transmission bag of regular length, therefore, 1 new transmission bag is constructed, is added in the new transmission bag
The value of added-time clock synchronous base field juxtaposition synchronised clock benchmark field is Tbase, and in the transmission bag adds clock
Synchronous base update instruction field and put the clock synchronous base update instruction field value be 1, while in the transmission
The value added clock synchronous base renewal sequence number field in bag and put the synchronised clock datum renewal sequence number field is 1,
The value added time stamp field in the transmission bag and put the time stamp field is Tpacket.It is last from 0 second to 599 seconds this
After inserting 1 new transmission bag behind section MPEG-2TS code streams, other a section from 1200 seconds to 1799 seconds is remerged
MPEG-2TS bag code streams.
Code stream represents equipment process and has spliced transmission bag in file, in code stream stitching portion, detects in the transmission bag
When clock synchronous base update instruction field indicates synchronised clock datum renewal, clock synchronized update sequence in the transmission bag is detected
Number field, it is that new clock synchronous base updates that the value by the clock synchronized update sequence number field is 1 judgement.The code stream exhibition
After existing equipment detects the renewal of clock synchronous base, using the value of the clock synchronous base field in the transmission bag as new
Synchronised clock benchmark, using the value of the time stamp field in the transmission bag as new time stamp benchmark.
Correspondingly, the system of the transport stream smooth registration of the embodiment of the present invention, splices equipment including code stream and code stream is obtained
Equipment,
The code stream splices equipment for when inserting to transport stream or intercept, inserting and carry clock synchronization at splice point
One or more transmission bags of benchmark and time stamp, or, clock synchronization is inserted in first follow-up transmission bag at splice point
Benchmark.
Code stream splicing equipment can be further used for when using the insertion at splice point carry clock synchronous base and when
During one or more transmission bags of stamp,
The clock synchronous base Tbase carried in being calculated inserted transmission bag according to the following formula:
The clock accuracy of Tbase=Tbase0+ (Tpacket-Tpacket0) * synchronised clock precision/transmission bag time stamp;
Wherein, the Tbase0 is in the transport stream before splice point, from nearest same comprising clock of the splice point
Step benchmark transmission bag in clock synchronous base, Tpacket0 be from the splice point it is nearest comprising clock synchronous base
The time stamp that carries in transmission bag, Tpacket be carry in first follow-up transmission bag at splice point in the transport stream when
Stamp;
In the transmission bag for being inserted, the time stamp that carries is in the transport stream at splice point in first follow-up transmission bag
The time stamp Tpacket of carrying.
The code stream splicing equipment can be further used for when using the insertion in first follow-up transmission bag at splice point
During clock synchronous base,
Inserted clock synchronous base Tbase is calculated according to the following formula:
The clock accuracy of Tbase=Tbase0+ (Tpacket-Tpacket0) * synchronised clock precision/transmission bag time stamp;
Wherein, the Tbase0 is in the transport stream before splice point, from nearest same comprising clock of the splice point
Step benchmark transmission bag in clock synchronous base, Tpacket0 be from the splice point it is nearest comprising clock synchronous base
The time stamp that carries in transmission bag, Tpacket be carry in first follow-up transmission bag at splice point in the transport stream when
Stamp.
Code stream splicing equipment can be further used for, when carrying clock synchronous base and time stamp using the insertion at splice point
During one or more transmission bags, clock synchronous base update instruction and clock synchronous base is also carried in the transmission bag for being inserted more
New sequence number;When the insertion clock synchronous base in first follow-up transmission bag at splice point is adopted, also at described first
Clock synchronous base update instruction is inserted in follow-up transmission bag and clock synchronous base updates sequence number.
Code stream splicing equipment can be further used for for the transport stream after insertion or intercepting being sent to the code stream acquisition equipment;
After code stream obtains the transport stream after equipment can be used to be inserted or be intercepted, if carrying in detecting packet
There is clock synchronous base update instruction, determined whether according to the clock synchronous base renewal sequence number carried in the packet new
Update, the clock synchronous base carried in the packet is if so, then used as new synchronised clock benchmark.
In sum, the invention can ensure that the renewal of smoothing processing clock synchronous base in time is capable of in code stream splicing, prevent
Spliced code stream lacks clock synchronous base, so as to provide the guarantee means of clock reference synchronization renewal.
One of ordinary skill in the art will appreciate that all or part of step in said method can be instructed by program
Related hardware is completed, and described program can be stored in computer-readable recording medium, such as read only memory, disk or CD
Deng.Alternatively, all or part of step of above-described embodiment can also be realized using one or more integrated circuits, accordingly
Ground, each module/unit in above-described embodiment can be realized in the form of hardware, it would however also be possible to employ the shape of software function module
Formula is realized.The present invention is not restricted to the combination of the hardware and software of any particular form.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, for the skill of this area
For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.
Claims (6)
1. a kind of method of transport stream smooth registration, including:
When inserting to transport stream or intercept, one or more biographies for carrying clock synchronous base and time stamp are inserted at splice point
Defeated bag, or, clock synchronous base is inserted in first follow-up transmission bag at splice point;
When one or more the transmission bags for carrying clock synchronous base and time stamp using the insertion at splice point,
The clock synchronous base Tbase carried in being calculated inserted transmission bag according to the following formula:
The clock accuracy of Tbase=Tbase0+ (Tpacket Tpacket0) * synchronised clocks precision/transmission bag time stamp;
Wherein, the Tbase0 is in the transport stream before splice point, from the splice point it is nearest comprising clock synchronization base
Clock synchronous base in accurate transmission bag, Tpacket0 is from the nearest transmission comprising clock synchronous base of the splice point
The time stamp carried in bag, Tpacket are the time stamp carried in first follow-up transmission bag at splice point in the transport stream;
In the transmission bag for being inserted, the time stamp that carries is to carry in first follow-up transmission bag at splice point in the transport stream
Time stamp Tpacket;
Or,
When the insertion clock synchronous base in first follow-up transmission bag at splice point is adopted,
Inserted clock synchronous base Tbase is calculated according to the following formula:
The clock accuracy of Tbase=Tbase0+ (Tpacket Tpacket0) * synchronised clocks precision/transmission bag time stamp;
Wherein, the Tbase0 is in the transport stream before splice point, from the splice point it is nearest comprising clock synchronization base
Clock synchronous base in accurate transmission bag, Tpacket0 is from the nearest transmission comprising clock synchronous base of the splice point
The time stamp carried in bag, Tpacket are the time stamp carried in first follow-up transmission bag at splice point in the transport stream.
2. the method for claim 1, it is characterised in that
When one or more the transmission bags for carrying clock synchronous base and time stamp using the insertion at splice point, the biography inserted
Clock synchronous base update instruction is also carried in defeated bag and clock synchronous base updates sequence number;
It is when the insertion clock synchronous base in first follow-up transmission bag at splice point is adopted, also follow-up at described first
Transmission bag in insert clock synchronous base update instruction and clock synchronous base and update sequence number.
3. method as claimed in claim 2, it is characterised in that
When code stream obtains transport stream after equipment is inserted or intercepted, if carrying clock synchronization in detecting packet
Datum renewal indicates, updates sequence number according to the clock synchronous base carried in the packet and determine whether new renewal, if so,
The clock synchronous base carried in then using the packet is used as new synchronised clock benchmark.
4. a kind of system of transport stream smooth registration, it is characterised in that splice equipment including code stream,
The code stream splices equipment for when inserting to transport stream or intercept, inserting and carry clock synchronous base at splice point
One or more transmission with time stamp are wrapped, or, clock synchronous base is inserted in first follow-up transmission bag at splice point;
The code stream splicing equipment is further used for as using the insertion carrying clock synchronous base at splice point and time stamp
During individual or multiple transmission bags,
The clock synchronous base Tbase carried in being calculated inserted transmission bag according to the following formula:
The clock accuracy of Tbase=Tbase0+ (Tpacket Tpacket0) * synchronised clocks precision/transmission bag time stamp;
Wherein, the Tbase0 is in the transport stream before splice point, from the splice point it is nearest comprising clock synchronization base
Clock synchronous base in accurate transmission bag, Tpacket0 is from the nearest transmission comprising clock synchronous base of the splice point
The time stamp carried in bag, Tpacket are the time stamp carried in first follow-up transmission bag at splice point in the transport stream;
In the transmission bag for being inserted, the time stamp that carries is to carry in first follow-up transmission bag at splice point in the transport stream
Time stamp Tpacket;
Or,
The code stream splicing equipment is further used for when same using clock is inserted in first follow-up transmission bag at splice point
During step benchmark,
Inserted clock synchronous base Tbase is calculated according to the following formula:
The clock accuracy of Tbase=Tbase0+ (Tpacket Tpacket0) * synchronised clocks precision/transmission bag time stamp;
Wherein, the Tbase0 is in the transport stream before splice point, from the splice point it is nearest comprising clock synchronization base
Clock synchronous base in accurate transmission bag, Tpacket0 is from the nearest transmission comprising clock synchronous base of the splice point
The time stamp carried in bag, Tpacket are the time stamp carried in first follow-up transmission bag at splice point in the transport stream.
5. system as claimed in claim 4, it is characterised in that
Code stream splicing equipment is further used for, when using the insertion at splice point carry one of clock synchronous base and time stamp or
During multiple transmission bags, clock synchronous base update instruction is also carried in the transmission bag for being inserted and clock synchronous base updates sequence
Number;It is when the insertion clock synchronous base in first follow-up transmission bag at splice point is adopted, also follow-up at described first
Transmission bag in insert clock synchronous base update instruction and clock synchronous base and update sequence number.
6. system as claimed in claim 5, it is characterised in that the system also includes that code stream obtains equipment,
Code stream splicing equipment is further used for for the transport stream after insertion or intercepting being sent to the code stream acquisition equipment;
After code stream obtains the transport stream after equipment is used for being inserted or being intercepted, if carrying clock in detecting packet
Synchronous base update instruction, updates sequence number according to the clock synchronous base carried in the packet and determines whether new renewal,
If so, the clock synchronous base carried in the packet is then used as new synchronised clock benchmark.
Priority Applications (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 |
PCT/CN2012/070166 WO2012094977A1 (en) | 2011-01-11 | 2012-01-10 | Method and system for merging transmission streams smoothly |
Applications Claiming Priority (1)
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 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102595253A CN102595253A (en) | 2012-07-18 |
CN102595253B true CN102595253B (en) | 2017-03-22 |
Family
ID=46483384
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110005056.2A Active CN102595253B (en) | 2011-01-11 | 2011-01-11 | Method and system for smooth registration of transport stream |
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 (4)
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 |
CN101374231A (en) * | 2007-04-30 | 2009-02-25 | Vixs系统公司 | System and method for combining a plurality of video streams |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060075449A1 (en) * | 2004-09-24 | 2006-04-06 | Cisco Technology, Inc. | Distributed architecture for digital program insertion in video streams delivered over packet networks |
-
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 (4)
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 |
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 |
---|---|
CN102595253A (en) | 2012-07-18 |
WO2012094977A1 (en) | 2012-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101828639B1 (en) | Method for synchronizing multimedia flows and corresponding device | |
CN107426603A (en) | A kind of video broadcasting method and device | |
CN107995503B (en) | Audio and video playing method and device | |
CN109194887B (en) | Cloud shear video recording and editing method and plug-in | |
CN103891301A (en) | Method and apparatus for synchronizing media data of multimedia broadcast service | |
CN105359449B (en) | Sending method, method of reseptance, sending device and reception device | |
CN106488259B (en) | A kind of joining method and system of HLS Streaming Media fragment | |
US11563992B2 (en) | Video playback quality detection method and apparatus | |
CN106604064A (en) | Rapid broadcasting method and device | |
CN106131660A (en) | video positioning playing method and device | |
WO2015183814A1 (en) | Http live streaming dateranges | |
US10993000B2 (en) | System and method for optimizing playlist information for ultra low latency live streaming | |
US7817721B2 (en) | Posting status data in digital transport stream processing | |
CN103648011A (en) | Audio and video synchronization device and method based on HLS protocol | |
CN102595253B (en) | Method and system for smooth registration of transport stream | |
CN103491430A (en) | Streaming media data processing method and electronic device | |
JP2015026920A (en) | Content recording/reproducing device | |
CN103152607B (en) | The supper-fast thick volume method of video | |
CN102457768B (en) | Advertisement splicing processing method and system as well as splicer and headend equipment | |
CN105916011A (en) | Video real-time playing method and device | |
CN106658225A (en) | Video extension code setting and video playing method and system | |
CN107872716A (en) | A kind of stream data analytic method, device and the electronic equipment of rearmounted encapsulation | |
JP4055776B2 (en) | Content distribution system, and peer and peer program used therefor | |
CN102231803B (en) | Fault tolerant method for supporting TS streaming media file | |
CN102868930B (en) | Method and device for decoding transport-stream data packets |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |