Ok, I explicitly rewrote the
enabledPreviewProviders to contain
'OC\Preview\Movie' -- to no avail. I then added debugging output here and there and found, that when
findBinaryPath looks for the
ffmpeg-executable, it obtains the list of directories to check by calling
According to the debug output I inserted, that call returns:
/sbin:/bin:/usr/sbin:/usr/bin, whereas the
ffmpeg on my system is in
/opt/bin/ffmpeg. This explains, why ffmpeg is not found.
PATH environment variable is set to
/opt/bin:/usr/bin:/bin, but the
$_SERVER['PATH'] contains the string, that Apache was started with and does not contain the
/opt/bin. For some reason, a call to
getenv('PATH') returns the latter instead of the former... I do not know, why Apache's setting trumps the value I explicitly configured for the PHP FPM pool. But, after adding
SetEnv PATH /opt/bin:/bin:/usr/bin to Apache's config, I got the thumbnails working. Woo-hoo!
It still annoys me, that oC forks/execs a separate process to generate each thumbnail -- why wouldn't it use the php-ffmpeg module, where installed, instead? Maybe, I should implement my own replacement for