[FFmpeg-devel] How to get PCR (Programe Clock Reference) value from TS file ?

Michael Niedermayer michaelni
Wed Aug 8 14:11:01 CEST 2007


Hi

On Wed, Aug 08, 2007 at 12:33:28PM +0200, Thomas Parmegiani wrote:
> Hi all !
> 
> Can anyone tell me how to retrieve PCR value from TS file ?
> I noticed this value seems to be filled in "cur_pcr" variable from
> MpegTSContext structure but this structure is not declared in .h file. Is
> there any other about how I can get this value or should I need to move
> strcut to mpegts.h ?
> What is the unit of the variable cur_pcr ? I tested with a TS @ 25fps and
> after each call of av_read_frame the different values of cur_pcr are
> alternatively 14,19,14,19,...
> One last question : I would like this value has to be read from TS file and
> not calculated from ffmpeg is it that ffmpeg does ?
> 
> Can anyone help me ?

why do want to know the PCR value?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070808/942b802e/attachment.pgp>



More information about the ffmpeg-devel mailing list