php - Unable to load FFProbe driver for FFmpeg -


hi trying install php-ffmpeg.
can guide me or correct me in steps.

  1. i installed composer on windows , traversed folder had created run install ffmpeg cmd

  2. after running command composer.json, composer.lock file created along vendor folder.

  3. later installed shared ffmpeg build 64bit here

    http://ffmpeg.zeranoe.com/builds/

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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -