Closed (fixed)
Project:
PHP FFmpeg
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jul 2021 at 09:44 UTC
Updated:
5 Jan 2024 at 10:49 UTC
Jump to comment: Most recent
It is not possible to override the location of the binaries using settings.php
If the binaries are in a location other than /usr/bin, add the following to an included settings.local.php file
$config['php_ffmpeg.settings']['ffmpeg_binary'] = '/var/www/custom_location/ffmpeg';
$config['php_ffmpeg.settings']['ffprobe_binary'] = '/var/www/custom_location/ffprobe';
The location for the binaries is still derived from the module settings rather from the overridden config set in the settings.php file.
Change the constructor of the PHPFFMpegFactory calss to use the 'get' method of the config factory rather than 'getEditable'.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
alanhdev commentedComment #4
alanhdev commentedComment #5
flyke commentedI can confirm this works.
Comment #8
berdirMakes sense, merged.