简体   繁体   中英

Html5 auto converter?

I'm working on a php backend for upload videos and wondering if there is a way to convert from some of the 3 common formats to another. The idea is to simplify the upload to just one video and my app will convert it to the 3 formats to maintain compatibility.

A plugin or something?

The easiest is probably ffMPEG: ffmpeg.org/

There is a "plug-in" (ie extension) for PHP called php_ffmpeg but I strongly advise you not to use it. Just run command line instead as it's simple once you've done the first one.

Important: the conversion takes time, so make sure you have a queuing solution - line the conversions up and do one at a time (or two at a time if you have dual core CPUs, 4 for quad etc, and specify the CPU to run on).

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