[FFmpeg-devel] NUT end timestamp

Michael Niedermayer michael at niedermayer.cc
Mon Dec 17 20:41:32 EET 2018


On Mon, Dec 17, 2018 at 11:24:43AM +0100, Paul B Mahol wrote:
> On 12/14/18, Michael Niedermayer <michael at niedermayer.cc> wrote:
> > Hi
> >
> > replying to a comment from IRC here because "durandal_1707 has quit" so it
> > wouldnt be seen, and might be interresting for others so not mailing
> > private
> >
> > <durandal_1707> michaelni: nut does not take into consideration duration of
> > last frame to return real duration
> > <durandal_1707> michaelni: so duration is always smaller by small amount
> > <durandal_1707> michaelni: looks like design failure
> >
> > Its a bit ago that i worked on nut but the last frame duration was
> > considered,
> > i do remember there was discussion about it.
> >
> > looking at nut.txt, it says this:
> >     All streams SHOULD end with EOR, where the pts of the EOR indicates the
> >     end presentation time of the final frame.
> >
> > That stores and gives the last duration. Our muxer seems to not implement
> > this
> > so its a implementation issue not a design one
> 
> If one need to parse all packets to get last duration that is flawed design.

That should not be neccessary
you can find the duration from the next packet as with any other packet thats not
the last. And there is a index from which it should be possible to find the last
too

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The smallest minority on earth is the individual. Those who deny 
individual rights cannot claim to be defenders of minorities. - Ayn Rand
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20181217/b9928fda/attachment.sig>


More information about the ffmpeg-devel mailing list