Reputation: 2000
I need to play videos on an embedded flash player in a webpage (I'm using jwplayer). I know that mp4 and flv can play on flash players. Which among these two is the better format? I read that mp4 video needs to load completely because moov atom is in beginning of the file. Is there any place where I can get a complete comparison of mp4 vs flv videos on flash player?
EDIT: My choice is mp4 since it can be played on a flash player and it can also be played on devices that do not support flash, size difference is negligible between the two since both use h.264/aac. But I need to convince someone else. So please list any cons of using mp4 over flv so that I do not miss anything
Upvotes: 1
Views: 4129
Reputation: 2000
I am documenting the data I've collected on this topic since it might be useful for some other video-noobs like me in the future. I'm new so don't If I've missed any point, please feel free to point it out.
When converting to MP4 using ffmpeg, a moov
atom is written to the end of the file. It is sort of an index that should be examined before the video can be played. As a result, the whole video needs to be downloaded before the video can start playing. But there are fixes for this
Use qt-faststart
to move the moov
atom to start of the file.
moov
atom to start of the file.Found useful https://superuser.com/questions/136851/h264-inside-flv-container-vs-mp4-container?rq=1
Upvotes: 6