You’ll end up with an MP4 whose index marker sits at the start of the file, so it plays as soon as the reader presses play instead of buffering to the end first.
You’ll need
- The MP4 file you want to fix.
- The tool that produced the MP4, so the video can be re-exported.
Q: I’m having issues with my MP4 files, they take a very long time to load.
A: It appears that your videos are buffering to the end before they will play. This is down to how the files are originally created. All flv and mp4 files have an index marker that establishes how long a video should buffer before playing. As far as is known, this cannot be changed for flv. You can however correct the problem in an mp4.
Where the index marker sits
The index marker that appears at the end of the mp4 file is called the ‘moov atom’. A player reading the file over the web has to find it before it can start, which is why the video appears to buffer through to the end first. With the marker at the beginning of the file, playback can start straight away.
Re-export with the index first
- Open the source video in the tool you used to make the MP4.
- Re-export it with the index written at the start of the file — an option usually described as ‘fast start’, ‘streaming’ or ‘web optimized’ output.
- Upload the new file in place of the old one and check that it plays without the initial pause.
Legacy utility route
An Adobe developer, Renaun Erikson, published a small utility called ‘Qtindexswapper’ that moves the marker to the beginning of an existing file. It is an Adobe AIR application, so it needs an AIR runtime installed first, and Adobe handed AIR to HARMAN at the end of 2020. Treat that route as legacy: it only works where an AIR runtime is still installed, and a reader without one cannot complete it. Re-exporting does not depend on it.
If it doesn’t work
- The video is FLV, not MP4. The index marker’s position cannot be changed in an FLV, so convert the video to MP4 first.
- The MP4 still buffers. The index is still at the end: re-export again with the fast-start option, and confirm the file you uploaded is the new one.