简体   繁体   中英

ASP.NET C# Programatically convert video on the fly

I want to convert video 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 .

查看DirectShow筛选器和WMEncoder(Windows Media编码器)(如果已安装适当的编解码器),则可以与DirectShow和WMEncoder交互以重新编码文件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM