[vlc-devel] [PATCH] demux: mp4: extract framerate from mp4 files with DASH encapsulation, using frame duration stored in elst 'i_media_time'

Emeric Grange emeric.grange at gmail.com
Fri Oct 30 11:29:24 CET 2015

This is a file from youtube :

I don't know of any other way to get back the framerate.


2015-10-28 18:10 GMT+01:00 Francois Cartegnie <fcvlcdev at free.fr>:
> Le 07/10/2015 11:46, Emeric Grange a écrit :
>> I don't really have any guarantee but the mp4 spec does state
>> "media_time is an integer containing the starting time within the
>> media of this edit segment (in media time scale units, in composition
>> time)" so I guess media_time should always by relative to media
>> timescale.
>> Proper framerate should be in the DASH MPD I think. However when not
>> in streaming situation, but only trying to play the actual mp4 files
>> being streamed, this is a way to get the samples duration (and by the
>> way these files comes from youtube).
> It is still relying on and edit list atom which doesn't make really
> sense with fragmented content, and then won't solve that problem for
> other fragmented content.
> This might require to set fps from 1st moov.
> Please link some sample.
> Francois
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

More information about the vlc-devel mailing list