[FFmpeg-devel] About guess_correct_pts / AVFrame.best_effort_timestamp
Wed Feb 16 20:04:52 CET 2011
On Wed, Feb 16, 2011 at 07:35:08PM +0100, Nicolas George wrote:
> L'octidi 28 pluvi?se, an CCXIX, Michael Niedermayer a ?crit?:
> > it will fail on h264 PAFF
> For my personal enlightenment (and possibly for other curious people on this
> list), could you explain what this and why this is special in a few words?
> The paragraph on wikipedia is not very enlightening.
Mans great always working code:
pts = frame.pkt_pts != AV_NOPTS_VALUE? frame.pkt_pts : prev_pts + 1/framerate;
prev_pts = pts;
will fail on h264 PAFF because that can have a field in a packet or a frame
in a packet 1/framerate is only correct for a frame, for a field it would be
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel