CN100359950C - Remultiplexing method for MPEG-2 transmission stream - Google Patents

Remultiplexing method for MPEG-2 transmission stream Download PDF

Info

Publication number
CN100359950C
CN100359950C CNB021124027A CN02112402A CN100359950C CN 100359950 C CN100359950 C CN 100359950C CN B021124027 A CNB021124027 A CN B021124027A CN 02112402 A CN02112402 A CN 02112402A CN 100359950 C CN100359950 C CN 100359950C
Authority
CN
China
Prior art keywords
packet
information
stream
output
mpeg
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.)
Expired - Fee Related
Application number
CNB021124027A
Other languages
Chinese (zh)
Other versions
CN1466386A (en
Inventor
李斌
李晖
刘衍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CNB021124027A priority Critical patent/CN100359950C/en
Publication of CN1466386A publication Critical patent/CN1466386A/en
Application granted granted Critical
Publication of CN100359950C publication Critical patent/CN100359950C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention relates to a multiplexing method of moving picture expert group-2 transport streams, particularly to a multiplexing technique of MPEG-2 transport streams. The method comprises the steps that a lookup table is established; the lookup table, corresponding to MPEG-2 transport streams received by each path, has 8192 table items; the table items x (0</=x</=8191), corresponding to carried PID received from the transport stream of the path, are data packets of x; each table item contains information A, B, C; PID fields of packet heads of received data packets are extracted one by one; the corresponding table items in the lookup table are read according to the PID fields of the data packets; the data packets are respectively processed according to the information of the table items. The present invention has the advantages that the processing capacity of multiplexing devices can be enhanced, and a plurality of output transport streams can be realized.

Description

Remultiplexing method for MPEG-2 transmission stream
Technical field
The invention belongs to motion image expert group 2 (MPEG-2) code stream transmission field, be specifically related to the MPEG-2 transmission and flow multiplex technique again.
Background technology
Be to realize that MPEG-2 transmits the transmission of stream on network, using MEPG-2 to transmit that transmission stream packets that the stream re-multiplexer transmits the part or all of program in the stream with multichannel MPEG-2 reconfigures usually is that a new MPEG-2 transmits stream in transmission over networks.
According to the program specific information (PSI) in the MPEG-2 transmission stream of each reception, MPEG-2 transmits the stream re-multiplexer can know wherein include which program.The user can select part or all of program to be reassembled into new transmission stream output then.According to PSI information, multiplexer can determine that these selecteed programs are made up of the transport stream packet packet (TS bag) that carries which grouping label (PID), thereby multiplexer can further determine need be from flow during the transmission that is inserted into output of the extraction packet that carries which PID flows by the transmission that receives.
When from the transmission stream packets that receives, extracting packet, normally from the transmission stream packets that receives, extract the PID field, compare one by one with the pid value of above-mentioned definite permission output, as mate, then this packet is extracted and exports, otherwise abandons.The method of this extraction packet need compare the PID field of each packet of receiving with each selected pid value, mate or all do not match up to taking place, and relatively expends cpu resource, influences the disposal ability of multiplexer.
Above-mentioned MPEG-2 transmits the stream re-multiplexer and has following two defectives: 1, bag extracting method efficient is low.2, have only the MPEG-2 of an output to transmit stream.
U.S. Pat 5835493 " MPEG transport stream remultiplexer " discloses the technical scheme that a kind of MPEG-2 transmits the stream re-multiplexer.According to this scheme, can receive multichannel MPEG-2 and transmit stream, therefrom extract multi-channel program and carry out again multiplexingly, reconfiguring is that a new MPEG-2 transmits stream output.
The MPEG-2 that this invention is described transmits in the stream re-multiplexer and is described to: " according to the PID field of packet, extract packet from the transmission stream that receives, and the packet that is extracted is inserted in the transmission stream of output." but this invention does not provide concrete bag extracting method, and described multiplexer also has only the MPEG-2 of an output to transmit stream.
Summary of the invention
Technical problem to be solved by this invention overcomes the existing in prior technology shortcoming, propose a kind of efficiently, the MPEG-2 of multichannel output transmits the stream remultiplexing method.
The present invention proposes MPEG-2 transmission stream remultiplexing method and may further comprise the steps:
The first step, set up a look-up table;
It is as follows that this searches structure: the MPEG-2 that the corresponding every road of this look-up table receives transmits stream all 8192 list items; The corresponding packet that PID is x that carries that transmits the stream reception from this road of list item x (0≤x≤8191); Wherein, the information that each list item comprised has:
Information A: to show which output port is this packets need output to and whether this packet needs to store in the system storage;
Information B: this information has been stored a pid value for each output transmits stream, shows that this packet is inserted into the PID field value after each output transmits in the stream;
Information C: if this packets need stores in the system storage, this information shows the memory address of this packet;
Second goes on foot, extracts one by one the PID field that receives packet packet header;
The 3rd step, according to the PID field of this packet, read corresponding look-up table list item; Divide following processing according to the information of list item to this packet again:
1. judge according to information A which output is this packets need be inserted into and transmit in the stream;
2. insert the respectively output transmission stream of this packet for needs, the PID field with this packet one by one is revised as the pid value of preserving for correspondence output transmission stream among the information B, during the output that then this packet is inserted into correspondence transmits and flows;
3. judge according to information A whether needs store in the system storage this packet,, forwarded for second step to if do not need storage;
4. if this packets need is stored, this packet is stored into the address of information C appointment; Forwarded for second step to.
It is fairly simple that the MPEG-2 based on look-up table that the present invention proposes transmits the stream remultiplexing method, is easy to realize.Can judge fast that a MPEG-2 transport stream packet need output in the MPEG-2 transmission stream of which output, thereby save cpu resource, improve the disposal ability of multiplexer, can realize the transmission stream of a plurality of outputs.
Description of drawings
Fig. 1 is the flow chart of the method for the invention.
Fig. 2 is the structure chart of the look-up table of the above-mentioned embodiment of the present invention;
Fig. 3 is the structure chart of a list item of look-up table among Fig. 2;
Fig. 4 is a flow chart of handling a transmission stream packets that receives.
Embodiment
Below in conjunction with drawings and Examples technical scheme of the present invention is described in further detail:
Referring to Fig. 1, going into the 8 transmission stream re-multiplexers that go out with one 16 is example, and multiplexing method of the present invention is done specific descriptions:
The first step is set up a look-up table.
The structure of look-up table is as shown in Figure 2: this look-up table is that each receives each the possible PID that transmits stream and distributes a look-up table list item.In MPEG-2 TS bag, the PID field length is 13 bits, and 8192 kinds of possible values can be arranged, and system has 16 to receive when transmitting stream, and look-up table list item number is 8192*16, i.e. list item (0)-list item (8192*16-1).
If the base address T_ADR_BASE of look-up table, look-up table list item length is T_ELE_LEN.From receive transmitting PID that stream (x) receives be like this for the address that the MPEG-2 TS of (y) wraps corresponding look-up table list item:
T_ADR_BASE+(8192*x+y)*T_ELE_LEN;(0≤x≤15,0≤y≤8191)。
Referring to Fig. 3, each list item of look-up table comprises 10 fields.Each field implication is as follows:
Field 0 has 9 significant bits, and each bit of this field and other 8 field implications are as follows:
Bit I (0≤I≤7) is 1, shows need be inserted among the transmission stream I of output to transmission stream packets that should list item, i.e. and information A, field (I+1) shows that this packet is inserted into the PID value that output transmits the back heart in the stream, i.e. information B; If bit I (0≤I≤7) is 0, show that corresponding packet does not need to be inserted into output and transmits among the stream I, field (I+1) content is meaningless.
Bit 8 is 1 to show and need store specified memory into to transmission stream packets that should list item that field 9 shows the memory address of this packet, i.e. information C.If bit 8 is 0 to show transmission stream packets that should list item is not needed to store in the memory block that field 9 contents are meaningless.
In second step, extract the PID field that receives in the packet packet header one by one.
The 3rd step, read the corresponding list item of searching according to PID, according to the information in the look-up table list item this packet is handled.Returned for second step.
This step is divided into 5 steps again, with reference to figure 4, specifically implements as follows:
1, reads look-up table list item field 0.
2,, returned for second step if field 0 is 0.
3, if field 0 the 1st (0≤I≤7) bit is 1, the PID field of replacing this packet with the pid value in the look-up table list item field (I+1), and this packet is inserted into output transmits and flow among the I.
4,, returned for second step if field 0 the 8th bit is 0
5 otherwise, store this packet into look-up table list item field 8 specified memory.Returned for second step.

Claims (1)

1, remultiplexing method for MPEG-2 transmission stream may further comprise the steps:
The first step, set up a look-up table;
This look-up table configuration is as follows: the MPEG-2 that the corresponding every road of this look-up table receives transmits stream all 8192 list items; List item x (0≤x≤8191) is corresponding transmit from this road that stream receives to carry the grouping label be the packet of x; Wherein, the information that each list item comprised has:
Information A: to show which output port is this packets need output to and whether this packet needs to store in the system storage;
Information B: this information has been stored a grouping index value for each output transmits stream, shows that this packet is inserted into the grouping label field value after each output transmits in the stream;
Information C: if this packets need stores in the system storage, this information shows the memory address of this packet;
Second goes on foot, extracts one by one the grouping label field that receives packet packet header;
The 3rd step, according to the grouping label field of this packet, read corresponding look-up table list item; Divide following processing according to the information of list item to this packet again:
1. judge according to information A which output is this packets need be inserted into and transmit in the stream;
2. insert the respectively output transmission stream of this packet for needs, the grouping label field with this packet one by one is revised as the grouping index value of preserving for correspondence output transmission stream among the information B, during the output that then this packet is inserted into correspondence transmits and flows;
3. judge according to information A whether needs store in the system storage this packet,, forwarded for second step to if do not need storage;
4. if this packets need is stored, this packet is stored into the address of information C appointment; Forwarded for second step to.
CNB021124027A 2002-07-02 2002-07-02 Remultiplexing method for MPEG-2 transmission stream Expired - Fee Related CN100359950C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021124027A CN100359950C (en) 2002-07-02 2002-07-02 Remultiplexing method for MPEG-2 transmission stream

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021124027A CN100359950C (en) 2002-07-02 2002-07-02 Remultiplexing method for MPEG-2 transmission stream

Publications (2)

Publication Number Publication Date
CN1466386A CN1466386A (en) 2004-01-07
CN100359950C true CN100359950C (en) 2008-01-02

Family

ID=34141902

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021124027A Expired - Fee Related CN100359950C (en) 2002-07-02 2002-07-02 Remultiplexing method for MPEG-2 transmission stream

Country Status (1)

Country Link
CN (1) CN100359950C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101800426B1 (en) * 2015-01-09 2017-11-23 삼성전자주식회사 Transmitting apparatus and receiving apparatus and signal processing method thereof
US11032194B2 (en) 2015-01-09 2021-06-08 Samsung Electronics Co., Ltd. Transmitting apparatus and signal processing method using removal of transport steam packet header

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6002687A (en) * 1996-01-02 1999-12-14 Divicon, Inc. MPEG transport stream remultiplexer
WO2001072044A1 (en) * 2000-03-23 2001-09-27 Thomson Licensing S.A. A system and a process for reconstructing programs from an input transport stream and a corresponding digital receiver
WO2002023776A1 (en) * 2000-09-11 2002-03-21 Matsushita Electric Industrial Co., Ltd. Stream decoder

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6002687A (en) * 1996-01-02 1999-12-14 Divicon, Inc. MPEG transport stream remultiplexer
WO2001072044A1 (en) * 2000-03-23 2001-09-27 Thomson Licensing S.A. A system and a process for reconstructing programs from an input transport stream and a corresponding digital receiver
WO2002023776A1 (en) * 2000-09-11 2002-03-21 Matsushita Electric Industrial Co., Ltd. Stream decoder

Also Published As

Publication number Publication date
CN1466386A (en) 2004-01-07

Similar Documents

Publication Publication Date Title
US20190182519A1 (en) Method and apparatus for decoding metadata including multiple segments of an audiovisual stream
CN1190917C (en) Transmission stream multipass shunting device
CN100382498C (en) Data transmission control method, data transmission method, data transmitter, and receiver
RU2292657C2 (en) Quantization of time on basis of clock impulses
EP1294139B1 (en) Method, apparatus and data structure enabling multiple channel data stream transmission
CN101485152B (en) Method, system, and computer program product for resequencing of high performance binding
CN100411339C (en) Asynchronous data segmentation/transmission method for synchronous Ethernet and data structure used therein
GB0103381D0 (en) Packet data recording method and system
TW350177B (en) Hybrid ATM adaptation layer
EP0933949B1 (en) Transmitting system, transmitting apparatus, recording and reproducing apparatus
US6944154B2 (en) System and method for remultiplexing of a filtered transport stream with new content in real-time
WO1998018245A2 (en) Transmission system with flexible frame structure
CN101426142B (en) Transmission stream remultiplexing method
CN100359950C (en) Remultiplexing method for MPEG-2 transmission stream
CN100416689C (en) Reproducing apparatus and method, and recording medium
US7308003B2 (en) System and method for re-multiplexing multiple video streams
US20050185676A1 (en) Multi access unit transport packetization method of MPEG4 sync layer packet and multi access unit transport packet
WO1998018246A2 (en) Transmission system with flexible frame structure
EP1274088A3 (en) Recording system for digital broadcasting
KR19980033123A (en) Radiation sensitive composition
US7577170B2 (en) System for the dynamic multiplexing of digital streams
MXPA01008570A (en) Communication system, transmitter, receiver, and method using a data storage descriptor.
EP1119217A3 (en) ATM connection band control method and system
US7423969B2 (en) Process for storing transmission units and a network communications device
JP2003078494A5 (en)

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080102

Termination date: 20140702

EXPY Termination of patent right or utility model