I want to convert v开发者_JS百科ideo as it is uploaded to H.264 or an alternate HQ video to play in a flash player. I would like to support as many file formats as possible.
Can anyone recommend a tool. Thanks
EDIT: Need to be compatible on a Windows shared hosting account.
You can use MPlayer and Interop that with C#. I know a lot of websites use it to convert uploaded files to flash.
To display a H.264 encoded video in Flash, you can just change your extension to .flv.
In other cases, when you realy need to covert your video, you can take a look at Sharpffmpeg.
Look into DirectShow filters, and WMEncoder (Windows Media Encoder) if you have the appropriate codecs installed, you can interface with DirectShow and WMEncoder to re-encode files.
精彩评论