问题
Hi i am trying to install php-ffmpeg.
Can someone guide me or correct me in my steps.
I installed the composer on windows and then traversed to my folder i had created to run
install ffmpeg
cmdAfter running this command a
composer.json
,composer.lock
file were created along with a vendor folder.Later installed the Shared
FFMpeg
build for 64bit from herehttp://ffmpeg.zeranoe.com/builds/
and form this folder copied the bin folder to my directory to set the ffmpeg
and ffprobe
path during create()
like this
$ffmpeg = \FFMpeg\FFMpeg::create([
'ffmpeg.binaries' => '/vendor/bin/ffmpeg.exe',
'ffprobe.binaries' => '/vendor/bin/ffprobe.exe'
]);
Currently i am getting this error which says :
"Fatal error: Uncaught exception 'Alchemy\BinaryDriver\Exception\ExecutableNotFoundException' with message 'Executable not found, proposed : /vendor/bin/' in D:\xampp\htdocs\health\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\AbstractBinary.php:160 Stack trace: #0 D:\xampp\htdocs\health\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Driver\FFProbeDriver.php(48): Alchemy\BinaryDriver\AbstractBinary::load('/vendor/bin/', NULL, Object(Alchemy\BinaryDriver\Configuration)) #1 D:\xampp\htdocs\health\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFProbe.php(207): FFMpeg\Driver\FFProbeDriver::create(Array, NULL) #2 D:\xampp\htdocs\health\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFMpeg.php(117): FFMpeg\FFProbe::create(Array, NULL, NULL) #3 D:\xampp\htdocs\health\ff.php(6): FFMpeg\FFMpeg::create(Array) #4 {main} Next exception 'FFMpeg\Exception\ExecutableNotFoundException' with message 'Unable to load FFProbe' in D:\xampp\htdocs\health\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Driver\FFProbeDriver.php:50 Stack trace: #0 D:\xampp\htdocs\he in D:\xampp\htdocs\health\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Driver\FFProbeDriver.php on line 50".
So what could i have done wrong or am i missing any steps. Can someone point me to the right direction.
回答1:
You need to install FFmpeg
on your machine (if you are working on PC) else you need to install FFmpeg
on your serve
Installing FFmpeg
in Ubuntu
:
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg
sudo apt-get install frei0r-plugins
Can't put complete details for other machine here please follow the given link Here is the link which explains how to do this.
https://github.com/adaptlearning/adapt_authoring/wiki/Installing-FFmpeg
回答2:
Probably correct path for ffmpeg.exe/ffprobe.exe on the "ffmpeg.binaries" and "ffprobe.binaries"
回答3:
Just in case anyone is experiencing similar issue on windows. The library removes the backslashes
(D:\binaries\ffmpeg\ffmpeg.exe)
so you should use forward slashes instead
(D:/binaries/ffmpeg/ffmpeg.exe)
this will work on widows. Hope this helps
来源:https://stackoverflow.com/questions/32859455/unable-to-load-ffprobe-driver-for-ffmpeg