Patent ID: 7995587
Filing Date: 2011-08-09
Classification: H04N

Abstract:
1. A time stamp adding device comprising: PCR_PID detecting means for detecting a PCR_PID (Program Clock Reference Packet Identifier) included in a PMT (Program Map Table) by searching TS packets included in a TS (Transport Stream) from the head of the TS including a plurality of TS packets having no time stamp added thereto, being input from the outside, and being transmitted in a MPEG2-TS (MPEG2-Transport Stream) format and analyzing the PMT obtained as the search result; PCR detecting means for detecting values of PCRs (Program Clock Reference) included between the head of the TS and the PMT and position information of the PCRs in the TS and detecting values of all PCRs included in the TS packets between the PMT and the tail of the TS and position information of the PCRs in the TS by analyzing the TS packets included between the head of the TS and the PMT; time interval calculating means for calculating a time interval for adding a time stamp and a value of the time stamp to be added on the basis of the PCR values detected by the PCR detecting means; and time stamp adding means for adding the time stamps calculated by the time interval calculating means to the TS packets having no time stamp added thereto, which is input from the outside, on the basis of the time interval calculated by the time interval calculating means, wherein the time interval calculating means calculates a time interval between a first detected PCR and a PCR detected subsequent to the first detected PCR in the TS packets included in a first addition target block existing from the head of the TS to the first detected PCR on the basis of the value of the first detected PCR, the value of the PCR detected subsequent to the first detected PCR, and the number of TS packets between the first detected PCR and the PCR detected subsequent to the first detected PCR and calculates values of time stamps to be added to the TS packets on the basis of an initial value of the time stamp and the time interval between the first detected PCR and the PCR detected subsequent to the first detected PCR, calculates a time interval between a first PCR and a PCR detected subsequent to the first PCR in each processing block among the TS packets included in a second addition target block including a plurality of processing blocks from the PCR detected subsequent to the first detected PCR to a final PCR in the TS on the basis of the value of the first PCR in each processing block, the value of the PCR detected subsequent to the first PCR, and the number of TS packets between the first PCR in each processing block and the PCR detected subsequent to the first PCR, calculates a value of a time stamp to be added to the TS packet in the head of each processing block on the basis of the value of the time stamp added to the first TS packet in the processing block just previous to each processing block, the value of the first PCR in each processing block, and the value of the PCR detected subsequent to the first PCR, and calculates the values of the time stamps to be added to the TS packets in each processing block on the basis of the calculated value of the time stamp to be added to the TS packet in the head of each processing block and the calculated time interval between the first PCR in each processing block and the PCR detected subsequent to the first PCR, and calculates a time interval between a final PCR and a PCR detected just previous to the final PCR in the TS packets included in a third addition target block existing between the final PCR of the TS and the tail of the TS on the basis of the value of the final PCR, the value of the PCR detected just previous to the final PCR, and the number of TS packets between the final PCR and the PCR detected just previous to the final PCR, and calculates values of time stamps to be added to the TS packets on the basis of the value of the final PCR and the time interval between the final PCR and the PCR detected just previous to the final PCR.