728x90
출처: http://blog.jongov.com/?p=3
How to calculate MPEG-2 PCR value
Lets say that we have to calculate PCR for time 10:01:47.66.
10 hours + 1 minute + 47.66 seconds equals 36107.66 seconds.
In MPEG-2 specification it is said:
PCR_base(i) =((system_clock_ frequency * t(i)) DIV 300) % pow(2, 33)
PCR_ext(i) =((system_clock_ frequency * t(i)) DIV 1) % 300,
where PCR_base is 33 bits and PCR_ext is 9 bits.
So
PCR_base(i) =((system_clock_ frequency * t(i)) DIV 300) % pow(2, 33)
PCR_base =((27000000 *36107.669773 ) DIV 300) % pow(2, 33)
PCR_base =( 974907083871 DIV 300) % pow(2, 33)
PCR_base = 3249690279 % pow(2, 33)
PCR_base = 3249690279
PCR_ext(i) =((system_clock_ frequency * t(i)) DIV 1) % 300
PCR_ext(i) =((27000000 * 36107.669773 ) DIV 1) % 300
PCR_ext(i) =(974907083871 DIV 1) % 300
PCR_ext(i) =171
728x90
'Research > Broadcast' 카테고리의 다른 글
Unboxing the Humax Freesat PVR (0) | 2009.10.14 |
---|---|
Flash Player (0) | 2009.05.13 |
How to extract DTS/PTS values out of MPEG-2 PES header (0) | 2009.01.30 |
채널 적응형 위성방송을 위한 DVB-S2 기술동향 (0) | 2008.03.28 |
Anatomy of a Video Signal (0) | 2008.02.21 |