[FFmpeg-devel] [PATCH] lavf: add use_wallclock_as_timestamps

Nicolas George nicolas.george at normalesup.org
Sat Aug 18 11:32:54 CEST 2012

Le primidi 1er fructidor, an CCXX, Michael Niedermayer a écrit :
> This may fix Ticket730

It can not do any harm, and it may indeed be of use occasionally.

> +        if (s->use_wallclock_as_timestamps)
> +            pkt->dts = pkt->pts = av_rescale_q(av_gettime(), AV_TIME_BASE_Q, st->time_base);

I see two minor problems there:

- For audio, it would require a timefilter.

- For video, it does not work if there is frame reordering going on, but I
  do not see any simple solution anyway.

I suppose both problems can be ignored until someone actually suffers from
them, but a small comment may be an useful hint:

/* TODO: audio: time filter; video: frame reordering (pts != dts */


  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/20120818/45c0773f/attachment.asc>

More information about the ffmpeg-devel mailing list