[FFmpeg-devel] Big frames and packet timestamp

Nicolas George nicolas.george at normalesup.org
Sun Sep 16 11:30:58 CEST 2012

Le decadi 30 fructidor, an CCXX, Michael Niedermayer a écrit :
> if iam not missing something
> the decoder should set correct timestamps in AVFrame based on the
> timestamps on its input.

The problem is: a lot of applications do not use the timestamp in AVFrame;
ffplay is one.

For video, the pts field in AVFrame is the value that comes from the
bitstream, if any, and is frequently unusable because it is not updated when
doing, for example, a partial stream copy: the correct timestamp is the
packet's PTS, and people use that.

For audio, they tend to use the same logic, and that is not surprising.

Are there cases of audio codecs that encode a timestamp in the bitstream and
lavc decodes it?


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120916/ddf1d5bb/attachment.asc>

More information about the ffmpeg-devel mailing list