简体   繁体   中英

Convert video format to Flash Video automatically

I need to allow web site users to upload videos to my web site in various common formats. From these I need to convert them to Flash video, and also limit their lengths and size. I need to do this automatically as part of the web site processing.

Is there some simple tool that will allow me to do this? If not, can you point me in a direction that might help me out.

Thanks.

使用ffmpeg,您可以运行以下命令将input.avi转换为output.flv for flash:

ffmpeg -y -i input.avi -acodec mp3 -f flv output.flv

ffmpeg or mencoder is usually used for this kind of thing.

As you are using asp.net you should really be interfacing with the DLL. There is also a c# wrapper available for ffmpeg.

我使用ffmpeg,它可以很好地与我的视频一起使用。

I've had this issue recently too, and I didn't want to go down the route of implementing a video conversion backend on the server.

In the end, what seemed like a reasonable compromise would be to make use of a video conversion service supplied by one of the online services - something like bits on the run's API , although it is a paid service, seemed like it would straight forward enough to implement as a web service.

However, if this additional cost is not acceptable, then in a PHP world, I would try to use something like ffmpeg-php . I guess there must be an equivalent in the asp.net world too, but bear in mind that video conversion can potentially take a really long time, and kicking off this process in a web scripting language is not ideal, if you are waiting for the request to finish, or are facing execution timeouts.

I think you need a server side software like Adobe Flash Media Server. It can convert video automatically to flv on your server.

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