wtorek, 9 marca 2010

mp4 h.264 netstream buffering problem

As I was creating a simple video queue class to pre-buffer the video content, I couldn't get the videos to play until the whole movie loaded, the "NetStream.Buffer.Full" was triggered when whole movie downloaded. Setting different values of bufferTime on stream object didn't helped.

The problem as it occurred after some googling, was the encoding. I used h.264 mp4's for all my videos, and in my ignorance I didn't know they act differently from plain old flv.

For h.264 encoded videos to buffer properly "the "moov atom" needs to be located at the beginning of the file. ", as I just discovered in David Hassoun's article "Exploring Flash Player support for high-definition H.264 video and AAC audio" (page 2)

The tools the author pointed to fix the problem are:
I haven't tried them out yet, but I hope one of them will fix the problem..
Just a quick note from the battlefield ;)

Brak komentarzy:

Prześlij komentarz