[FFmpeg-devel] About guess_correct_pts / AVFrame.best_effort_timestamp

Michael Niedermayer michaelni
Wed Feb 16 19:18:53 CET 2011


On Wed, Feb 16, 2011 at 04:38:57PM +0000, M?ns Rullg?rd wrote:
> Nicolas George <nicolas.george at normalesup.org> writes:
> 
> > L'octidi 28 pluvi?se, an CCXIX, M?ns Rullg?rd a ?crit?:
> >> No, he should put a special case for no PTS on an input frame:
> >> 
> >> pts = frame.pkt_pts != AV_NOPTS_VALUE? frame.pkt_pts : prev_pts + 1/framerate;
> >> prev_pts = pts;
> >
> > And this should be duplicated in all client applications?
> 
> It's two lines.  Big deal.
> 
> >> This code will always work.
> >
> > I am rather dubious.
> 
> It has always worked for me.

it will fail on h264 PAFF and some mpeg2 as well as all variable fps videos


[...]
-- 
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
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110216/4d32f48b/attachment.pgp>



More information about the ffmpeg-devel mailing list