Surely it works in lowercase also? type -P ffmpeg
?
Very little more I can say without access to the system, but if the test returns X, it means type -P FFmpeg
fails from PHP exec()
. You can create a file test.php
with the following:
<?php
// display all errors to catch anything unusual
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
var_dump(exec('ffmpeg -version'));
Run from browser!
The check from Files Gallery actually looks like this, with some other config settings required:
function get_ffmpeg_path(){
if(!empty(array_filter(['video_thumbs', 'load_images', 'image_resize_cache', 'video_ffmpeg_path'], function($key){
return empty(config::$config[$key]);
})) || !function_exists('exec')) return false;
//$path = '"' . str_replace('"', '\"', config::$config['video_ffmpeg_path']) . '"'; // <- if path contains Chinese chars
$path = escapeshellarg(config::$config['video_ffmpeg_path']);
return @exec($path . ' -version') ? $path : false;
}
In another post, someone on Windows said they had FFmpeg installed, but were not allowed to run it from the command-line.