[Ffmpeg-devel] Timestamps on Decoding

Måns Rullgård mru
Sun Oct 23 21:03:34 CEST 2005

Nico Sabbi <nsabbi at tiscali.it> writes:

> Paul Curtis wrote:
>> Rich Felker wrote:
>>> Using DTS as PTS is blatently incorrect whenever there are B
>>> frames. It will actually put the timestamps OUT OF ORDER!
>> In using the mpeg container, with MPEG2 video and MPEG2 audio, I have
>> not found an out of order frame yet. The encoder (MainActor) defaults to
>> IBBPBBPBBPBBPBBPBB (18 frames between I, every third frame P) ... so my
>> code must be doing something more than you assume.
> so Mainactor is outputting frames in display (rather than decoding ) order ?

An MPEG file with frames in anything other than decode order is illegal.

M?ns Rullg?rd
mru at inprovide.com

More information about the ffmpeg-devel mailing list