开发者

ASP.NET C# Programatically convert video on the fly

开发者 https://www.devze.com 2022-12-20 00:23 出处:网络
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.

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.

0

精彩评论

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

关注公众号