[FFmpeg-devel] Maintainership question

Måns Rullgård mans
Mon Feb 14 19:01:25 CET 2011


Nicolas George <nicolas.george at normalesup.org> writes:

> Le quintidi 25 pluvi?se, an CCXIX, M?ns Rullg?rd a ?crit?:
>> There is no such thing as a "codec timestamp".
>
> There this in lavc since a long time:
>
>     /**\
>      * presentation timestamp in time_base units (time when frame should be shown to user)\
>      * If AV_NOPTS_VALUE then frame_rate = 1/time_base will be assumed.\
>      * - encoding: MUST be set by user.\
>      * - decoding: Set by libavcodec.\
>      */\
>     int64_t pts;\
>
> Do you imply it should not be there?

That field never contained any useful information.  Some decoders set it
to an arbitrary value based on SMPTE time codes in the video bitstream.
These time codes have nothing whatsoever to do with PTS, and exporting
them under that label is wrong.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list