h264 mp4 index to front command line

2019-05-09 03:27发布

问题:

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.

回答1:

As answered a few years later;

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


回答2:

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