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

Francois Cartegnie fcvlcdev at free.fr
Wed Oct 28 18:10:03 CET 2015

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.


More information about the vlc-devel mailing list