MG 2.0 Ffmpeg error

KawaiiHannah

Active member
I now have this error when trying to update the ffmepg path I was able to get the videos playing on my iPad we switched to plesk

Code:
o automatically watermark all uploaded images, enable watermarks and upload an appropriate image with a transparent background. Results will vary depending on the image chosen.
Allowed video extensions
List the file extensions that are allowed to be uploaded for videos. Use spaces or line breaks between extensions.
Allowed audio extensions
List the file extensions that are allowed to be uploaded for audio. Use spaces or line breaks between extensions.
[LIST]
[*]Enable FFmpeg features
[LIST]
[*]FFmpeg binary path
Enter the path to the FFmpeg binary on this server. You can sometimes find this with the command which ffmpeg.
[*]
[LIST]
[*]Generate thumbnailsIf enabled thumbnails will be automatically generated where possible.
[/LIST]
[*]
[LIST]
[*]Transcode mediaIf enabled this will allow you to support more formats by transcoding media to H.264 / AAC / MP3 where required.
[LIST]
[*]PHP binary path
To transcode media we need to defer the processing to a command line script which will be executed by the PHP binary specified. You can sometimes find this with the command which php.
[*]Transcode limit
This is the maximum number of transcode processes that will be allowed to run simultaneously. When the limit is reached, subsequent transcode processes will be queued.
[*]
[LIST]
[*]Force transcoding of all videosTranscoding a video will also compress and optimize the resulting file for streaming. This will reduce load times and file size. With this option checked, all uploaded videos will be transcoded.
[/LIST]
[/LIST]
[/LIST]
[/LIST]
[/LIST]
Media items per page
The maximum number of media items to show per page.
Albums per page
The maximum number of albums to show per page.
Comments per page
The maximum number of media or album comments to show per page.
Save
Log out
v2.0.0 Beta 7
Forum software by XenForo™ ©2010-2017 XenForo Ltd.
Oops! We ran into some problems.
ErrorException: [E_WARNING] file_exists(): open_basedir restriction in effect. File(/usr/include/ffmpeg) is not within the allowed path(s): (/var/www/vhosts/mydomain.com/:/tmp/) in src/addons/XFMG/Validator/Ffmpeg.php at line 20
[LIST=1]
[*]XF::handlePhpError()
[*]file_exists() insrc/addons/XFMG/Validator/Ffmpeg.php at line 20
[*]XFMG\Validator\Ffmpeg->isValid() insrc/addons/XFMG/Option/Ffmpeg.php at line 25
[*]XFMG\Option\Ffmpeg::verifyOption()
[*]call_user_func_array() insrc/XF/Entity/Option.php at line 238
[*]XF\Entity\Option->verifyOptionValue() insrc/XF/Mvc/Entity/Entity.php at line 713
[*]XF\Mvc\Entity\Entity->_verifyValueCustom() insrc/XF/Mvc/Entity/Entity.php at line 567
[*]XF\Mvc\Entity\Entity->set() insrc/XF/Mvc/Entity/Entity.php at line 502
[*]XF\Mvc\Entity\Entity->__set() insrc/XF/Repository/Option.php at line 107
[*]XF\Repository\Option->updateOptions() insrc/XF/Admin/Controller/Option.php at line71
[*]XF\Admin\Controller\Option->actionUpdate() insrc/XF/Mvc/Dispatcher.php at line 249
[*]XF\Mvc\Dispatcher->dispatchClass() insrc/XF/Mvc/Dispatcher.php at line 88
[*]XF\Mvc\Dispatcher->dispatchLoop() insrc/XF/Mvc/Dispatcher.php at line 41
[*]XF\Mvc\Dispatcher->run() insrc/XF/App.php at line 1844
[*]XF\App->run() in src/XF.php at line 328
[*]XF::runApp() in admin.php at line 13
[/LIST]
 
ErrorException: [E_WARNING] file_exists(): open_basedir restriction in effect. File(/usr/include/ffmpeg) is not within the allowed path(s): (/var/www/vhosts/mydomain.com/:/tmp/) in src/addons/XFMG/Validator/Ffmpeg.php at line 20
This is a limit enforced by your server, likely Plesk as it turns out. It's limiting where PHP can access files and it can't access where you placed ffmpeg. You'd have to disable the open_basedir restrictions (https://support.managed.com/kb/a2467/how-to-disable-open-basedir-in-plesk.aspx perhaps) or move ffmpeg to within the allowed paths.
 
Top Bottom