【问题标题】:Install ffmpeg/ffprobe on localhost for laravel 4 package?在本地主机上为 laravel 4 包安装 ffmpeg/ffprobe?
【发布时间】: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

【问题讨论】:

    标签: laravel ffmpeg ffprobe


    【解决方案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
    

    【讨论】:

      猜你喜欢
      • 2018-10-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-29
      • 2017-07-30
      • 1970-01-01
      相关资源
      最近更新 更多