Skip to content
This repository has been archived by the owner on May 3, 2021. It is now read-only.

Video Thumbnails not created #300

Open
hwende opened this issue Oct 6, 2019 · 4 comments
Open

Video Thumbnails not created #300

hwende opened this issue Oct 6, 2019 · 4 comments

Comments

@hwende
Copy link

hwende commented Oct 6, 2019

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

@kamil4
Copy link
Contributor

kamil4 commented Oct 7, 2019

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...

@hwende
Copy link
Author

hwende commented Oct 7, 2019

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

@d7415
Copy link
Contributor

d7415 commented Oct 7, 2019

Have you tried re-uploading them? The thumbnails are created on upload, so won't be there for existing videos.

@hwende
Copy link
Author

hwende commented Oct 7, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants