I use xampp for linux and the php-ffmpeg library for uploading video files to my local server but every time i try to upload a video i am getting this error:
Alchemy\BinaryDriver\Exception\ExecutionFailureException: ffprobe failed to execute command '/usr/bin/ffprobe' '-help' '-loglevel' 'quiet':
Error Output:
/usr/bin/ffprobe: symbol lookup error: /lib/x86_64-linux-gnu/libcairo.so.2: undefined symbol: FT_Get_Var_Design_Coordinates
in /opt/lampp/htdocs/mysite/application/vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/ProcessRunner.php:95
Stack trace:
#0 /opt/lampp/htdocs/mysite/application/vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/ProcessRunner.php(73): Alchemy\BinaryDriver\ProcessRunner->doExecutionFailure(''/usr/bin/ffpro...', '/usr/bin/ffprob...')
#1 /opt/lampp/htdocs/mysite/application/vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/AbstractBinary.php(207): Alchemy\BinaryDriver\ProcessRunner->run(Object(Symfony\Component\Process\Process), Object(SplObjectStorage), false)
#2 /opt/lampp/htdocs/mysite/application/vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/AbstractBinary.php(136): Alchemy\BinaryDriver\AbstractBinary->run(Object(Symfony\Component\Process\Process), false, NULL)
#3 /opt/lampp/htdocs/mysite/application/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe/OptionsTester.php(61): Alchemy\BinaryDriver\AbstractBinary->command(Array)
#4 /opt/lampp/htdocs/mysite/application/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe/OptionsTester.php(43): FFMpeg\FFProbe\OptionsTester->retrieveHelpOutput()
#5 /opt/lampp/htdocs/mysite/application/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe.php(237): FFMpeg\FFProbe\OptionsTester->has('-show_streams')
#6 /opt/lampp/htdocs/mysite/application/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe.php(206): FFMpeg\FFProbe->probe('/opt/lampp/htdo...', '-show_streams', 'streams')
#7 /opt/lampp/htdocs/mysite/application/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFMpeg.php(95): FFMpeg\FFProbe->streams('/opt/lampp/htdo...')
#8 /opt/lampp/htdocs/mysite/application/forms/UploadForm.php(119): FFMpeg\FFMpeg->open('/opt/lampp/htdo...')
#9 /opt/lampp/htdocs/mysite/application/controllers/SettingsController.php(471): app\forms\UploadForm->createVideos()
#10 [internal function]: app\controllers\SettingsController->actionUploadVideo()
#11 /opt/lampp/htdocs/mysite/application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#12 /opt/lampp/htdocs/mysite/application/vendor/yiisoft/yii2/base/Controller.php(180): yii\base\InlineAction->runWithParams(Array)
#13 /opt/lampp/htdocs/mysite/application/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('upload-video', Array)
#14 /opt/lampp/htdocs/mysite/application/vendor/yiisoft/yii2/web/Application.php(104): yii\base\Module->runAction('settings/upload...', Array)
#15 /opt/lampp/htdocs/mysite/application/vendor/yiisoft/yii2/base/Application.php(392): yii\web\Application->handleRequest(Object(yii\web\Request))
#16 /opt/lampp/htdocs/mysite/index.php(24): yii\base\Application->run()
#17 {main}
Next FFMpeg\Exception\RuntimeException: Your FFProbe version is too old and does not support `-help` option, please upgrade. in /opt/lampp/htdocs/mysite/application/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe/OptionsTester.php:63
Stack trace:
#0 /opt/lampp/htdocs/mysite/application/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe/OptionsTester.php(43): FFMpeg\FFProbe\OptionsTester->retrieveHelpOutput()
#1 /opt/lampp/htdocs/mysite/application/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe.php(237): FFMpeg\FFProbe\OptionsTester->has('-show_streams')
#2 /opt/lampp/htdocs/mysite/application/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe.php(206): FFMpeg\FFProbe->probe('/opt/lampp/htdo...', '-show_streams', 'streams')
#3 /opt/lampp/htdocs/mysite/application/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFMpeg.php(95): FFMpeg\FFProbe->streams('/opt/lampp/htdo...')
#4 /opt/lampp/htdocs/mysite/application/forms/UploadForm.php(119): FFMpeg\FFMpeg->open('/opt/lampp/htdo...')
#5 /opt/lampp/htdocs/mysite/application/controllers/SettingsController.php(471): app\forms\UploadForm->createVideos()
#6 [internal function]: app\controllers\SettingsController->actionUploadVideo()
#7 /opt/lampp/htdocs/mysite/application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#8 /opt/lampp/htdocs/mysite/application/vendor/yiisoft/yii2/base/Controller.php(180): yii\base\InlineAction->runWithParams(Array)
#9 /opt/lampp/htdocs/mysite/application/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('upload-video', Array)
#10 /opt/lampp/htdocs/mysite/application/vendor/yiisoft/yii2/web/Application.php(104): yii\base\Module->runAction('settings/upload...', Array)
#11 /opt/lampp/htdocs/mysite/application/vendor/yiisoft/yii2/base/Application.php(392): yii\web\Application->handleRequest(Object(yii\web\Request))
#12 /opt/lampp/htdocs/mysite/index.php(24): yii\base\Application->run()
#13 {main}
Any idea what is going wrong ??