[FFmpeg-devel] About guess_correct_pts / AVFrame.best_effort_timestamp

Nicolas George nicolas.george
Fri Feb 18 00:17:16 CET 2011

Le nonidi 29 pluvi?se, an CCXIX, John Cox a ?crit?:
> In the case of decoders like ffmpeg where decode isn't rigorously synced to a
> real-time bitstream, DTS can be used to establish the "time at the decoder". If
> the stream is completely devoid of PTSs (a case that cannot occur in an H.222
> stream) then it is certainly plausible to assert that the last decoded frame
> that is emitted by a decoder in response to a coded frame being injected has a
> PTS equal to the DTS of the injected frame.  Note however that this does NOT
> apply if there are occasional PTSs in the stream and the decoded frame merely
> happens to be one of the ones without a PTS.

Since you seem to know the question pretty well, could you describe the
proper way to compute a frame PTS based on occasional PTS and DTS in the


  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://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110218/c8ba4b03/attachment.pgp>

More information about the ffmpeg-devel mailing list