开发者

Flex converting videos on fly?

开发者 https://www.devze.com 2023-02-16 20:26 出处:网络
I ask google about this,but didn\'t find anything usefull. Is there a way to creat web app in flex that will convert video to flv,after that video is uploaded to the server?Can this be done with flex,

I ask google about this,but didn't find anything usefull. Is there a way to creat web app in flex that will convert video to flv,after that video is uploaded to the server?Can this be done with flex,if can,do I still need to install ffmpeg on serve开发者_Python百科r? Tnx for response.


You should convert server side anyway. This will allow you to validate the upload.


I agree with the other post that you probably should perform the conversion server side. Since you don't have a great grasp of the difference between container formats and video formats yet, creating custom client side code might get difficult since you're going to have to get a little closer to the metal.

Given that, there are some people who are doing conversion on the fly client side for certain video formats to FLV within the flash client. MKVLoader is a pretty nifty project where they use the new appendBytes(bytes) method that is now available as of Flash 10.1 on the NetStream object to convert MKV to FLV in the client. This is a really cool trick, but you'll run into problems as soon as you want to support another format.

ffmpeg supports so many formats, it would be silly not to use it. Since you mention that the video will get to your server anyway, you might as well convert it on the server before storing it.

0

精彩评论

暂无评论...
验证码 换一张
取 消