Flex 4.5 VideoDisplay is built on top of OSMF 1.0. Looking at the OSMF source, it looks like OSMF 1.0 supports .flv,.f4v,.mov,.mp4,.mp4v,.m4v,.3gp,.3gpp2,.3g2 files.
So MPG type is not supported. It is older than MP4, but is widely in use. I tested FLV, MP4, MOV, and MPG files with the simple Flex 3.5 code below:
<!-- The source attribute is changed for different file types -->
<mx:VideoDisplay height="450" width="450" source="video/sample.flv"
Here is the result:
FLV file plays fine, no problems.
MP4 file only plays sounds, no pictures.
MOV file only shows pictures, no sound.
MPG file has no sound and no picture.
Is it true that VideoDisplay class in Flex3.x only supports FLV, and Flex4+ supports much more including MP4 and MOV, maybe not MPG?
I may have to convert other file types to FLV type on server. What FLV convertor (.MP4 .MOV .MPG -> .FLV) running on Linux would you recommend?
1 person found this helpful
Flex ultimately depends on the Flash Player to play a video, so the video needs to be encoded in a format that the Flash Player supports. Flex3 only supports FLV and Flex4 can play some MP4 and other files that are in a supported format.
Sorry, I don't know what tools are available on Linux.