[FFmpeg-devel] Supporting container formats with PTS gaps (Ogg)

Baptiste Coudurier baptiste.coudurier
Mon Feb 2 20:56:01 CET 2009

Michael Niedermayer wrote:
> On Mon, Feb 02, 2009 at 06:17:30PM +0200, Tomer Barletz wrote:
>> On Mon, Feb 2, 2009 at 5:53 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
>>> mpeg does not store all timestamps, that is true,
>> What do you mean by 'mpeg'? do you mean mpeg-2 video?
> mpeg 1 and 2, PS and TS
>>> but the mpeg muxer,
>>> at least ours needs all timestamps (or at least more than the minimum
>>> guranteed from mpeg input). Kinda tricky to conform to the
>>> buffer and interleaving requirements of mpeg without knowing the
>>> timestamps at all.
>> As far as I've seen, the PES encoder does not generate a PES header
>> for each frame, so maybe I don't understand something - but the muxer
>> definitely does not create all timestamps.
> there are limits on the buffer sizes, if you do not know the dts you do
> not know when a frame is removed thus you do not know if your buffer will
> overflow, underflow or neither.
> and please keep in mind we dont implement a suboptimal CBR-only muxer but
> try to use the buffers to their full extend permitted by the spec.


> and there is no such thing called a PES encoder

There could be, I've seen such files in the wild.

Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
checking for life_signs in -lkenny... no
FFmpeg maintainer                                  http://www.ffmpeg.org

More information about the ffmpeg-devel mailing list