Moovrelocator
lastmod 2026-11-10created 2016-11-232 edits
moovrelocator is a PHP5 class that moves the moov atom at the end of an MP4 file to the front of the file. The moov atom is metadata containing track information and the frame index, and because many encoders write it at the end of the file, playback on the web does not start until the whole file has been downloaded. Moving it to the front enables progressive download playback, and other tools that do the same job include qt-faststart and ffmpeg's -movflags faststart option.
PHP5 class to relocate the moov-atom from the end to the beginning of a MP4-file.