Ah. My approach to matching truns to fragment times was way too naive. Rewritten to look up the time by sequence number and to handle multiple truns inside a single traf. Resubmitting.
Mika On 9 October 2014 22:44, Michael Niedermayer <michae...@gmx.at> wrote: > On Thu, Oct 09, 2014 at 06:57:59PM +0300, Mika Raento wrote: >> If present, an MFRA box and its TFRAs are read for fragment start times. >> >> Without this change, timestamps for discontinuous fragmented mp4 are >> wrong, and cause audio/video desync and are not usable for generating >> HLS. >> --- >> libavformat/isom.h | 15 ++++++ >> libavformat/mov.c | 140 >> +++++++++++++++++++++++++++++++++++++++++++++++++++++ >> 2 files changed, 155 insertions(+) > > this seems to break some files > > for example a file generated with the following 2 commands: > ffmpeg -i matrixbench_mpeg2.mpg -t 10 in.mp4 > l-smash/cli/remuxer -i in.mp4 --fragment 1 -o test.mp4 > > ive not investigated why this doesnt work > > [...] > -- > Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB > > I know you won't believe me, but the highest form of Human Excellence is > to question oneself and others. -- Socrates > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel