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
cmd
After 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 here
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.
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