0

我正在开发一个用于上传视频的 php 后端,并想知道是否有办法从 3 种常见格式中的一些转换为另一种格式。这个想法是将上传简化为仅一个视频,我的应用程序会将其转换为 3 种格式以保持兼容性。

插件什么的?

4

1 回答 1

0

The easiest is probably ffMPEG: ffmpeg.org/

There is a "plug-in" (i.e. 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).

于 2012-06-20T04:43:04.803 回答