嗨,我想安装php-ffmpeg.
有人可以指导我或纠正我的步骤.
我在Windows上安装了作曲家,然后遍历到我创建的文件夹以运行install ffmpegcmd
运行此命令后composer.json,composer.lock文件与供应商文件夹一起创建.
后来FFMpeg从这里安装了64位的Shared build
并形成此文件夹将bin文件夹复制到我的目录,以便像这样设置ffmpeg和ffprobe路径create()
$ffmpeg = \FFMpeg\FFMpeg::create([
'ffmpeg.binaries' => '/vendor/bin/ffmpeg.exe',
'ffprobe.binaries' => '/vendor/bin/ffprobe.exe'
]);
Run Code Online (Sandbox Code Playgroud)
目前我收到的错误是:
"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 …Run Code Online (Sandbox Code Playgroud)