CN101257623A - Method for correcting MPEG-2 transmission stream PCR twitter based on accounting device setting number - Google Patents
Method for correcting MPEG-2 transmission stream PCR twitter based on accounting device setting number Download PDFInfo
- Publication number
- CN101257623A CN101257623A CN 200710085369 CN200710085369A CN101257623A CN 101257623 A CN101257623 A CN 101257623A CN 200710085369 CN200710085369 CN 200710085369 CN 200710085369 A CN200710085369 A CN 200710085369A CN 101257623 A CN101257623 A CN 101257623A
- Authority
- CN
- China
- Prior art keywords
- pcr
- counter
- transmission stream
- mpeg
- correcting
- 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
- 238000000034 method Methods 0.000 title claims abstract description 9
- 230000005540 biological transmission Effects 0.000 title abstract description 8
- 238000012937 correction Methods 0.000 claims abstract description 5
- 230000007246 mechanism Effects 0.000 claims description 4
- 238000005070 sampling Methods 0.000 claims description 2
- 238000001514 detection method Methods 0.000 claims 1
- 238000000605 extraction Methods 0.000 abstract description 3
- 238000004891 communication Methods 0.000 abstract description 2
- 238000012545 processing Methods 0.000 abstract 1
- 239000000126 substance Substances 0.000 abstract 1
- 230000007704 transition Effects 0.000 description 3
- 238000007792 addition Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000008521 reorganization Effects 0.000 description 1
- 230000004936 stimulating effect Effects 0.000 description 1
Images
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The present invention is a counter based MPEG-2 transmission stream PCR shake correction method, facing to digital television system MPEG-2 transmission stream in communication. PCR parameter represents system clock of transmission stream. The technical problems needed to be solved are to correct the PCR shake produced by the transmission stream passing through the code stream processing system. The present invention designs a novel method for correcting PCR shake based on the substance of PCR and original scheme, namely counter based PCR shake correction method. The method sets the PCR counter to be the current number when the data packet containing PCR parameters enter into the system, performs counter extraction of PCR parameter when outputting data packet, thereby accomplishing correction of PCR parameter. Compared with the original scheme, complexity of the scheme is reduced. And the synthetic result of the method is superior greatly to the original scheme, due to use simple logic, and without complex adder implementation, and with less system resource occupation.
Description
Technical field
The communication system digital tv network
Background technology
Summary of the invention
Proofread and correct the PCR shake in the mpeg 2 transport stream.
Description of drawings
Fig. 1 PCR jitter correction system block diagram
Fig. 2 sliding window schematic diagram
Fig. 3 PCR counter status transition figure
Embodiment
PCR is the part in the MPEG-2TS stream, i.e. timer reference of programs (Program Clock Reference), and 42 bits, is made up of two parts: a part of 1/300 (90kHz) with system clock (27MHz) is unit, is called the PCR essential part, 33 bits; A part is a unit with the system clock, is called the PCR expansion, 9 bits.The PCR value is a time value t (i), and i is the sequence number of byte in whole transport stream that contains last bit of essential part among this PCR, and what promptly the PCR value was represented is the time that this byte arrives System Target Decoder.After all sounds, video sampling enter encoder, export respectively in decoder end through a constant delay end to end.Because in the process that transmits flow transmission, the transmission delay of each field is not strict identical, and can produce situations such as code stream reorganization and rate adapted, the PCR field that is used for synchronization mechanism like this in the TS stream is just possible different from the transmission delay that encoder arrives decoder.Will produce so-called PCR shake like this.
The present invention at first carries out the extraction of PCR.After extracting original PCR parameter, to putting number with the inside PCR counter of this packet correspondence, promptly the initial value of this counter is set to current PCR value.After this, this counter begins to count according to inner 27MHz clock.This corresponding data Bao Ze carries out rate adapted, as enters FIFO etc.When this packets need output, system detects and the inside PCR counter of this packet correspondence, and this PCR counter current count value is embedded in the packet according to standard code, and the respective byte in the code stream is rewritten, thereby finish the renewal of PCR parameter, system configuration such as Fig. 1.
In transport stream, because multi-channel program multiplexing, the nearer several packets that might occur being separated by all contain the situation of PCR, before this packet PCR upgrades, former extraction value need be kept, and the present invention uses four counters.Each counter recycles, and resolves end at input code flow and resolves the sliding window that end adopts identical grid number with output code flow.
The function that setting counter at first needs to realize is the positive transition that judges whether to exist pcr_en, and this saltus step 27MHz clock common and module is asynchronous.The present invention has adopted the pre_state register.When a 27MHz rising edge clock stimulating module, we still detect pcr_en state this moment, and with reference to pre_state, when pcr_en is a high level, when pre_state is low level, we think that pcr_en may produce positive transition, but immediately counter is not put number, when next 27MHz rising edge clock encourages then, we detect the state of pcr_en again, if still be 1, then be sure of to have produced saltus step, counter is changed to the numerical value (because in fact PCR just counter should be put several at last one-period) of PCR+1, this status change can be described as Fig. 2.
Sliding window is a kind of mechanism that is used to receive and dispatch asynchronous control.For situation of the present invention, when carrying out the input code flow parsing,, then need the counter of first label is carried out set if contain PCR in first packet, simultaneously window is slided backward once.When receiving the packet that contains PCR for the second time, again second counter carried out set.Resolve end in code stream output, such sliding window mechanism is also arranged.Receiving terminal carries out code stream analyzing equally, finds out whether to contain PCR, when finding for the first time, just the current count value of first counter is deposited in the code stream as the PCR that upgrades.Sliding window is represented with one 2 bit wide register buffer_state towards the realization of hardware.This register just adds one whenever finishing after start-stop counter is put number or read operation.The addition of two registers is equivalent to mould 4 additions, has so just realized function.This functional schematic as shown in Figure 3.
Claims (3)
1. usage counter is put severally to the PCR parameter correction in the mpeg 2 transport stream, does not use adder.
2. use sliding window mechanism that the output sequence number is handled, seek corresponding PCR value.
3. counter is put to count and is adopted the PCR of clock sampling method detection for a long time to enable.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710085369 CN101257623A (en) | 2007-02-27 | 2007-02-27 | Method for correcting MPEG-2 transmission stream PCR twitter based on accounting device setting number |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710085369 CN101257623A (en) | 2007-02-27 | 2007-02-27 | Method for correcting MPEG-2 transmission stream PCR twitter based on accounting device setting number |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101257623A true CN101257623A (en) | 2008-09-03 |
Family
ID=39892039
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200710085369 Pending CN101257623A (en) | 2007-02-27 | 2007-02-27 | Method for correcting MPEG-2 transmission stream PCR twitter based on accounting device setting number |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101257623A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101998118B (en) * | 2009-08-31 | 2012-11-21 | 奇景光电股份有限公司 | Receiver for reducing program clock reference jitter and demodulation method |
-
2007
- 2007-02-27 CN CN 200710085369 patent/CN101257623A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101998118B (en) * | 2009-08-31 | 2012-11-21 | 奇景光电股份有限公司 | Receiver for reducing program clock reference jitter and demodulation method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7376692B2 (en) | Method and system for receiving and framing packetized data | |
US6999424B1 (en) | Method for displaying data | |
CN106612452B (en) | method and device for synchronizing audio and video of set top box | |
EP0936816B1 (en) | Video clock and framing signal extraction | |
JP2001069106A (en) | Stream multiplexing/demultiplexing device | |
US8284845B1 (en) | Method and system for handling data | |
CN100461844C (en) | Method and device for video data transmission for implementing special modes | |
US6778533B1 (en) | Method and system for accessing packetized elementary stream data | |
WO2020222289A1 (en) | Method implemented by computer means of a communicating entity in a packet-switched network, and computer program and computer-readable non-transient recording medium thereof, and communicating entity of a packet-switched network | |
KR100390841B1 (en) | Apparatus for storing and comparing PID to speed up detection of PID and its method | |
US6804266B1 (en) | Method and apparatus for handling private data from transport stream packets | |
WO2001061866A1 (en) | Single clock reference for compressed domain processing systems | |
US7447231B2 (en) | DS3 to ASI converter with reduced memory | |
JP2008245050A (en) | Pcr correction circuit | |
CN101257623A (en) | Method for correcting MPEG-2 transmission stream PCR twitter based on accounting device setting number | |
JP2001086089A (en) | Digital multiplexed transmitter, digital multiplexed transmission system and digital multiplexed transmission method | |
Xingdong et al. | Implementation of MPEG-2 transport stream remultiplexer for DTV broadcasting | |
CN102934435B (en) | Video display devices | |
CN105306971B (en) | A kind of Polymera PCR correction system and method | |
US6785336B1 (en) | Method and system for retrieving adaptation field data associated with a transport packet | |
US20130100811A1 (en) | Output Rate Controller and Output Rate Control Method | |
CN107682716B (en) | Code rate control method and device | |
CN100421449C (en) | Control method for clock synhrronous preservation in network degital TV system | |
CN203327182U (en) | Network set-top box pcr correction processing system | |
Peng et al. | Counter-set based PCR jitter correction method for DVB-T system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C57 | Notification of unclear or unknown address | ||
DD01 | Delivery of document by public notice |
Addressee: Peng Xi Document name: Notification of Publication of the Application for Invention |
|
C57 | Notification of unclear or unknown address | ||
DD01 | Delivery of document by public notice |
Addressee: Peng Xi Document name: Notification before expiration of term |
|
DD01 | Delivery of document by public notice |
Addressee: Peng Xi Document name: Notification that Application Deemed to be Withdrawn |
|
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20080903 |