CN1466386A - Remultiplexing method for MPEG-2 transmission stream - Google Patents
Remultiplexing method for MPEG-2 transmission stream Download PDFInfo
- Publication number
- CN1466386A CN1466386A CNA021124027A CN02112402A CN1466386A CN 1466386 A CN1466386 A CN 1466386A CN A021124027 A CNA021124027 A CN A021124027A CN 02112402 A CN02112402 A CN 02112402A CN 1466386 A CN1466386 A CN 1466386A
- 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.)
- Granted
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
A remultiplex method for a MPEG-2 transfer stream includes: setting up a look-up which has 8192 items corresponding to each channel received MPEG-2 transfer stream, item x(0<=x<=8191)corresponds to a data packet with x as the carried PID received from the said transfer stream, in which information A, B, C, contained in each item extract PID field of the received data packet head one by one to fetch the related look-up items according to the PID field then to process the data packets separately in terms of information of the items, increasing the process ability of the multiplexer and realizing multioutput transferring stream.
Description
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 packets (TS bag) that carry those grouping labels (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 transmission stream packets that should list item, and field (I+1) shows that this packet is inserted into the PID value that output transmits the back heart in the stream; 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.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 I (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;
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; 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.
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 true CN1466386A (en) | 2004-01-07 |
CN100359950C 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) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111263197A (en) * | 2015-01-09 | 2020-06-09 | 三星电子株式会社 | Transmitting apparatus and signal processing method thereof |
US11700200B2 (en) | 2015-01-09 | 2023-07-11 | Samsung Electronics Co., Ltd. | Transmitting apparatus and signal processing method using removal of transport steam packet header |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5835493A (en) * | 1996-01-02 | 1998-11-10 | Divicom, Inc. | MPEG transport stream remultiplexer |
AU2001273897A1 (en) * | 2000-03-23 | 2001-10-03 | Thomson Multimedia | A system and a process for reconstructing programs from an input transport stream and a corresponding digital receiver |
KR100555658B1 (en) * | 2000-09-11 | 2006-03-03 | 마츠시타 덴끼 산교 가부시키가이샤 | Stream decoder |
-
2002
- 2002-07-02 CN CNB021124027A patent/CN100359950C/en not_active Expired - Fee Related
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111263197A (en) * | 2015-01-09 | 2020-06-09 | 三星电子株式会社 | Transmitting apparatus and signal processing method thereof |
CN111263197B (en) * | 2015-01-09 | 2021-11-23 | 三星电子株式会社 | Transmitting apparatus and signal processing method thereof |
US11700200B2 (en) | 2015-01-09 | 2023-07-11 | Samsung Electronics Co., Ltd. | Transmitting apparatus and signal processing method using removal of transport steam packet header |
Also Published As
Publication number | Publication date |
---|---|
CN100359950C (en) | 2008-01-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1190917C (en) | Transmission stream multipass shunting device | |
US20190182519A1 (en) | Method and apparatus for decoding metadata including multiple segments of an audiovisual stream | |
CN101485152B (en) | Method, system, and computer program product for resequencing of high performance binding | |
EP1475702A3 (en) | Method and apparatus for converting digital content metadata and network system using the same | |
EP1148727A1 (en) | Method and device for decoding a digital video stream in a digital video system using dummy header insertion | |
EP1265159A3 (en) | System and method of providing a data structure | |
WO2002019249A3 (en) | System and method for intelligent buffering and bandwidth allocation | |
CN1171444C (en) | Apparatus and method for transporting information about broadcast programs | |
EP1387549A3 (en) | A system for distributing objects to multiple clients | |
EP1126388A3 (en) | System and Method for content-based multimedia retrieval | |
CN1681249A (en) | Asynchronous data segmentation/transmission method for synchronous Ethernet and data structure used therein | |
EP0933949B1 (en) | Transmitting system, transmitting apparatus, recording and reproducing apparatus | |
CN101393760A (en) | After-recording apparatus and reproduction apparatus and method | |
CN1466386A (en) | Remultiplexing method for MPEG-2 transmission stream | |
CN101426142B (en) | Transmission stream remultiplexing method | |
EP1519587A3 (en) | Apparatus and method for providing high speed download service of multimedia contents | |
US20040179509A1 (en) | System and method for re-multiplexing multiple video streams | |
CN1319287A (en) | Spreader for multiple data rates | |
EP1199897A3 (en) | Method and device for storing stream data such as digital video and non-stream data | |
CN101540899B (en) | I frame resolution method and I frame resolver in streaming media system | |
MXPA01008570A (en) | Communication system, transmitter, receiver, and method using a data storage descriptor. | |
GB0505444D0 (en) | Multimedia file format | |
EP1045564A1 (en) | Data source and data sink | |
CN1466385A (en) | Real time receiving and sxtorage method for video signal conference stream medium | |
CN1960509A (en) | Method for implementing fault isolation in time of transferring media data of mobile multimedia broadcast |
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 |