• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Installation of PHP-FFmpeg via Composer not works

AntoineW

New Pleskian
Server operating system version
Debian 10.12
Plesk version and microupdate number
Plesk Obsidian Version 18.0.42 Update 1
Hello,

Debian 10.12
Plesk Obsidian
Version 18.0.42 Update 1
PHP 8.0.18

I have setup Composer Extension and then install PHP-FFmpeg (GitHub - PHP-FFMpeg/PHP-FFMpeg: An object oriented PHP driver for FFMpeg binary) on one of my domain.

Image2.jpg
I have checked that :

  1. ffmpeg and ffprobe binaries are in /usb/bin --- OK
  2. autoload and all PHP stuff are in /vendor directory in /httpdocs of the domain --- OK

When i try to load default FFmpeg PHP script :

Code:
require 'vendor/autoload.php';
$ffmpeg = FFMpeg\FFMpeg::create();
$video = $ffmpeg->open('video.mpg');
$video
    ->filters()
    ->resize(new FFMpeg\Coordinate\Dimension(320, 240))
    ->synchronize();
$video
    ->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(10))
    ->save('frame.jpg');
$video
    ->save(new FFMpeg\Format\Video\X264(), 'export-x264.mp4')
    ->save(new FFMpeg\Format\Video\WMV(), 'export-wmv.wmv')
    ->save(new FFMpeg\Format\Video\WebM(), 'export-webm.webm');

I have the same error of those people : Fatal error: Uncaught exception 'Alchemy\BinaryDriver\Exception\ExecutableNotFoundException' with message 'Executable not found, proposed : avprobe, ffprobe' in D:\xampp\htdocs\d\trunk\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\AbstractBinary.php:160 · Issue #370 · PHP-FFMpeg/PHP-FFMpeg

I am not able to make the path to /usr/bin work because of open_basedir.

Anyone has an idea ?

Cheers.
 
Her is the exact error message I have :

Fatal error: Uncaught Alchemy\BinaryDriver\Exception\ExecutableNotFoundException: Executable not found, proposed : avprobe, ffprobe in /var/www/vhosts/domain.com/httpdocs/vendor/php-ffmpeg/php-ffmpeg/src/Alchemy/BinaryDriver/AbstractBinary.php:159 Stack trace: #0 /var/www/vhosts/domain.com/httpdocs/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Driver/FFProbeDriver.php(48): Alchemy\BinaryDriver\AbstractBinary::load() #1 /var/www/vhosts/domain.com/httpdocs/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe.php(220): FFMpeg\Driver\FFProbeDriver::create() #2 /var/www/vhosts/domain.com/httpdocs/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFMpeg.php(130): FFMpeg\FFProbe::create() #3 /var/www/vhosts/domain.com/httpdocs/video-process.php(7): FFMpeg\FFMpeg::create() #4 {main} Next FFMpeg\Exception\ExecutableNotFoundException: Unable to load FFProbe in /var/www/vhosts/domain.com/httpdocs/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Driver/FFProbeDriver.php:50 Stack trace: #0 /var/www/vhosts/domain.com/httpdocs/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe.php(220): FFMpeg\Driver\FFProbeDriver::create() #1 /var/www/vhosts/domain.com/httpdocs/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFMpeg.php(130): FFMpeg\FFProbe::create() #2 /var/www/vhosts/domain.com/httpdocs/video-process.php(7): FFMpeg\FFMpeg::create() #3 {main} thrown in /var/www/vhosts/domain.com/httpdocs/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Driver/FFProbeDriver.php on line 50
 
I have found the solution : I had to modify Open_basedir conf in PHP parameters of my domain :

Image4.png

Code:
{WEBSPACEROOT}{/}{:}{TMP}{/}:/usr/bin/ffmpeg:/usr/bin/ffprobe

Moreover a timeout parameter has to be in PHP code :

Code:
$ffmpeg = FFMpeg\FFMpeg::create(
  array(
   'timeout' => 0,
  )
);

instead of

Code:
$ffmpeg = FFMpeg\FFMpeg::create();

Now all work.
 
Back
Top