May 14, 2008

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 Not publicly viewable

  1. marshall

    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

  2. Steven Carpenter

    Thanks Marshall! I’ve added that to the post :-)

    14 May 2008, 12:21

  3. diego

    Where is the other opts button ? i cant see it in the windows version of super.

    21 May 2008, 04:53

  4. Steven Carpenter

    Hi Diego – there’s a small ‘O’ button somewhere, that’s the Other Opts button.

    21 May 2008, 07:16


Add a comment

You are not allowed to comment on this entry as it has restricted commenting permissions.

Trackbacks

Search:

MXNA link

Tweets



    Tags

    Other blogs I like...

    Black Pepper Software Go to 'Black Pepper Software'

    Eismann-sf Go to 'eismann-sf'

    Ted On Flex Go to 'Ted On Flash'

    Galleries

    Meetups:

    Not signed in
    Sign in

    Powered by BlogBuilder
    © MMXIV