Greetings,
Where does VideoJS (Version 2.9.b) expect programs like ffmpeg to be installed? Ffmpeg and the other required programs are installed at the paths shown below. When I go into the Synchronization Tab in VideoJS, it shows these programs as missing. How do I resolve this?
FROM MY WEB HOST:
ffmpeg has installed under /home/hmc/ffmpeg
==
[hmc@webhosting2025 ffmpeg]$ pwd
/home/hmc/ffmpeg
[hmc@webhosting2025 ffmpeg]$ ll
total 78536
-rwxr-xr-x 1 hmc hmc 4278515 Mar 15 2016 faac
-rwxr-xr-x 1 hmc hmc 42544288 Jan 24 2016 ffmpeg
-rwxr-xr-x 1 hmc hmc 37 Jan 24 2016 flvtool2
-rwxr-xr-x 1 hmc hmc 2007009 Mar 10 2016 lame
-rwxr-xr-x 1 hmc hmc 8338061 Jan 24 2016 mediainfo
-rwxr-xr-x 1 hmc hmc 3445354 Jan 24 2016 MP4Box
-rwxr-xr-x 1 hmc hmc 19792032 Jan 26 2016 mplayer
Piwigo 2.10.2
PHP: 7.1.33 [2020-05-28 12:05:07]
MySQL: 5.5.5-10.1.44-MariaDB-cll-lve [2020-05-28 08:05:07]
Offline
installation is covered in the plugin documentation.
Offline
VideoJS documentation states:
Custom binary path now need to set manually into the local config file local/config/config.inc.php.
$conf['vjs_mediainfo_dir'] = '';
$conf['ffmpeg_dir'] = '';
My host says path is
/home/hmc/ffmpeg/ffmpeg
/home/hmc/ffmpeg/mediainfo
I use LocalFiles Editor to edit config.inc.php as below. VideoJS still says path not valid.
$conf['vjs_mediainfo_dir'] = '/home/hmc/ffmpeg/mediainfo';
$conf['ffmpeg_dir'] = '/home/hmc/ffmpeg/ffmpeg';
Offline
try putting the tools in your piwigo directory
Offline
I copied the installation from the home directory to the piwigo directory. The VideoJS Sycnronize tab still shows the paths as not valid.
Offline
As the config variables say ..._dir I'd assume it's supposed to be a directory, not a full path of the executable, so this (untested) might work:
$conf['vjs_mediainfo_dir'] = '/home/hmc/ffmpeg'; $conf['ffmpeg_dir'] = '/home/hmc/ffmpeg';
Offline
Thanks. Moving the ffmpeg to the Piwigo directory, or setting the path in local config file to the directory level It did not work, either. Maybe it is a version compatibility issue?
My host says they have done their part, and have offered as much support as they are able. I wanted ffmpeg for video poster creation. For now, I am just creating the posters for videos manually. My site has very few videos, so it is not a hardship to rely on manual poster creation. I am going to drop the issue for now, and reexamine it at a later time with a fresh eye. Sometimes just walking away and coming back later helps get things sorted out. Thanks for the suggestions.
Offline
VideoJs plugin [synchronise] returns
Poster and Thumbnail creation disable because FFmpeg is not installed on the system, eg: '/usr/bin/ffmpeg'.
however, ffmpeg is installed in that precise route.
I created soft links to the binary in piwigo directory and piwigo/plugins/piwigo-videojs directory but did not work.
Also tried $conf['ffmpeg_dir'] = '/usr/bin/ffmpeg'; but to no avail.
piwigo is 15.0.0
server is Ubuntu 24.04.1 LTS
ffmpeg version 6.1.1-3ubuntu5+esm2
I shall be grateful for your help.
Last edited by mfgpi (2024-10-22 20:44:56)
Offline
I wonder if problem is in file function_sync.php (I am not familiar with php)
if ($sync_options['poster'] or $sync_options['thumb'])
{
$retval = execCMD("ffmpeg -version 2>&1"); // Does it work?
if (($retval != 0))
{
$warnings[] = "Poster creation disable because ffmpeg is not installed on the system, eg: '/usr/bin/ffmpeg'.";
$sync_options['poster'] = false;
$sync_options['thumb'] = false;
}
}
Offline
I'm having the same issue after upgrading to Piwigo 15 and VideoJS v15.b
I tried adding
$conf['ffmpeg_dir'] = '/usr/bin/ffmpeg'; $conf['vjs_mediainfo_dir'] = '/usr/bin/mediainfo'; $conf['vjs_exiftool_dir'] = '/usr/bin/exiftool'; $conf['vjs_ffprobe_dir'] = '/usr/bin/ffprobe';
to my local config, no luck. After trying to use "Videos" in Batch Manager to sync details for videos, I get:
Poster and Thumbnail creation disable because FFmpeg is not installed on the system, eg: '/usr/bin/ffmpeg'.
Metadata parsing disable because 'mediainfo' or 'exiftool' or 'ffprobe' is not installed on the system, eg: '/usr/bin/ffmpeg'.
Plus the page contains a long list of ffmpeg version info
Offline
Reading from code, all *_dir ($conf['ffmpeg_dir'], ...) config variables are actually meant as directories and apparently with a trailing slash, e.g. '/usr/bin/' etc in case the binaries are installed at an unusual location. However, the current calls to execCMD() with a literal unprefixed command assume that the binary would be available in $PATH and do not use the configured directories, and this check specifically with the hard coded stderr "2>&1" redirection works only on Unix/Linux/macOS but not on Windows, but if it was meant to suppress any output it's wrong anyway as it instead displays all stderr output on stdout. In include/function_dependencies.php function check() the execCMD() seems to have the proper cased redirection. Anyhow, on Windows presence of "2>&1" in the command line makes things fail anyway.
I recommend to file an issue at the plugin's project page https://github.com/Piwigo/piwigo-videojs/issues , this is all wrong.
Offline
Someone has filed something similar:
[Github] piwigo-videojs issue #235
Offline
A fix is coming.
Offline
v15.c resolved the issue for me (after I removed all the conf lines from my local config.
Offline
mfgpi wrote:
VideoJs plugin [synchronise] returns
Poster and Thumbnail creation disable because FFmpeg is not installed on the system, eg: '/usr/bin/ffmpeg'.
however, ffmpeg is installed in that precise route.
I created soft links to the binary in piwigo directory and piwigo/plugins/piwigo-videojs directory but did not work.
Also tried $conf['ffmpeg_dir'] = '/usr/bin/ffmpeg'; but to no avail.
piwigo is 15.0.0
server is Ubuntu 24.04.1 LTS
ffmpeg version 6.1.1-3ubuntu5+esm2
I shall be grateful for your help.
my host also installed ffmpeg,but it didn't work out.
so i read the plugin documents and found out another way,the plugin author provided another method without installing ffmpeg,which is through modify admin_photo.php and local configuration page of the plug.that works for me.here is thr url:
https://github.com/Piwigo/piwigo-videoj … ing-system
Offline