4

Is there any command line tools to move an h264/mp4 index to the beginning so that flash will start playing the file quicker over the net? I am aware of the tool QTIndexSwapper however it is not command line.

Alternatively is there an ffmpeg command to place the index at the front during an encoding?

Thanks.

mirswith
  • 1,285
  • 1
  • 10
  • 15
  • Video needs to be encoded with the metadata in the header – The_asMan Sep 30 '11 at 20:15
  • Possible duplicate of [Post processing in ffmpeg to move 'moov atom' in MP4 files (qt-faststart)](https://stackoverflow.com/questions/8061798/post-processing-in-ffmpeg-to-move-moov-atom-in-mp4-files-qt-faststart) – llogan Oct 08 '18 at 18:20

2 Answers2

7

As answered a few years later;

ffmpeg -i input.mp4 -codec copy -movflags +faststart output.mp4
user1133275
  • 2,642
  • 27
  • 31
1

After enough poking around I managed to find a python script called qt-faststart that does it. So far so good. qt-faststart

Slater Victoroff
  • 21,376
  • 21
  • 85
  • 144
mirswith
  • 1,285
  • 1
  • 10
  • 15