Ubuntu - Laravel 5.6 - Unable to load ffprobe (using php-ffmpeg)

霸气de小男生 提交于 2019-12-06 16:12:05
shalomb

You mention

ffmpeg and ffprobe are located in /usr/bin/

but later your code if referring to them in /usr/local/bin/

$ffmpeg = FFMpeg\FFMpeg::create([
    'ffmpeg.binaries'  => '/usr/local/bin/ffmpeg',
    'ffprobe.binaries' => '/usr/local/bin/ffprobe'
]);

That's one thing to check.

The other is to ensure that the binaries have the executable bit set for the right user that php runs as .. under ubuntu this user may be the www-data (if you're unsure have your php script emit the output of whoami or id -un, etc).

sudo chgrp www-data /usr/bin/ffprobe
sudo chmod g+x      /usr/bin/ffprobe
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!