CN1909659A - Detecting method for tag basic code flow data packet of digital television - Google Patents
Detecting method for tag basic code flow data packet of digital television Download PDFInfo
- Publication number
- CN1909659A CN1909659A CN 200510028343 CN200510028343A CN1909659A CN 1909659 A CN1909659 A CN 1909659A CN 200510028343 CN200510028343 CN 200510028343 CN 200510028343 A CN200510028343 A CN 200510028343A CN 1909659 A CN1909659 A CN 1909659A
- Authority
- CN
- China
- Prior art keywords
- packet
- initialize mode
- pes
- stream
- elementary stream
- 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.)
- Pending
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to a basic encode stream data pack checking method with pack head in digit TV, wherein it comprises: receiving TS stream, judging if the PES data pack of TS stream is the first byte data pack initialize mode at one unit; if it is, recovering the initialize mode, and storing the first byte PES data pack; if it is not, judging if it is the continuous data pack received only after the first byte data pack; if it is not the initialize mode and continuous data pack, judging if it is discontinuous data pack; if it is not initialize mode and discontinuous data pack, confirming it as initialize mode and continuous data pack, and displaying one interrupt signal that ending one unit data pack storage. The invention detects the start and end of PES in TS stream and informs the user.
Description
Technical field
The invention of the relevant Digital Television of the present invention is meant the whole story of detecting PES in the TS stream and a kind of Digital Television PES (the Packetized Elementary Stream: the packet detection method elementary stream that packet header is arranged) that shows especially.
Background technology
At present, a lot of digital broadcastings that are suitable for the MPEG2 form are used 188 bytes transmission (TS) packet as the data stream format that transmits data.
Above-mentioned TS packet is made of 4 byte fixed-header (header) that comprise packet information and the payload (payload) that is equivalent to data.
The title of above-mentioned TS packet is to comprise the sync-byte as [table 1], 4 byte datas of payload_unit_indicator and continuity_counter.
[table 1]
Syntax | No.of bits | Mnemonic |
transport_packet(){ sync_byte transport_erro_indicator payload_unit_start_indicator transport_priority PID transport_scrambling_control adaptation_field_control continuity_counter if(adaptation_field_control=′10′or′11′){ adaptation_field () } if(adaptation_field_control=′01′or′11){ for(i=0;i<N;i++){ data_byte } } } | 8 1 1 13 2 2 4 1 1 8 | bslbf bslbf bslbf bslbf uimsbf bslbf bslbf bslbf bslbf bslbf bslbf |
The data payload that is actually used in decoding is by PES packet or PSI section (section), and exclusive data is formed one of in perhaps filling (stuffing) byte.
In most of system decoder, the payload portions of taking out except title division from the TS packet is sent to memory or audio/video decoder, make S/W (software: software) or audio/video decoder these data are decoded.
Fig. 1 is the schematic diagram of expression general T S flow data passage.
With reference to Fig. 1 explanation, TS stream is expression transmits data to A/V decoder 2 and memory 3 by system decoder 1 passage.
With the above-mentioned data instance to 2 transmission of A/V decoder, after A/V decoder 2 was decoded it, loud speaker 4 and the display 5 individual to each demonstration transmitted.
But to be stored in the data instance of memory 3, probably read these data by CPU (central processing unit), will decode by S/W.
Therefore, only inform the information such as interrupt signal of memory 3 with certain unit storage data, just can make S/W in due course between section read, and be used for decode procedure.
Fig. 2 is the schematic diagram of expression common PE S (elementary stream that packet header is arranged) data storing structure.The PES length that existing several different methods has used affirmation to be defined by PES, when storing this length data, data flow is through TS title parser, the method for informing S/W by interrupt signal.
This PES confirms need be for confirming the H/W (hardware: hardware) of length.In order when different memory stores a plurality of PES, must store the length that is equivalent to the PES kind that desire stores in addition, therefore have the shortcoming that H/W (hardware) increases.
Also have, the undefined PES of length can't confirm these, occurs mistake in the event data stream and continuity_counter skips default maximum 16, so only is confirmed to be with continuty_counter and can't finds error condition.Therefore, if at this moment confirm length, just exist to be absorbed in unpredictable state.
Summary of the invention
As mentioned above, the objective of the invention is to propose in order to solve above-mentioned prior art problem, after aiming to provide the elementary stream (PES) that stores packet header, detect the elementary stream packet detection method that packet header is arranged of holding and informing the Digital Television of software the whole story of PES by interrupt signal.
To achieve these goals, the elementary stream packet detection method that packet header is arranged of a kind of Digital Television of the present invention, as playing when the digital broadcasting, store the elementary stream payload that packet header is arranged in the TS stream, and inform that finishing a unit has the process of storage of elementary stream in packet header described, divide following step to constitute: to receive above-mentioned TS stream, judge whether the elementary stream packet that packet header is arranged in the TS stream is the step of an above-mentioned unit first byte data initialization packet pattern; According to above-mentioned judged result, if the initialize mode of unit first a byte data bag, just initialize mode is resetted, and store the elementary stream packet that unit first byte has packet header, if not initialize mode, just judge whether step into the continuity packet that receives after the first byte data bag and then; Above-mentioned judged result, neither initialize mode, neither the continuity packet, just be judged as and be not initialize mode, but discontinuity packet whether step; Above-mentioned judged result, neither initialize mode, neither the discontinuity packet, just being judged as with initialize mode and continuity packet is the step of the interrupt signal that stores of the packet of a unit.
Naturally, above-mentioned information is if not initialize mode, but the continuity packet just stores the elementary stream packet that packet header is arranged that receives.
Also have, if not initialize mode, but the discontinuity packet, the elementary stream packet of just abandoning receiving that packet header is arranged.
Effect of the present invention:
As mentioned above, the present invention has such effect, if the kind of the elementary stream that packet header is arranged (PES) that promptly will store is n, just can come with 2 bit Xn F.F, than calculating each the PES length that will store, and the number, 16 bit X of required F.F when storing, H/W can be reduced.
For further specifying above-mentioned purpose of the present invention, design feature and effect, the present invention is described in detail below with reference to accompanying drawing.
Description of drawings
Fig. 1 is the schematic diagram of expression general T S flow data passage.
Fig. 2 is the schematic diagram of expression common PE S data storing structure.
Fig. 3 is the flow chart of expression Digital Television PES packet detection method of the present invention.
Embodiment
Below with reference to accompanying drawings to the elementary stream packet that packet header is arranged of Digital Television of the present invention (hereinafter to be referred as: the PES packet) formation and the effect of detection method embodiment describe.
Fig. 3 is the flow chart of expression Digital Television PES packet detection method of the present invention.
When at first the present invention stores the PES payload,, not to calculate PES length, and confirm the payload_unit_start_indicator information and the continuity_counter value of TS packet header in order to detect the end at the whole story of certain PES of unit.
S11 at first, sets Digital Television with initialize mode.
S12, carry out above-mentioned setting after, receive the TS packet.
S13 judges whether the TS packet that is received is initialize mode.
Judge whether the TS packet that is received is initialize mode, judge exactly whether first byte of the TS packet PES payload that receives is start byte or the process that connects the subsequent byte of first byte.
S14, S15, S17, judged result among the above-mentioned S13, if PUSI (payload_unit_start_indicator) value is 1 (state 2), with regard to the reset initialization pattern, and the PES of storage corresponding data bag.
S16, in addition, judged result among the above-mentioned S13 if the PUSI value is not 1 (state 1), is just abandoned the PES of corresponding data bag.
S18, also have, above-mentioned S13 judged result, if not initialize mode, just mean that the PUSI value is the packet input that 1 PES once had start byte, and stored the PES start byte, therefore judge PUSI whether be ' 0 ' and ccnt_err (continuity_count ererror) whether be ' 0 '.
If above-mentioned ccnt_err is ' 0 ', just mean the PES packet and then first byte be transfused to successively, PUSI is ' 0 ', ccnt_err (continuity_counter error) is 0 (state 3), then, enter above-mentioned S17, store the PES packet of input.
S19, in addition, if above-mentioned PUSI is ' 0 ', ccnt_err (continuity_counter error) is not 0 o'clock, judges whether PUSI is ' 0 ', and whether ccnt_err (continuity_counter error) is ' 1 '.
S20, if PUSI is ' 0 ' in above-mentioned S19, ccnt_err (continuity_countererror) is ' 1 ' (state 4), just abandons the PES packet imported, and gets back to S11.
S21, in addition, above-mentioned S19 judged result, PUSI is ' 0 ', cnt_err (continuity_countererror) is not ' 1 ', just judges whether PUSI is ' 1 ', and whether ccnt_err (continuity_countererror) is ' 0 '.
S22, above-mentioned S21 judged result if PUSI is that ' 1 ' ccnt_err (continuity_counntererror) is ' 0 ' (state 5), just shows that expression has finished to store the interrupt signal information of a PES of unit, then, enters above-mentioned S17; If PUSI is ' 1 ', ccnt_err (continuity_counter error) is not ' 0 ' (state 6), just enters the first byte PES packet that above-mentioned S17 stores other unit.
As mentioned above, H/W of the present invention waits for the input of PUSI=' 1 ' in init state.
Above-mentioned PUSI means that first byte of PES payload is transmitted, therefore, detects the TS packet of PUSI=' 1 ', can begin to store from initial first byte of PES with this.
If the packet at initialize mode input PUSI=' 1 ' just resets to initialize mode, and store the PES of corresponding data bag.
After the initialization, the state that PUSI=' 1 ' detects the TS packet is the state 1,2 of Fig. 3.
Afterwards, in order to show that with interrupt signal a PES of unit has finished to store, then carry out state confirmation for the end of the continuous PES unit of the PES start byte that detects and store now.If not under the state of initialize mode, input TS information is with regard to affirmation state 3,4,5,6.
If not initialize mode just means the input that the TS of PUSI=' 1 ' packet has been arranged, and stored the start byte of PES.
The PES of PES was transfused to before state 3 expressions connected, and state 4 is payload errors of a unit in the middle of importing continuously in the process of PES, occurring, is to be judged as the state that has at least a PES not to be stored among the PES of a unit.
Therefore, in these cases, ignore input status, and, be set at initialize mode in order to search the TS packet of PUSI=' 1 ' again.
In addition, state 5 is for causing the state of interrupt signal, first byte of new PES is input to the available data bag, after the input of first byte, the mistake in computation storage does not appear in Shu Ru PES before, therefore a unit that is judged as the PES that former input is stored finishes, and shows these with interrupt signal.
Though state 6 is identical with state 4, continuous mistake in computation occurs, the available data bag has been PUSI=' 1 ', therefore need not set initialize mode, state before only resetting, and the PES of continuous TS packet imports after storing.
Also have, the initialize mode of setting need store with log-on message according to the PES classification that will store.Meanwhile, also will store the state of whether importing the packet of PUSI=' 1 ' with log-on message.
Those of ordinary skill in the art will be appreciated that, above embodiment is used for illustrating the present invention, and be not to be used as limitation of the invention, as long as in connotation scope of the present invention, all will drop in the scope of claims of the present invention variation, the modification of the above embodiment.
Claims (3)
1, a kind of elementary stream packet detection method that packet header is arranged of Digital Television, be when playing digital broadcasting, store the PES payload in the TS stream, show that a unit has the elementary stream in packet header to store the process of end, it is characterized in that described detection method divides following step:
Receive described TS stream, judge that whether the interior elementary stream packet that packet header is arranged of TS stream is the step of initialize mode of the first byte data bag of a described unit;
Above-mentioned judged result, if the initialize mode of unit first a byte data bag, with regard to the reset initialization pattern, storing unit first byte has the elementary stream packet in packet header, if not initialize mode, just judge whether step into the continuity packet that receives after the first byte data bag and then;
Above-mentioned judged result, if not initialize mode, neither successional packet, just be judged as and be not initialize mode, but discontinuity packet whether step;
Above-mentioned judged result, if not initialize mode, neither discontinuous packet, just be judged as initialize mode and continuity packet, show that the packet of a unit of expression stores the step of the interrupt signal that finishes.
2, the elementary stream packet detection method that packet header is arranged of Digital Television as claimed in claim 1 is characterized in that:
Whether the elementary stream packet that packet header is arranged in the described TS of the judgement stream is that if judged result is not an initialize mode, but the continuity packet just stores the PES packet that receives in the step of initialize mode of the first byte data bag of a described unit.
3, as claimed in claim 1 for the Digital Television of characteristics has the elementary stream packet detection method in packet header, it is characterized in that:
Whether the elementary stream packet that packet header is arranged in the described TS of the judgement stream is in the step of initialize mode of the first byte data bag of a described unit, if not initialize mode, but the discrete date bag is just abandoned the elementary stream packet in the packet header that receives.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200510028343 CN1909659A (en) | 2005-08-01 | 2005-08-01 | Detecting method for tag basic code flow data packet of digital television |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200510028343 CN1909659A (en) | 2005-08-01 | 2005-08-01 | Detecting method for tag basic code flow data packet of digital television |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1909659A true CN1909659A (en) | 2007-02-07 |
Family
ID=37700633
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200510028343 Pending CN1909659A (en) | 2005-08-01 | 2005-08-01 | Detecting method for tag basic code flow data packet of digital television |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1909659A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101426143B (en) * | 2007-10-30 | 2011-09-07 | 株式会社东芝 | Broadcast reception apparatus, TS packet reproduction apparatus, broadcast reception method and program |
-
2005
- 2005-08-01 CN CN 200510028343 patent/CN1909659A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101426143B (en) * | 2007-10-30 | 2011-09-07 | 株式会社东芝 | Broadcast reception apparatus, TS packet reproduction apparatus, broadcast reception method and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1317206A (en) | Multimedia information communication device and its method | |
CN103747317B (en) | A kind of smooth playing control method of broadcasting storehouse under unstable network | |
CN1128548C (en) | Multiplexing separation device and method thereof | |
CN1509077A (en) | Digital signal processing apparatus and its processing method | |
CN100352278C (en) | Transport stream to program stream conversion | |
US20120239409A1 (en) | Bit-stream processing/transmitting and/or receiving/processing method, medium, and apparatus | |
US20080307290A1 (en) | Method for Error Correction of Packet Data | |
CN1832574A (en) | Signal processing apparatus and signal processing method | |
JP3987541B2 (en) | Packet stream receiver | |
EP1613057A1 (en) | Method and apparatus for filtering section data | |
CN1585481A (en) | Video decoder and video decoding method | |
US7697537B2 (en) | System and method for using generic comparators with firmware interface to assist video/audio decoders in achieving frame sync | |
CN1909659A (en) | Detecting method for tag basic code flow data packet of digital television | |
US20090228763A1 (en) | Method and apparatus for encoding and decoding data with error correction | |
CN1878315A (en) | Video-audio synchronization method | |
EP2086234A1 (en) | Digital data receiver | |
US9602821B2 (en) | Slice ordering for video encoding | |
US8073051B2 (en) | Method and related device for converting transport stream into file | |
CN1846386A (en) | Extra error correcting method for zapping stream TS packet | |
US9578139B2 (en) | Method and system for architecture of a fast programmable transport demultiplexer using a double buffered approach | |
WO2008113241A1 (en) | Method of storing media data delivered through a network | |
CN1294767C (en) | Method of storing a stream of audiovisual data in a memory | |
CN100344159C (en) | System and method for transmitting digital video files with error recovery | |
CN1467728A (en) | Data decoder and method of decoding data | |
KR100442279B1 (en) | Record-playback system of digital video and audio image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |