[Ffmpeg-devel] [RFC] Real demuxer and audio reordering

Michael Niedermayer michaelni
Mon Nov 21 12:48:17 CET 2005


Hi

On Sun, Nov 20, 2005 at 11:14:27PM -0500, Rich Felker wrote:
[...]
> > *** Timestamps
> > In all samples i tested, all packets in a block have the same
> > timestamp. In the patch i store them anyway and put them on the
> > reordered packets, but this is probably not needed.
> > Is it ok to have many packets with the same timestamp? I don't see any
> > problem in my test, and the current behaviour (without my patch) is the
> > same.
> 
> No, it's not correct. The timestamp only applies to one of the packets
> (the first? the last?) and should only be attached to that one. If the
> calling program needs more timestamps it will have to use a framer to
> build correct timestamps for all the missing ones, but the demuxer
> should NEVER output incorrect timestamps!

yes, also note that lavf will fill in missing timestamps if it has enogh
information to do so (knows or can figure out the duration and knows last
timestamp for audio), so it should be quite easy, just only set the known
timestamp in the demuxer ...

[...]

-- 
Michael





More information about the ffmpeg-devel mailing list