How can I install ffmpeg and ffprobe on my localhost, so that I can use sonus ffmpeg laravel-4 package? https://github.com/rafasamp/sonus
Can I just get it directly from git?
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
How can I install ffmpeg and ffprobe on my localhost, so that I can use sonus ffmpeg laravel-4 package? https://github.com/rafasamp/sonus
Can I just get it directly from git?
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
执行git clone将获得 FFmpeg 源代码,您需要对其进行编译以在 localhost 中运行本地版本。最简单的方法是在FFmpeg 下载部分为您的操作系统获取预编译版本之一,然后在 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