Flash H264: Moving the MOOV Atom
I just had to encode a couple of videos from AVI to H.264 format for playing via a Flash-based video player and noticed that the player was having to download the whole file before playing it. I checked out this Adobe Tech article on H.264 encoding and here’s why:
One important thing about playing an H.264 video file as progressive download is that the moov atom needs to be located at the beginning of the file, or else the entire file will have to be downloaded before it begins playing. The moov atom is a part of the file that holds index information for the whole file.
I was using SUPER to encode to H.264, and by default the moov atom gets placed at the file end. Fortunately, Renaun Erickson at Adobe has kindly created a small AIR application (a port of a C++ application) that will take a standard H.264 file and relocate the moov atom to the front of the file, and then progressive download works properly.
Edit- thanks to Marshall’s comment, if you’re using SUPER there’s an option to select ‘Streamable H.264’ – do that and the moov atom will be put at the beginning of the file. :-)
4 comments by 1 or more people
In super there is Other Opts button, where you van select Streamable H.264. This puts moov atom at beginning of the file
14 May 2008, 12:17
Thanks Marshall! I’ve added that to the post :-)
14 May 2008, 12:21
Where is the other opts button ? i cant see it in the windows version of super.
21 May 2008, 04:53
Hi Diego – there’s a small ‘O’ button somewhere, that’s the Other Opts button.
21 May 2008, 07:16
Add a commentYou are not allowed to comment on this entry as it has restricted commenting permissions.