Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

h264 mp4 index to front command line

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.

like image 439
mirswith Avatar asked Feb 23 '23 20:02

mirswith


2 Answers

As answered a few years later;

ffmpeg -i input.mp4 -codec copy -movflags +faststart output.mp4
like image 152
user1133275 Avatar answered Apr 01 '23 06:04

user1133275


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

like image 43
mirswith Avatar answered Apr 01 '23 06:04

mirswith