-
Notifications
You must be signed in to change notification settings - Fork 195
Configuration.php variable ( some are hidden )
As AVideo Encoder evolves, new configuration variables are introduced. Over time, some of these might be overlooked or forgotten. This page serves as a consolidated reference to ensure you're up-to-date with all the available variables for the configuration.php located in /videos.
-
0signifiesDisabledorFalse -
1signifiesEnabledorTrue
$global['disableImportVideo'] = 1; This configuration hides the 'Import Video' tab.
$global['concurrent'] = {number of concurrent encoding processes};The default is 1. If you want to process more encodings simultaneously, increase this value.
$global['php'] = '/usr/bin/php'; Define the location of your PHP executable.
$global['ffmpeg'] = '/usr/bin/ffmpeg'; Specify the location of the FFMPEG executable.
$global['youtube-dl'] = '/usr/local/bin/youtube-dl'; Identify the location of the youtube-dl executable. For advanced usage, such as with a proxy, the configuration can be modified as:
$global['youtube-dl'] = 'proxychains youtube-dl';$global['byPassVideoFileHasErrors'] = 1; With this, the system won't check the encoded file for errors. More details can be found at Issue#433.
You can customize the $global['ffmpeg'] to add specific FFMPEG parameters tailored to your needs.
If you want to leverage your GPU for FFMPEG, you can append the necessary GPU parameters to the $global['ffmpeg'] variable. Here's a generic example:
$global['ffmpeg'] = '/usr/bin/ffmpeg -hwaccel {your_gpu}';Replace {your_gpu} with the type of GPU you are using (e.g., cuda, dxva2, vaapi). Make sure your FFMPEG version and GPU drivers support the hardware acceleration method you want to use.
$global['videoEditorEnabledByDefault'] = 1; With this, your checkbox "Edit while Upload" will be checked by default.
$global['videoEditorForcePlaylist'] = 1; With this, when you "Edit while Upload" it will force you to add a playlist to the video.
This guide ensures that you're harnessing the full potential of AVideo by customizing it according to your preferences and infrastructure. Always remember to test changes in a staging environment before applying them to production.