【发布时间】:2014-02-20 22:01:08
【问题描述】:
如何在我的本地主机上安装 ffmpeg 和 ffprobe,以便我可以使用 sonus ffmpeg laravel-4 包? https://github.com/rafasamp/sonus
我可以直接从 git 获取它吗?
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
【问题讨论】:
如何在我的本地主机上安装 ffmpeg 和 ffprobe,以便我可以使用 sonus ffmpeg laravel-4 包? https://github.com/rafasamp/sonus
我可以直接从 git 获取它吗?
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
【问题讨论】:
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
【讨论】: