Php-ffmpeg: FFProbe not found, PHP-FFmpeg not working...

Created on 1 Oct 2013  路  6Comments  路  Source: PHP-FFMpeg/PHP-FFMpeg

Similar to issue #45, I seem to have a problem loading FFProbe (but that issue didn't actually present any working solution).
I use Xampp (32-bit version) on a Windows 7 (64-bit) computer.
PHP version is 5.4.7.

Before trying PHP-FFmpeg I had (and still have) ffmpeg-php installed.
After a fruitless search for decent (install) information about ffmpeg-php, I found out it was simply too slow, so therefore I resorted to PHP-FFmpeg, hoping for a better experience.
Alas, for PHP-FFmpeg I found even less information, and no information at all about solving problems...
So any help is very welcome.

This is the expetion php throws at me...
Uncaught exception 'Alchemy\BinaryDriver\Exception\ExecutableNotFoundException' with message 'Executable not found, proposed : avprobe, ffprobe' in path\to\vendor\Alchemy\binary-driver\src\Alchemy\BinaryDriver\AbstractBinary.php:160
Stack trace:
-0 path\to\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Driver\FFProbeDriver.php(48): Alchemy\BinaryDriver\AbstractBinary::load(Array, NULL, Object(Alchemy\BinaryDriver\Configuration))
-1 path\to\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFProbe.php(206): FFMpeg\Driver\FFProbeDriver::create(Array, NULL)
-2 path\to\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFMpeg.php(118): FFMpeg\FFProbe::create(Array, NULL, NULL)
-3 path\to\script.php(20) in path\to\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Driver\FFProbeDriver.php on line 50

Most helpful comment

What mean "Have you registered the path to FFMpeg binary folder in your system Path ?" ?

All 6 comments

Do you have installed FFMpeg and FFProbe ?
Have you registered the path to FFMpeg binary folder in your system Path ?

Please understand what's happening here, it's exactly the same issue as #45. You wrote that "that issue didn't actually present any working solution" : That's normal, it's a system configuration issue.

Frankly, I don't know whether or not they are installed, so I'm pretty sure the system path is not OK. I did in fact (try to) install ffmpeg-php, and one of the installation steps involved copying files like avformat.dll and avcodec.dll to the Windows/System32 and Windows/SysWOW64 folders. These files are still there.
Like I said, I couldn't find any decent step-by-step guide on how to install ffmpeg-php; every description I found contained tons of caveats, offered links to different dll-files and even worse: they disagreed on numerous steps.

Now, I already assumed it would be a configuration issue, so what I actually meant with 'a working solution' would be a tutorial or some kind of step-by-step guide on how to get PHP-FFmpeg working starting from a blank system, or at least a clear listing of the prerequisites to make PHP-FFmpeg work.
For now, I followed the readme of this project, meaning: I installed Composer, created the composer.json-file and ran composer.phar.
As there is no mention of any (other) dependencies for getting PHP-FFmpeg to work (such as having some stuff installed and having certain locations in the system path), I did not install any additional software or do any other configuration steps...

Assuming I do need to install additional software and perform some additional configuration, could you point me out, not only what to install, but also where to get it and - if appropriate - a brief description on how this stuff should be configured...

You just need to a working version of FFMPEG on your system http://ffmpeg.zeranoe.com/builds/

Thanks nlegoff, that did the trick!

For all other newbies like me out there, this is how I got it to work:
Additional to the installation of PHP-FFmpeg described in this project's readme, you need a working version of FFmpeg (and FFprobe) (the command-line tools actually performing the video and audio magic).

Specifically for Windows:
You can find neatly packaged versions of FFmpeg (including FFprobe) at http://ffmpeg.zeranoe.com/builds/.
After you've unzipped the downloaded package, you either add the bin-folder of the package to the system path or you supply the location of the bin-folder to PHP-FFmpeg when calling FFMpeg\FFMpeg::create() as described in https://github.com/alchemy-fr/#ffmpeg.

What mean "Have you registered the path to FFMpeg binary folder in your system Path ?" ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iki789 picture iki789  路  7Comments

jankal picture jankal  路  9Comments

Mahdi-Mohammadi picture Mahdi-Mohammadi  路  4Comments

travoliti picture travoliti  路  6Comments

totomtornado picture totomtornado  路  6Comments