doushou8299 2015-04-28 10:32
浏览 800

Laravel无法加载FFProbe?

I'm using the PHP-FFMpeg repository to do some video work inside my Laravel application, but I'm encountering some issues setting it up. Once I've installed the PHP-FFMpeg repo, I try and create an FFMpeg instance:

$ffmpeg = \FFMpeg\FFMpeg::create();

However, this does not work. In response, I get an ErrorException that simply states:

Unable to load FFProbe

This does not make sense to me, as when I run ffmpeg and ffprobe from my Mac's terminal, I can see they are installed. This is clearly a path/resolving issue, but I'm unsure how to fix it. Any ideas?

This is all hosted under a MAMP project, running on localhost.

  • 写回答

3条回答 默认 最新

  • dongzhuxun5136 2015-04-28 10:35
    关注

    Specifying paths to binaries should help:

    $ffmpeg = \FFMpeg\FFMpeg::create([
        'ffmpeg.binaries'  => exec('which ffmpeg'),
        'ffprobe.binaries' => exec('which ffprobe')
    ]);
    
    评论

报告相同问题?

悬赏问题

  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码