MP4

Fast start

To speed up loading or streaming, metadata should be at the begining:

  1. 'moov' info atom

  2. 'mdat' data atom

Encoder usally output:

  1. 'mdat' data atom

  2. 'moov' info atom

To fix that:

ffmpeg -i input.mp4 -codec copy -map 0 -movflags +faststart output.mp4
qt-faststart input.mp4 output.mp4

Last updated