Skip to content

Configuration.php variable ( some are hidden )

Daniel Neto edited this page May 20, 2024 · 10 revisions

AVideo Encoder Configuration Guide

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.

Key Note:

  • 0 signifies Disabled or False
  • 1 signifies Enabled or True

Core Configuration Variables:

Disable Import Video

$global['disableImportVideo'] = 1; 

This configuration hides the 'Import Video' tab.

Concurrent Encoding Process

$global['concurrent'] = {number of concurrent encoding processes};

The default is 1. If you want to process more encodings simultaneously, increase this value.

PHP Executable Path

$global['php'] = '/usr/bin/php'; 

Define the location of your PHP executable.

FFMPEG Executable Path

$global['ffmpeg'] = '/usr/bin/ffmpeg'; 

Specify the location of the FFMPEG executable.

YouTube-dl Executable Path

$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';

Bypass Video File Error Check

$global['byPassVideoFileHasErrors'] = 1; 

With this, the system won't check the encoded file for errors. More details can be found at Issue#433.

Custom FFMPEG Parameters:

You can customize the $global['ffmpeg'] to add specific FFMPEG parameters tailored to your needs.

Using GPU for FFMPEG:

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.

Video editor while encoding

$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.