You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fatal error: Uncaught Symfony\Component\Process\Exception\LogicException: The Process class relies on proc_open, which is not available on your PHP installation.
#895
Open
willyfuu opened this issue
Feb 22, 2023
· 4 comments
I install PHP-FFMpeg on aapanel with apache/LAMP(PHP 8.0)
Installed ffmpeg using "sudo apt install ffmpeg"
then check with "which ffmpeg" and "which ffprobe"
ffmpeg path= /usr/bin/ffmpeg
ffprobe path= /usr/bin/ffprobe
I run this command "composer require php-ffmpeg/php-ffmpeg" -> "/www/wwwroot/mydomain/"
I upload video.mp4 -> "/www/wwwroot/mydomain/"
and create index.php to test, here the code:
<?php
require 'vendor/autoload.php';
$ffmpeg = FFMpeg\FFMpeg::create(array(
'ffmpeg.binaries' => '/usr/bin/ffmpeg',
'ffprobe.binaries' => '/usr/bin/ffprobe',
'timeout' => 3600, // The timeout for the underlying process
'ffmpeg.threads' => 12, // The number of threads that FFMpeg should use
));
$video = $ffmpeg->open('video.mp4');
$video
->save(new FFMpeg\Format\Video\WebM(), 'export-webm.webm');
and i receive this error:
Fatal error: Uncaught Symfony\Component\Process\Exception\LogicException: The Process class relies on proc_open, which is not available on your PHP installation. in /www/wwwroot/mydomain/vendor/symfony/process/Process.php:146 Stack trace: #0 /www/wwwroot/mydomain/vendor/php-ffmpeg/php-ffmpeg/src/Alchemy/BinaryDriver/ProcessBuilderFactory.php(168): Symfony\Component\Process\Process->__construct() #1 /www/wwwroot/mydomain/vendor/php-ffmpeg/php-ffmpeg/src/Alchemy/BinaryDriver/AbstractBinary.php(136): Alchemy\BinaryDriver\ProcessBuilderFactory->create() #2 /www/wwwroot/mydomain/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe/OptionsTester.php(63): Alchemy\BinaryDriver\AbstractBinary->command() #3 /www/wwwroot/mydomain/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe/OptionsTester.php(43): FFMpeg\FFProbe\OptionsTester->retrieveHelpOutput() #4 /www/wwwroot/mydomain/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe.php(231): FFMpeg\FFProbe\OptionsTester->has() #5 /www/wwwroot/mydomain/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe.php(200): FFMpeg\FFProbe->probe() #6 /www/wwwroot/mydomain/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFMpeg.php(93): FFMpeg\FFProbe->streams() #7 /www/wwwroot/mydomain/index.php(13): FFMpeg\FFMpeg->open() #8 {main} thrown in /www/wwwroot/mydomain/vendor/symfony/process/Process.php on line 146
Can anyone assist me?
Thanks
The text was updated successfully, but these errors were encountered:
Hello there,
I install PHP-FFMpeg on aapanel with apache/LAMP(PHP 8.0)
Installed ffmpeg using "sudo apt install ffmpeg"
then check with "which ffmpeg" and "which ffprobe"
ffmpeg path= /usr/bin/ffmpeg
ffprobe path= /usr/bin/ffprobe
I run this command "composer require php-ffmpeg/php-ffmpeg" -> "/www/wwwroot/mydomain/"
I upload video.mp4 -> "/www/wwwroot/mydomain/"
and create index.php to test, here the code:
and i receive this error:
Fatal error: Uncaught Symfony\Component\Process\Exception\LogicException: The Process class relies on proc_open, which is not available on your PHP installation. in /www/wwwroot/mydomain/vendor/symfony/process/Process.php:146 Stack trace: #0 /www/wwwroot/mydomain/vendor/php-ffmpeg/php-ffmpeg/src/Alchemy/BinaryDriver/ProcessBuilderFactory.php(168): Symfony\Component\Process\Process->__construct() #1 /www/wwwroot/mydomain/vendor/php-ffmpeg/php-ffmpeg/src/Alchemy/BinaryDriver/AbstractBinary.php(136): Alchemy\BinaryDriver\ProcessBuilderFactory->create() #2 /www/wwwroot/mydomain/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe/OptionsTester.php(63): Alchemy\BinaryDriver\AbstractBinary->command() #3 /www/wwwroot/mydomain/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe/OptionsTester.php(43): FFMpeg\FFProbe\OptionsTester->retrieveHelpOutput() #4 /www/wwwroot/mydomain/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe.php(231): FFMpeg\FFProbe\OptionsTester->has() #5 /www/wwwroot/mydomain/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe.php(200): FFMpeg\FFProbe->probe() #6 /www/wwwroot/mydomain/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFMpeg.php(93): FFMpeg\FFProbe->streams() #7 /www/wwwroot/mydomain/index.php(13): FFMpeg\FFMpeg->open() #8 {main} thrown in /www/wwwroot/mydomain/vendor/symfony/process/Process.php on line 146
Can anyone assist me?
Thanks
The text was updated successfully, but these errors were encountered: