小编Kap*_*kar的帖子

无法为FFmpeg加载FFProbe驱动程序

嗨,我想安装php-ffmpeg.
有人可以指导我或纠正我的步骤.

  1. 我在Windows上安装了作曲家,然后遍历到我创建的文件夹以运行install ffmpegcmd

  2. 运行此命令后composer.json,composer.lock文件与供应商文件夹一起创建.

  3. 后来FFMpeg从这里安装了64位的Shared build

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

并形成此文件夹将bin文件夹复制到我的目录,以便像这样设置ffmpegffprobe路径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)

php ffmpeg ffprobe

9
推荐指数
1
解决办法
5616
查看次数

标签 统计

ffmpeg ×1

ffprobe ×1

php ×1