开发者

How to install FFMPEG in PHP to encode video

I want to know how this FFMPEG to integrate in php. I want to encode video. I got this link earlier to refer

http://youtubec开发者_如何转开发lone.wordpress.com/2007/05/26/how-to-convertencode-files-to-flv-using-ffmpeg-php/

but dont know where to point this

$ffmpegPath = "/path/to/ffmpeg"; $flvtool2Path = "/path/to/flvtool2";

here we have to give the path "/path/to/ffmpeg", "/path/to/flvtool2". I am little bit confused what to do or how to integrate ffmpeg, flvtool2 in php


exec("ffmpeg -i /tmp/orig.mov /tmp/output.mp4");

You don't need those $ffmpegPath variables on a properly configured system. Rather than employing pseudo security, you should escape input and output filenames using escapeshellarg().

Conversion options are available in the ffmpeg manual or man page. Google will know more about your flvtool2.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜