php - Unable to load FFProbe driver for FFmpeg -
hi trying install php-ffmpeg.
can guide me or correct me in steps.
i installed composer on windows , traversed folder had created run
install ffmpeg
cmdafter running command
composer.json
,composer.lock
file created along vendor folder.later installed shared
ffmpeg
build 64bit here
and form folder copied bin folder directory set ffmpeg
, ffprobe
path during create()
$ffmpeg = \ffmpeg\ffmpeg::create([ 'ffmpeg.binaries' => '/vendor/bin/ffmpeg.exe', 'ffprobe.binaries' => '/vendor/bin/ffprobe.exe' ]);
currently getting error says :
"fatal error: uncaught exception 'alchemy\binarydriver\exception\executablenotfoundexception' 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' message 'unable 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 have done wrong or missing steps. can point me right direction.
just in case experiencing similar issue on windows. library removes backslashes
(d:\binaries\ffmpeg\ffmpeg.exe)
so should use forward slashes instead
(d:/binaries/ffmpeg/ffmpeg.exe)
this work on widows. hope helps
Comments
Post a Comment