[FFmpeg-user] how to make moov box before mdat box in mp4 file

Frank Tetzel s1445051 at mail.zih.tu-dresden.de
Fri Jun 26 10:48:36 CEST 2015


Hi,

> I used the command of 'ffmpeg -i ./file1.mp4 ./file2.mp4' to
> trancode. But I found moov box is behind mdat box in file2.mp4.
> 
> 
> How to how to make moov box before mdat box in mp4 file?

See format documentation:
https://ffmpeg.org/ffmpeg-formats.html#mov_002c-mp4_002c-ismv

Either run qt-faststart after encoding or do it directly by adding the
following to the ffmpeg command (in front of the output file):
-movflags +faststart

Regards,
Frank


More information about the ffmpeg-user mailing list