CN106534896B - A kind of transmission method and device of transport stream TS - Google Patents
A kind of transmission method and device of transport stream TS Download PDFInfo
- Publication number
- CN106534896B CN106534896B CN201611054569.1A CN201611054569A CN106534896B CN 106534896 B CN106534896 B CN 106534896B CN 201611054569 A CN201611054569 A CN 201611054569A CN 106534896 B CN106534896 B CN 106534896B
- Authority
- CN
- China
- Prior art keywords
- packet
- original
- previous
- previous original
- time interval
- 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/235—Processing of additional data, e.g. scrambling of additional data or processing content descriptors
- H04N21/2353—Processing of additional data, e.g. scrambling of additional data or processing content descriptors specifically adapted to content descriptors, e.g. coding, compressing or processing of metadata
-
- 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/236—Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
- H04N21/23614—Multiplexing of additional data and video streams
-
- 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/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/434—Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
- H04N21/4348—Demultiplexing of additional data and video streams
-
- 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/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/435—Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Library & Information Science (AREA)
- Time-Division Multiplex Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides the transmission method and device of a kind of transport stream TS, this method comprises: the first equipment determines the transmission time interval of two original TS packets adjacent in the TS stream of current cache;First equipment is at least by the packet length of previous original TS packet in two adjacent original TS packets and the transmission time interval, before the packet header for the being edited into the previous original TS packet and position adjacent with the packet header of the previous original TS packet, TS packet after being edited;When first equipment determines the transmission sequence for reaching the previous original TS packet, the edited TS packet is transmitted to the second equipment by transmission network.The present invention be not necessarily to in original TS packet code rate and interval be modified, ensure that rear end equipment can receive normal TS packet.
Description
Technical field
The present invention relates to the transmission methods and device of audio video transmission technical field more particularly to a kind of transport stream TS.
Background technique
Transport stream (TS stream) is according to ITU-T Rec.H.222.0/ISO/IEC 13818-2 and ISO/IEC 13818-3
Agreement and a kind of data flow defined, it is one or more its purpose is to be carried out in the environment of being likely to occur serious error
The transimission and storage of the coded data of program.
TS stream is that subpackage is sent, i.e., TS stream is transmitted in the form of TS packet.After TS flows input front end equipment, headend equipment warp
It crosses transmission network and spreads TS and be defeated by rear end equipment.Currently, the synchronism in order to guarantee TS stream, needs in headend equipment side to TS
TS packet in stream carries out after being inserted into the operation of empty packet, and TS packet is inputted transmission network;Rear end equipment is received from transmission network
TS packet after, need the operation according to headend equipment to TS packet, it is corresponding TS packet after being operated is reverted to it is preoperative
TS packet, that is, the filtering or padding for needing to be implemented empty packet, to guarantee TS packet normal transmission to user side.
But this operation that empty packet is inserted into TS packet is related to the change on TS packet code rate and interval, rear end equipment exists
When carrying out the filtering or padding of empty packet, the data portion loss that will cause TS packet is even all lost or code rate fluctuation,
The problem of causing rear end equipment that can not receive normal TS packet, that is to say, that will lead to rear end equipment can not receive normal TS
The problem of stream.
Summary of the invention
The present invention provides the transmission method and device of a kind of transport stream TS, to solve in the prior art due to TS packet
Rear end equipment can not receive the problem of normal TS stream caused by code rate and interval are changed.
The present invention provides a kind of transmission method of transport stream TS, comprising:
First equipment determines the transmission time interval of two original TS packets adjacent in the TS stream of current cache;
First equipment is at least by the packet length and the transmission of previous original TS packet in two adjacent original TS packets
Time interval is edited into the packet header of the previous original TS packet before and the position adjacent with the packet header of the previous original TS packet
It sets, TS packet after being edited;
When first equipment determines the transmission sequence for reaching the previous original TS packet, the edited TS packet is passed through into biography
Defeated network transmission is to the second equipment.
In the method, the transmission time interval of two adjacent original TS packets in the TS stream of the determining current cache,
It specifically includes:
Record starts to receive the first time stamp of the previous original TS packet;
Record starts to receive the second timestamp of latter original TS packet in two adjacent original TS packets;
By the absolute value of the difference of first time stamp and second timestamp, as two adjacent original TS
The transmission time interval of packet.
The method, further includes:
Average duration needed for each byte in the previous original TS packet will be sent, the previous original TS packet is edited into
Packet header before and the position adjacent with the packet header of the previous original TS packet.
In the method, calculates and sends average duration needed for each byte in the previous original TS packet, specifically include:
The transmission time interval is calculated divided by the long resulting quotient of packet and remainder of the previous original TS packet;
When determining that the remainder is less than half of the previous original TS packet and wraps long, by the quotient resulting result that subtracts one
As average duration needed for each byte in the transmission previous original TS packet;
When determining that the remainder is long not less than half of packet of the previous original TS packet, using the quotient as described in transmission
Average duration needed for each byte in previous original TS packet.
The present invention also provides a kind of transmission methods of transport stream TS, comprising:
Second equipment receives and caches TS packet after the editor that the first equipment is transmitted by transmission network, TS packet after the editor
Packet header before and adjacent with packet header position editor have the packet of previous original TS packet long, and, previous original TS Bao Yuhou
The transmission time interval of one original TS packet, wherein previous original TS packet is adjacent with latter original TS packet, and previous original TS packet is institute
State the corresponding original TS packet of TS packet after editing;
Second equipment transmits institute according to the packet length of the previous original TS packet and the transmission time interval, to user side
State previous original TS packet.
In the method, according to the packet of previous original TS packet length and the transmission time interval, passed to user side
The defeated previous original TS packet, specifically includes:
Packet according to the transmission time interval and the previous original TS packet is long, calculates and sends the previous original TS
Average duration needed for each byte in packet;
According to the average duration, each byte in the previous original TS packet is transmitted, until the previous original TS
The last byte of packet is transmitted.
The method, further includes:
Determine that the previous original TS packet is transmitted, and/or, it determines and reaches the transmission time interval, start to institute
It states user side and transmits the latter original TS packet.
The present invention also provides a kind of transmitting devices of transport stream TS, comprising:
Determination unit, for determine the TS of current cache flow in adjacent two original TS packets transmission time interval;
Edit cell, at least by the packet of previous original TS packet in two adjacent original TS packets it is long and described
Transmission time interval is before being edited into the packet header of the previous original TS packet and adjacent with the packet header of the previous original TS packet
Position, TS packet after being edited;
Transmission unit, when for determining the transmission sequence for reaching the previous original TS packet, by the edited TS packet
The second equipment is transmitted to by transmission network.
In described device, the determination unit is specifically used for:
Record starts to receive the first time stamp of the previous original TS packet;
Record starts to receive the second timestamp of latter original TS packet in two adjacent original TS packets;
By the absolute value of the difference of first time stamp and second timestamp, as two adjacent original TS
The transmission time interval of packet.
In described device, the edit cell is also used to:
Average duration needed for each byte in the previous original TS packet will be sent, the previous original TS packet is edited into
Packet header before and the position adjacent with the packet header of the previous original TS packet.
In described device, the edit cell, which is also used to calculate in the following way, to be sent in the previous original TS packet often
Average duration needed for a byte:
The transmission time interval is calculated divided by the long resulting quotient of packet and remainder of the previous original TS packet;
When determining that the remainder is less than half of the previous original TS packet and wraps long, by the quotient resulting result that subtracts one
As average duration needed for each byte in the transmission previous original TS packet;
When determining that the remainder is long not less than half of packet of the previous original TS packet, using the quotient as described in transmission
Average duration needed for each byte in previous original TS packet.
The present invention also provides a kind of transmitting devices of transport stream TS, comprising:
Receiving unit, TS packet after the editor transmitted by transmission network for receiving and cache the first equipment, the editor
Before the packet header of the TS packet and position adjacent with the packet header, which is edited, afterwards has the packet of previous original TS packet long, and, previous original TS
The transmission time interval of packet and latter original TS packet, wherein previous original TS packet is adjacent with latter original TS packet, previous original TS
Packet is the corresponding original TS packet of TS packet after the editor;
Transmission unit, for according to the packet of the previous original TS packet is long and the transmission time interval, to user side
Transmit the previous original TS packet.
In described device, the transmission unit is specifically used for:
Packet according to the transmission time interval and the previous original TS packet is long, calculates and sends the previous original TS
Average duration needed for each byte in packet;
According to the average duration, each byte in the previous original TS packet is transmitted, until the previous original TS
The last byte of packet is transmitted.
In described device, the transmission unit is also used to:
Determine that the previous original TS packet is transmitted, and/or, it determines and reaches the transmission time interval, start to institute
It states user side and transmits the latter original TS packet.
Using the transmission method and device of transport stream TS provided in an embodiment of the present invention, first is had the advantages that
The packet length that equipment passes through the transmission time interval and previous T S packet that will send two adjacent TS packets is edited into previous T S packet
Position before packet header, without in original TS packet code rate and interval be modified, ensure that rear end equipment can receive
Normal TS packet, in addition, the transmission time interval and packet edited in TS packet after editor are long for guaranteeing that the second equipment accurately will
Original TS packet is transmitted to user side;Since the packet long message of transmission time interval and original TS packet has been edited into original TS packet
Before packet header, therefore, the second equipment, completely can be according to after the packet for parsing transmission time interval and original TS packet is long
Transmission time interval then reads and sends the data in original TS packet, not will cause the transmission delay of TS stream.
Detailed description of the invention
Fig. 1 is the flow diagram of the transmission method of the transport stream of the first equipment provided in an embodiment of the present invention side;
Fig. 2 is the method flow of the transmission time interval of two adjacent original TS packets of determination provided in an embodiment of the present invention
Schematic diagram;
Fig. 3 is that provided in an embodiment of the present invention calculate sends average duration needed for each byte in previous original TS packet
Method flow schematic diagram;
Fig. 4 is the flow diagram of the transmission method of the transport stream of the second equipment provided in an embodiment of the present invention side;
Fig. 5 is the method flow schematic diagram provided in an embodiment of the present invention that original TS packet is transmitted to user side;
Fig. 6 is the transmitting device structural schematic diagram for the transport stream that one embodiment of the invention provides;
Fig. 7 be another embodiment of the present invention provides transport stream transmitting device structural schematic diagram.
Specific embodiment
The transmission method of transport stream TS provided by the invention is described in more detail with reference to the accompanying drawings and examples.
The embodiment of the present invention provides a kind of transmission method of transport stream TS, as shown in Figure 1, comprising:
Step 101, the first equipment determines the transmission time interval of two original TS packets adjacent in the TS stream of current cache.
Wherein, original TS packet is the TS packet without any editor or change, and the first equipment can be headend equipment, TS stream
It is formed by many length for the arrangement of the TS packet of 188 bytes or 204 bytes.
When it is implemented, the first equipment caches TS stream, and determine the sending time of two adjacent original TS packets
It is spaced pkt_cnt, i.e. since the first equipment receive time latter original TS packet start to receive previous original TS packet to
Interval.The original TS packet of adjacent two is to send or receive two adjacent original TS packets of sequence.
Step 102, the first equipment is at least long and described by the packet of previous original TS packet in two adjacent TS packets
Transmission time interval is before being edited into the packet header of the previous original TS packet and adjacent with the packet header of the previous original TS packet
Position, TS packet after being edited.
Wherein, the packet of the transmission time interval and previous original TS packet length occupies the first preset number word altogether
Section.That is, editing transmission time interval before the packet header of original TS packet and in the first preset number byte adjacent with packet header
And the packet of the original TS packet is long.TS packet is the TS packet of privately owned definition after editor herein.
Step 103, when the first equipment determines the transmission sequence for reaching the previous original TS packet, by the edited TS
Packet is transmitted to the second equipment by transmission network.
When it is implemented, the second equipment is rear end equipment, TS stream is transmitted to user side by rear end equipment.Each TS packet in TS stream
According to certain sequential delivery, when reaching the transmission sequence of the previous original TS packet, by the corresponding volume of the previous original TS packet
TS packet is transmitted to the second equipment by transmission network after volume.Wherein, each TS packet can be cached according to the first equipment in the TS stream of caching
The chronological order of each TS packet is transmitted, i.e., each TS packet cached in the first equipment of sequential delivery in the way of first in first out.
The embodiment of the present invention, the first equipment pass through the transmission time interval and previous T S that will send two adjacent TS packets
The long position being edited into before the packet header of previous T S packet of the packet of packet, without being carried out more to the code rate in original TS packet with interval
Change, be modified without the content to original TS packet, and then ensure that rear end equipment can receive normal TS packet, this
Outside, the transmission time interval and packet edited in TS packet after editor are long for guaranteeing that original TS packet is accurately transmitted to by the second equipment
User side.
Preferably, the transmission time interval for determining two original TS packets adjacent in the TS stream of current cache, such as Fig. 2 institute
Show, specifically include:
Step 201, record starts to receive the first time stamp of the previous original TS packet.
Specifically, determining the timestamp for receiving the first character section in packet header of the previous original TS packet at the first time
Stamp.
Step 202, record starts to receive the second timestamp of latter original TS packet in two adjacent original TS packets.
Specifically, determining that the timestamp for receiving the first character section in packet header of the latter original TS packet was the second time
Stamp.
Step 203, by first time stamp and the absolute value of the difference of second timestamp, as described adjacent two
The transmission time interval of a original TS packet.
When it is implemented, utilizing local 27M clock, the timing since the packet header of previous original TS packet, until next original TS
The packet header of packet stops timing, obtains the transmission time interval of the original TS packet of adjacent two, this transmission time interval is physics
Time interval.
Preferably, average duration needed for each byte in the previous original TS packet can will be also sent, is edited into described
Before the packet header of the previous original TS packet and position adjacent with the packet header of the previous original TS packet.The transmission time interval,
The packet of the previous original TS packet is grown and sends average duration needed for each byte in the previous original TS packet to be occupied altogether
Second preset number byte.
When it is implemented, the content that can be provided according to Fig. 3, calculates and sends in the previous original TS packet needed for each byte
Average duration ena_cnt:
Step 301, calculate the transmission time interval divided by the long resulting quotient of packet of the previous original TS packet and
Remainder.
Wherein, the long pkt_len of packet of the TS packet before a length of editor of packet of previous original TS packet.
Step 302, judge whether the remainder is less than half of packet length of the previous original TS packet, if so, executing step
Rapid 303, otherwise, execute step 304.
Step 303, using the quotient resulting result that subtracts one as sending each byte institute in the previous original TS packet
The average duration needed.
Step 304, using the quotient as average duration needed for each byte in the transmission previous original TS packet.
Illustrate, it is assumed that the packet header of original TS packet be " 8 ' h47 ", the embodiment of the present invention by pkt_cnt, ena_cnt with
And pkt_len is edited into the position before packet header " 8 ' h47 ", the format of edited TS packet is as follows:
{ 6'h16, pkt_len } | ena_cnt [15:8] | ena_cnt [7:0] | pkt_cnt [23:16] | pkt_cnt [15:
8]|pkt_cnt[7:0]|47|00|3a
Wherein, " 6 ' h16 " is the packet header of edited TS packet;" 47 " are the packet header of original TS packet;Pkt_len is original TS
The packet of packet is long, can indicate that the TS packet of 204 bytes, 0 ' b1 indicate the TS packet of 188 bytes with 1 ' b1;Ena_cnt [15:0] indicates hair
Give average duration needed for each byte in the original TS packet;Pkt_cnt [23:0] indicates the hair of two adjacent original TS packets
Send time interval.As it can be seen that the position before the packet header of original TS packet inserts certain amount using example of the embodiment of the present invention
The information of byte, and the content and structure of the byte data in original TS packet are without any changes.
The format of edited TS packet can be with are as follows:
Dat:{ 6'h16, pkt_len, spec_pkt } | ena_cnt [15:8] | ena_cnt [7:0] | pkt_cnt [23:
16]|pkt_cnt[15:8]|pkt_cnt[7:0]|47|00|3a
Wherein, the spec_pkt newly increased is that the packet of the special empty packet of addition is long.It is that will not add sky packet under normal circumstances
, under certain special or abnormal conditions, before flowed for a long time without TS when inputting, can be carried out at protection by the empty packet of addition
Reason.
It is the explanation that the transmission method to transport stream TS provided in an embodiment of the present invention based on the first equipment carries out above,
It is illustrated below based on transmission method of second equipment to transport stream TS provided in an embodiment of the present invention.
The embodiment of the present invention provides a kind of transmission method of transport stream TS, as shown in Figure 4, comprising:
Step 401, the second equipment receives and caches TS packet after the editor that the first equipment is transmitted by transmission network, the volume
Before the packet header of the TS packet and position adjacent with the packet header, which is edited, after volume has the packet of previous original TS packet long, and, it is previous original
The transmission time interval of TS packet and latter original TS packet, wherein previous original TS packet is adjacent with latter original TS packet, previous original
TS packet is the corresponding original TS packet of TS packet after the editor.
When it is implemented, the information after the second equipment parsing editor in TS packet before the packet header of original TS packet, is edited
The packet length and transmission time interval carried in TS packet afterwards.Wherein, the second equipment is after caching the editor before TS packet, to the volume
TS packet synchronizes processing after volume, and sync header is the packet header of TS packet after editor at this time, i.e., above-mentioned " 6 ' h16 ", synchronous package is a length of
Length shared by the long information added before being edited into original TS packet packet header of the long i.e. original TS packet of the packet of TS packet after editor, specifically
The method of synchronization can refer to the existing method of synchronization, be not detailed here.
Step 402, the second equipment is according to the packet length of the previous original TS packet and the transmission time interval, to user
Transmit the previous original TS packet in side.
The embodiment of the present invention, since the packet long message of transmission time interval and original TS packet has been edited into original TS packet
It, therefore, completely can be according to sending time after the packet for parsing transmission time interval and original TS packet is long before packet header
The data in original TS packet are then read and send at interval, not will cause the transmission delay of TS stream.
Preferably, according to the packet of previous original TS packet length and the transmission time interval, institute is transmitted to user side
Previous original TS packet is stated, as shown in figure 5, specifically including:
Step 501, the packet according to the transmission time interval and the previous original TS packet is long, before calculating transmission is described
Average duration needed for each byte in one original TS packet.
Step 502, according to the average duration, each byte in the previous original TS packet is transmitted, before described
The last byte of one original TS packet is transmitted.
When it is implemented, the second equipment is all made of local 27M clock and is counted in parsing, reading and transmission TS packet
When control, to guarantee the consistency at data transmission time interval.
In the embodiment of the present invention, average duration is alternatively referred to as average time interval, in the specific implementation, will be between average time
Every all subtracting 1, such second equipment can receive a TS packet when receiving the TS packet that the first equipment is sent in advance, when sending
Between be spaced reach when, so that it may continue to next TS packet.
Preferably, determine that the previous original TS packet is transmitted, and/or, it determines and reaches the transmission time interval, open
Begin to transmit the original TS packet to the user side.
When it is implemented, if transmission time interval has arrived at, but previous original TS packet is not transmitted, then etc.
After previous T S packet is transmitted, then start to transmit the latter original TS packet to the user side.It can guarantee TS in this way
The completion of bag data transmission.
Based on inventive concept same as the transport stream transmission method of the first equipment side, the embodiment of the present invention also provides one kind
The transmitting device of transport stream TS, as shown in Figure 6, comprising:
Determination unit 601, for determine the TS of current cache flow in adjacent two original TS packets transmission time interval;
Edit cell 602, at least by the packet of previous original TS packet in two adjacent original TS packets it is long and
The transmission time interval is edited into the packet header of the previous original TS packet before and the packet header phase with the previous original TS packet
Adjacent position, TS packet after being edited;
Transmission unit 603, when for determining the transmission sequence for reaching the previous original TS packet, by the edited TS
Packet is transmitted to the second equipment by transmission network.
Preferably, in described device, the determination unit is specifically used for:
Record starts to receive the first time stamp of the previous original TS packet;
Record starts to receive the second timestamp of latter original TS packet in two adjacent original TS packets;
By the absolute value of the difference of first time stamp and second timestamp, as two adjacent original TS
The transmission time interval of packet.
Preferably, in described device, the edit cell is also used to:
Average duration needed for each byte in the previous original TS packet will be sent, the previous original TS packet is edited into
Packet header before and the position adjacent with the packet header of the previous original TS packet.
Preferably, in described device, it is described previous original that the edit cell is also used to calculate transmission in the following way
Average duration needed for each byte in TS packet:
The transmission time interval is calculated divided by the long resulting quotient of packet and remainder of the previous original TS packet;
When determining that the remainder is less than half of the previous original TS packet and wraps long, by the quotient resulting result that subtracts one
As average duration needed for each byte in the transmission previous original TS packet;
When determining that the remainder is long not less than half of packet of the previous original TS packet, using the quotient as described in transmission
Average duration needed for each byte in previous original TS packet.
Based on inventive concept same as the transport stream transmission method of the second equipment side, the embodiment of the present invention also provides one kind
The transmitting device of transport stream TS, as shown in fig. 7, comprises:
Receiving unit 701, TS packet after the editor transmitted by transmission network for receiving and cache the first equipment, the volume
Before the packet header of the TS packet and position adjacent with the packet header, which is edited, after volume has the packet of previous original TS packet long, and, it is previous original
The transmission time interval of TS packet and latter original TS packet, wherein previous original TS packet is adjacent with latter original TS packet, previous original
TS packet is the corresponding original TS packet of TS packet after the editor;
Transmission unit 702, for according to the packet of the previous original TS packet is long and the transmission time interval, to user
Transmit the previous original TS packet in side.
Preferably, in described device, the transmission unit is specifically used for:
Packet according to the transmission time interval and the previous original TS packet is long, calculates and sends the previous original TS
Average duration needed for each byte in packet;
According to the average duration, each byte in the previous original TS packet is transmitted, until the previous original TS
The last byte of packet is transmitted.
Preferably, in described device, the transmission unit is also used to:
Determine that the previous original TS packet is transmitted, and/or, it determines and reaches the transmission time interval, start to institute
It states user side and transmits the latter original TS packet.
Using the transmission method and device of transport stream TS provided in an embodiment of the present invention, first is had the advantages that
The packet length that equipment passes through the transmission time interval and previous T S packet that will send two adjacent TS packets is edited into previous T S packet
Position before packet header, without in original TS packet code rate and interval and structure be modified, ensure that rear end equipment can
Normal TS packet is received, in addition, the transmission time interval and packet edited in TS packet after editor are long for guaranteeing that the second equipment is quasi-
True is transmitted to user side for original TS packet;Due to the packet long message of transmission time interval and original TS packet be edited into it is original
Before the packet header of TS packet, therefore, the second equipment completely may be used after the packet for parsing transmission time interval and original TS packet is long
The data in original TS packet are then read and sent according to transmission time interval, the transmission delay of TS stream not will cause.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (14)
1. a kind of transmission method of transport stream TS characterized by comprising
First equipment determines the transmission time interval of two original TS packets adjacent in the TS stream of current cache;
First equipment is at least by the packet length and the sending time of previous original TS packet in two adjacent original TS packets
Interval is edited into the packet header of the previous original TS packet before and the position adjacent with the packet header of the previous original TS packet, obtains
TS packet after to editor;
When first equipment determines the transmission sequence for reaching the previous original TS packet, the edited TS packet is passed through into transmission network
Network is transmitted to the second equipment.
2. the method as described in claim 1, which is characterized in that determine two original TS packets adjacent in the TS stream of current cache
Transmission time interval, specifically include:
Record starts to receive the first time stamp of the previous original TS packet;
Record starts to receive the second timestamp of latter original TS packet in two adjacent original TS packets;
By the absolute value of the difference of first time stamp and second timestamp, as two adjacent original TS packets
Transmission time interval.
3. the method as described in claim 1, which is characterized in that further include:
Average duration needed for each byte in the previous original TS packet will be sent, the packet of the previous original TS packet is edited into
Before the head and position adjacent with the packet header of the previous original TS packet.
4. method as claimed in claim 3, which is characterized in that calculate and send in the previous original TS packet needed for each byte
Average duration, specifically include:
The transmission time interval is calculated divided by the long resulting quotient of packet and remainder of the previous original TS packet;
When determining that the remainder is less than half of the previous original TS packet and wraps long, using the quotient resulting result that subtracts one as
Send average duration needed for each byte in the previous original TS packet;
It is when determining that the remainder is long not less than half of packet of the previous original TS packet, the quotient is described previous as sending
Average duration needed for each byte in original TS packet.
5. a kind of transmission method of transport stream TS characterized by comprising
Second equipment receives and caches TS packet after the editor that the first equipment is transmitted by transmission network, after the editor in TS packet
Before the packet header of previous original TS packet and the position editor adjacent with the packet header has the packet of previous original TS packet long, and, it is previous
The transmission time interval of original TS packet and latter original TS packet, wherein previous original TS packet is adjacent with latter original TS packet, previous
Original TS packet is the corresponding original TS packet of TS packet after the editor;
Second equipment according to the packet of the previous original TS packet is long and the transmission time interval, to user side transmission it is described before
One original TS packet.
6. method as claimed in claim 5, which is characterized in that according to the packet of previous original TS packet length and the transmission
Time interval is transmitted the previous original TS packet to user side, is specifically included:
Packet according to the transmission time interval and the previous original TS packet is long, calculates and sends in the previous original TS packet
Average duration needed for each byte;
According to the average duration, each byte in the previous original TS packet is transmitted, until the previous original TS packet
The last byte is transmitted.
7. method as claimed in claim 5, which is characterized in that further include:
Determine that the previous original TS packet is transmitted, and/or, it determines and reaches the transmission time interval, start to the use
Transmit the latter original TS packet in family side.
8. a kind of transmitting device of transport stream TS characterized by comprising
Determination unit, for determine the TS of current cache flow in adjacent two original TS packets transmission time interval;
Edit cell, at least by the packet length and the transmission of previous original TS packet in two adjacent original TS packets
Time interval is edited into the packet header of the previous original TS packet before and the position adjacent with the packet header of the previous original TS packet
It sets, TS packet after being edited;
Transmission unit passes through the edited TS packet when for determining the transmission sequence for reaching the previous original TS packet
Transmission network is transmitted to the second equipment.
9. device as claimed in claim 8, which is characterized in that the determination unit is specifically used for:
Record starts to receive the first time stamp of the previous original TS packet;
Record starts to receive the second timestamp of latter original TS packet in two adjacent original TS packets;
By the absolute value of the difference of first time stamp and second timestamp, as two adjacent original TS packets
Transmission time interval.
10. device as claimed in claim 8, which is characterized in that the edit cell is also used to:
Average duration needed for each byte in the previous original TS packet will be sent, the packet of the previous original TS packet is edited into
Before the head and position adjacent with the packet header of the previous original TS packet.
11. device as claimed in claim 10, which is characterized in that the edit cell is also used to calculate hair in the following way
Send average duration needed for each byte in the previous original TS packet:
The transmission time interval is calculated divided by the long resulting quotient of packet and remainder of the previous original TS packet;
When determining that the remainder is less than half of the previous original TS packet and wraps long, using the quotient resulting result that subtracts one as
Send average duration needed for each byte in the previous original TS packet;
It is when determining that the remainder is long not less than half of packet of the previous original TS packet, the quotient is described previous as sending
Average duration needed for each byte in original TS packet.
12. a kind of transmitting device of transport stream TS characterized by comprising
Receiving unit, TS packet after the editor transmitted by transmission network for receiving and cache the first equipment, TS after the editor
Before the packet header of previous original TS packet in packet and the position editor adjacent with the packet header has the packet of previous original TS packet long, with
And the transmission time interval of previous original TS packet and latter original TS packet, wherein previous original TS packet and latter original TS packet phase
Neighbour, previous original TS packet are the corresponding original TS packet of TS packet after the editor;
Transmission unit, for being transmitted to user side according to the packet length of the previous original TS packet and the transmission time interval
The previous original TS packet.
13. device as claimed in claim 12, which is characterized in that the transmission unit is specifically used for:
Packet according to the transmission time interval and the previous original TS packet is long, calculates and sends in the previous original TS packet
Average duration needed for each byte;
According to the average duration, each byte in the previous original TS packet is transmitted, until the previous original TS packet
The last byte is transmitted.
14. device as claimed in claim 12, which is characterized in that the transmission unit is also used to:
Determine that the previous original TS packet is transmitted, and/or, it determines and reaches the transmission time interval, start to the use
Transmit the latter original TS packet in family side.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611054569.1A CN106534896B (en) | 2016-11-25 | 2016-11-25 | A kind of transmission method and device of transport stream TS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611054569.1A CN106534896B (en) | 2016-11-25 | 2016-11-25 | A kind of transmission method and device of transport stream TS |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106534896A CN106534896A (en) | 2017-03-22 |
CN106534896B true CN106534896B (en) | 2019-06-18 |
Family
ID=58357977
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611054569.1A Active CN106534896B (en) | 2016-11-25 | 2016-11-25 | A kind of transmission method and device of transport stream TS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106534896B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116506077B (en) * | 2023-06-28 | 2023-10-20 | 微网优联科技(成都)有限公司 | Signal processing method and XPON-based communication system |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4429405A (en) * | 1980-12-08 | 1984-01-31 | International Business Machines Corp. | Method of transmitting information between stations attached to a unidirectional transmission ring |
CN101422039A (en) * | 2006-06-16 | 2009-04-29 | 三星电子株式会社 | Transmission stream generating device for generating transmission stream which additional data is stuffed in a payload area of a packet,digital broadcast transmitting/receiving device for transmitting |
CN101646075A (en) * | 2008-08-06 | 2010-02-10 | 中兴通讯股份有限公司 | Device and method for adjusting code rate of multimedia code stream |
CN101710891A (en) * | 2009-12-01 | 2010-05-19 | 清华大学 | Method and device for generating frame synchronization sequence in digital communication system |
CN101789843A (en) * | 2009-12-29 | 2010-07-28 | 迈普通信技术股份有限公司 | Method for implementing multi-line E1 binding and network bridge |
CN201898583U (en) * | 2010-11-19 | 2011-07-13 | 成都凯腾四方数字广播电视设备有限公司 | TS code stream transmission system |
CN102595253A (en) * | 2011-01-11 | 2012-07-18 | 中兴通讯股份有限公司 | Method and system for smooth registration of transport stream |
CN103108214A (en) * | 2013-01-29 | 2013-05-15 | 辛欣 | Method for identifying test set (TS) packet with information in empty packet replacing process |
CN104038816A (en) * | 2014-06-20 | 2014-09-10 | 深圳市九洲电器有限公司 | Method and system for video synchronization |
CN104486637A (en) * | 2014-12-27 | 2015-04-01 | 西安交通大学 | Method for transmitting multichannel TS (transport stream) in single ASI (asynchronous serial interface) |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090119706A1 (en) * | 2005-12-16 | 2009-05-07 | Stepframe Media, Inc. | Generation and Delivery of Stepped-Frame Content Via MPEG Transport Streams |
US8391314B2 (en) * | 2009-09-21 | 2013-03-05 | Lg Electronics Inc. | Method and apparatus of processing digital broadcasting signal including transmission ensemble number fields in transmitter and receiver |
-
2016
- 2016-11-25 CN CN201611054569.1A patent/CN106534896B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4429405A (en) * | 1980-12-08 | 1984-01-31 | International Business Machines Corp. | Method of transmitting information between stations attached to a unidirectional transmission ring |
CN101422039A (en) * | 2006-06-16 | 2009-04-29 | 三星电子株式会社 | Transmission stream generating device for generating transmission stream which additional data is stuffed in a payload area of a packet,digital broadcast transmitting/receiving device for transmitting |
CN101646075A (en) * | 2008-08-06 | 2010-02-10 | 中兴通讯股份有限公司 | Device and method for adjusting code rate of multimedia code stream |
CN101710891A (en) * | 2009-12-01 | 2010-05-19 | 清华大学 | Method and device for generating frame synchronization sequence in digital communication system |
CN101789843A (en) * | 2009-12-29 | 2010-07-28 | 迈普通信技术股份有限公司 | Method for implementing multi-line E1 binding and network bridge |
CN201898583U (en) * | 2010-11-19 | 2011-07-13 | 成都凯腾四方数字广播电视设备有限公司 | TS code stream transmission system |
CN102595253A (en) * | 2011-01-11 | 2012-07-18 | 中兴通讯股份有限公司 | Method and system for smooth registration of transport stream |
CN103108214A (en) * | 2013-01-29 | 2013-05-15 | 辛欣 | Method for identifying test set (TS) packet with information in empty packet replacing process |
CN104038816A (en) * | 2014-06-20 | 2014-09-10 | 深圳市九洲电器有限公司 | Method and system for video synchronization |
CN104486637A (en) * | 2014-12-27 | 2015-04-01 | 西安交通大学 | Method for transmitting multichannel TS (transport stream) in single ASI (asynchronous serial interface) |
Non-Patent Citations (2)
Title |
---|
MPEG- 2 传输流复用时码速率的控制方法;王剑雄,等.;《福建电脑》;20071231(第7期);全文 |
基于TS流的数字电视播出系统的研究与实现;李叶;《中国研究生优秀硕士论文库》;20150531;全文 |
Also Published As
Publication number | Publication date |
---|---|
CN106534896A (en) | 2017-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104125429B (en) | The adjusting method and device of video data transmission | |
US6345122B1 (en) | Compressed picture data editing apparatus and method | |
CN106134208B (en) | Send equipment, sending method, receiving device and method of reseptance | |
ITTO941065A1 (en) | DECODER FOR AUDIO SIGNALS BELONGING TO COMPRESSED AND CODED AUDIO-VISUAL SEQUENCES. | |
CN102868680B (en) | Broadcast transport stream distribution system, broadcast transport stream distribution apparatus and distribution method for use in the system | |
CN108155982B (en) | Timestamp processing method and device | |
CN107995503B (en) | Audio and video playing method and device | |
CN104703054B (en) | Communicator and communication means | |
CN104079955A (en) | Method, device and system of OTT (Over The Top) live broadcast | |
CN114640886A (en) | Bandwidth-adaptive audio and video transmission method and device, computer equipment and medium | |
CN106534896B (en) | A kind of transmission method and device of transport stream TS | |
EP1883247A2 (en) | Digital transmission apparatus and methods | |
CN103986601B (en) | A kind of message transmissions time delay acquisition methods and device | |
CN110087116A (en) | Multi-rate live video stream editing method and device, terminal and storage medium | |
CN117255236A (en) | Audio and video synchronization method for digital visual intercom | |
CN110248205B (en) | Method and device for packing video recording data | |
US20110096775A1 (en) | System and method for multiplexing and streaming contents | |
CN103152607A (en) | Video superfast rough editing method | |
JP2011045076A (en) | System and method for detection of multiple timing masters in network | |
US20050041661A1 (en) | PCR timing control in variable bit rate (VBR) transport streams | |
CN203327182U (en) | Network set-top box pcr correction processing system | |
CN104954814B (en) | Communicator, storage medium, communication means and information processor | |
CN103746970A (en) | Self-adaptive multiprotocol EOP realization method and apparatus | |
CN107613320B (en) | A kind of slotting packet control method and system of transmission flow multiplex | |
CN103391453A (en) | PCR (Program Clock Reference) correction processing system and method of network set-top box |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |