•  » Extensions
  •  » [resolved] VideoJS Program Dependencies Path Question

#1 2020-05-28 14:09:46

kc27
Member
2014-02-25
78

[resolved] VideoJS Program Dependencies Path Question

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

 

#2 2020-05-28 19:42:36

executive
Member
2017-08-16
1236

Re: [resolved] VideoJS Program Dependencies Path Question

installation is covered in the plugin documentation.

Offline

 

#3 2020-05-29 15:07:02

kc27
Member
2014-02-25
78

Re: [resolved] VideoJS Program Dependencies Path Question

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

 

#4 2020-05-29 21:44:10

executive
Member
2017-08-16
1236

Re: [resolved] VideoJS Program Dependencies Path Question

try putting the tools in your piwigo directory

Offline

 

#5 2020-06-01 05:43:28

kc27
Member
2014-02-25
78

Re: [resolved] VideoJS Program Dependencies Path Question

I copied the installation from the home directory to the piwigo directory. The VideoJS Sycnronize tab still shows the paths as not valid.

Offline

 

#6 2020-06-01 23:57:54

erAck
Only trying to help
2015-09-06
2237

Re: [resolved] VideoJS Program Dependencies Path Question

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:

Code:

$conf['vjs_mediainfo_dir'] = '/home/hmc/ffmpeg';
$conf['ffmpeg_dir'] = '/home/hmc/ffmpeg';

Running Piwigo at https://erack.net/gallery/

Offline

 

#7 2020-06-04 13:47:38

kc27
Member
2014-02-25
78

Re: [resolved] VideoJS Program Dependencies Path Question

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

 

#8 2024-10-22 20:29:57

mfgpi
Member
2021-11-05
8

Re: [resolved] VideoJS Program Dependencies Path Question

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

 

#9 2024-10-22 20:50:23

mfgpi
Member
2021-11-05
8

Re: [resolved] VideoJS Program Dependencies Path Question

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

 

#10 2024-10-28 00:22:27

windracer
Member
St. Pete, FL
2014-12-28
638

Re: [resolved] VideoJS Program Dependencies Path Question

I'm having the same issue after upgrading to Piwigo 15 and VideoJS v15.b

I tried adding

Code:

$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

 

#11 2024-10-28 11:47:10

erAck
Only trying to help
2015-09-06
2237

Re: [resolved] VideoJS Program Dependencies Path Question

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.


Running Piwigo at https://erack.net/gallery/

Offline

 

#12 2024-10-28 21:22:59

windracer
Member
St. Pete, FL
2014-12-28
638

Re: [resolved] VideoJS Program Dependencies Path Question

Someone has filed something similar:

[Github] piwigo-videojs issue #235

Offline

 

#13 2024-10-28 22:46:09

cryopad
Piwigo Team
Grenoble, France
2015-11-01
238

Re: [resolved] VideoJS Program Dependencies Path Question

A fix is coming.


If you enjoy Piwigo for iOS…
➤ We would appreciate an AppStore review.
➤ Comments, suggestions ? Tell us on GitHub…
➤ Not yet available in your language ? Help us translate it…

Offline

 

#14 2024-10-29 14:19:10

windracer
Member
St. Pete, FL
2014-12-28
638

Re: [resolved] VideoJS Program Dependencies Path Question

v15.c resolved the issue for me (after I removed all the conf lines from my local config.

Offline

 

#15 2024-12-09 12:00:41

adios.icu
Member
2024-12-09
3

Re: [resolved] VideoJS Program Dependencies Path Question

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

 
  •  » Extensions
  •  » [resolved] VideoJS Program Dependencies Path Question

Board footer

Powered by FluxBB