[FFmpeg-devel] [PATCH] lavf: add use_wallclock_as_timestamps
michaelni at gmx.at
Sat Aug 18 19:20:11 CEST 2012
On Sat, Aug 18, 2012 at 11:32:54AM +0200, Nicolas George wrote:
> 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 */
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel