在localhost上为laravel 4包安装ffmpeg / ffprobe?

时间:2014-02-20 22:01:09

标签: laravel ffmpeg ffprobe

如何在我的localhost上安装ffmpeg和ffprobe,以便我可以使用sonus ffmpeg laravel-4包? https://github.com/rafasamp/sonus

我可以直接从git获取它吗?

git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg

1 个答案:

答案 0 :(得分:1)

执行 git clone 将获得FFmpeg源代码,您需要编译它以使本地版本在localhost中运行。最简单的方法是在FFmpeg download section为您的操作系统获取一个预编译版本,然后在sonus config.php中配置完全限定的系统路径:

/*
|--------------------------------------------------------------------------
| ffmpeg System Path
|--------------------------------------------------------------------------
|
| We need to know the fully qualified system path to where ffmpeg
| lives on this server. If you paste this path into your shell or
| command prompt you should get output from ffmpeg.
|
| Examples:
| Windows: 'C:/ffmpeg/bin/ffmpeg.exe'
| Mac OSX: '/Applications/MAMP/ffmpeg/ffmpeg'
| Linux: '/usr/bin/ffmpeg'
|
*/

'ffmpeg'    => '/usr/bin/ffmpeg', //for GNU/Linux