Re: last frame duration

wm4 via Matroska-devel <[email protected]> Sat, 25 Feb 2017 15:11:30 +0100
Newsgroups gmane.comp.multimedia.matroska.devel
Message-ID <20170225151130.65712341@debian>
On Fri, 24 Feb 2017 20:44:17 +0100
Moritz Bunkus <[email protected]> wrote:

> Hey,
> 
> > Could anyone help to check if the file is 100% spec-compliant ? If default
> > duration is 0, do I need to set last frame duration?  
> 
> Yes.
> 
> > or should it be calculated by whole duration - last frame position?  
> 
> No. The file duration is calculated from the frame timestamps &
> duration, not the other way around. Additionally, the file duration
> doesn't have to refer to a certain track at all; it can easily be the
> difference between the first audio frame's timestamp and the last
> subtitle frame's timestamp+duration if that is the biggest
> timestamp+duration in the file.

That's why proper per-track durations would probably be nice.

I know Haali circumvents this issue by probing the last video
timestamps (and mpv also has this, which can be enabled by an option),
but should it really be this way?
_______________________________________________
Matroska-devel mailing list
[email protected]
https://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-devel
Read Matroska-Devel on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.devel