So.. Is there any lib for playing MKV (matroska) in flash (AS3, MXML) OpenSource or KindOf opensource? (In my MKV I have Theora video H264 video... If library supports only 1 type of video codec Ill live with that=))
+4
A:
You can only play videos in Flash that the player natively supports. If you write or convert an actual video codec in ActionScript (or even use the C to Flash bytecode compiler) the performance will not be good enough to get acceptable video quality.
For internal purposes we implemented a Motion JPEG display within ActionScript and even though all that did was modify the headers a bit and display a series of jpeg files using mostly native code, the effective framerate was poor.
Flash player natively supports a few formats
- On2 VP6
- Sorenson Spark (Sorenson H.263)
- H.264
Mostly everyone uses H264 which is the most recently added.
Sam
2010-03-31 18:11:42
Good answer, but "Screen video" isn't a codec or a format. Flash only supports the 3 codecs noted. (Flash Lite for mobile devices also allows playback of device video (3gpp, etc) if the device has native codecs, but that's different from Flash having built-in support.)
fenomas
2010-04-01 03:17:15
@fenomas, thanks for pointing that out. I got that from wikipedia and was a bit confused, but I checked Adobe's official list and it showed only the three codecs. http://kb2.adobe.com/cps/402/kb402866.html
Sam
2010-04-01 17:02:21