Video Thumbnails not created
hwende opened this issue · 4 comments
I uploaded some mp4 files but got no thumbnails. Otherwise they're working fine.
(I can see and play them)
Using
nginx 1.16.1
php 7.3 with php-ffmpeg (installed via composer)
ffmpeg 2.8.15
How can I find out what's wrong?
No entries in nginx logfiles or php logfile
Sincerely
Henning
Have you checked the FAQ? One of the problems we've seen with nginx is that the paths to ffmpeg
and ffprobe
binaries need to be explicitly provided for some reason, even if they're in /usr/bin
.
FYI, Lychee-Laravel (soon-to-be-v4) has improved video support. Nothing earth-shattering, mind you, but the thumbnail reflects the aspect ratio of the video, basic metadata is extracted and displayed in the info sidebar, that sort of things...
Thank's for your advice!
I only checked the server logs and missed the lychee log. (stupid me)
I fixed Photo.php and now the error/warning is gone.
But unfortunately I still don't get thumbnails. Any other idea?
Henning
Have you tried re-uploading them? The thumbnails are created on upload, so won't be there for existing videos.
Wait a minute...
After I now logged in and uploaded one new video I got new entries in the lchee-log
2019-10-07 22:43:12 - notice - Lychee\Modules\Photo::add (261) - Could not create thumbnail for video because FFMPEG is not available.
2019-10-07 22:43:12 - notice - Lychee\Modules\Photo::createMedium (538) - No resize (image is too small)!
2019-10-07 22:43:12 - notice - Lychee\Modules\Photo::createMedium (538) - No resize (image is too small)!
This is what I have in Photo.php:
$ffprobe = FFMpeg\FFProbe::create(array('ffmpeg.binaries' => '/usr/bin/ffmpeg', 'ffprobe.binaries' => '/usr/bin/ffprobe',));
$ffmpeg = FFMpeg\FFMpeg::create(array('ffmpeg.binaries' => '/usr/bin/ffmpeg', 'ffprobe.binaries' => '/usr/bin/ffprobe',));
Paths are correct.
So why is this not working? I restarted php7.3-fpm and nginx.