[FFmpeg-devel] Two problems with MPEG2 decoder

Nicolas George nicolas.george at normalesup.org
Tue Feb 26 20:23:41 CET 2013


L'octidi 8 ventôse, an CCXXI, Joseph Artsimovich a écrit :
>					 When I use FFMpeg's C API
> (through libquicktime in this case), I get a frame shift, which is
> even worse.

I agree this would be worse, but are you absolutely sure that is what you
get? Compare this:

correct frame, pts = 1234
correct frame, pts = 1235
broken frame, undecoded
correct frame, pts = 1237
correct frame, pts = 1238

and this:

correct frame, pts = 1234
correct frame, pts = 1235
broken frame, undecoded
correct frame, pts = 1236
correct frame, pts = 1237

A "frame shift" is the second one, and it is bad indeed, but the fact that
the ffmpeg command-line tool produces a duplicated frame seems to indicate
that the pts are correct, like in the first snippet.

Regards,

-- 
  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/20130226/7fb7aab7/attachment.asc>


More information about the ffmpeg-devel mailing list