LycheeOrg / Lychee

A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.
https://lycheeorg.github.io/
MIT License
3.34k stars 299 forks source link

Can't get video thumbs #31

Closed jgbellin closed 5 years ago

jgbellin commented 5 years ago

Hi

Everything works well in my install but I can't get php-ffmpeg installed correctly :

composer require php-ffmpeg/php-ffmpeg
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Do not run ComposUsing version ^0.13.0 for php-ffmpeg/php-ffmpeg
./composer.json has been updated
Loading composer repositories with package infoUpdating dependencies (including require-dev)         Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
Discovered Package: barryvdh/laravel-debugbar
Discovered Package: bepsvpt/secure-headers
Discovered Package: fideloper/proxy
Discovered Package: laravel/nexmo-notification-channel
Discovered Package: laravel/slack-notification-channel
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Discovered Package: pbmedia/laravel-ffmpeg
Package manifest generated successfully.

I guess it should appear in discovered, but it isn't, any idea ?

ildyria commented 5 years ago

I have never used ffmpeg before but yes it should be in the autoload.php.

jgbellin commented 5 years ago

i can see it in the autoload_classmap.php, but I always have the "Could not create thumbnail for video because FFMPEG is not available" error in lychee's logs when I import a new video. Here is the imported video screenshot : capture

I hope this helps ...

d7415 commented 5 years ago

I haven't properly looked at laravel yet, but this might be relevant.

jgbellin commented 5 years ago

Thank you so much, I have tried but same result, here the log :

> 2019-01-19 00:17:19 -- notice -- App\Http\Controllers\PhotoController::add -- 275 -- Could not create thumbnail for video because FFMPEG is not available.

jgbellin commented 5 years ago

Now I tried to do this and still no thumb but a new error :

2019-01-19 00:30:24 -- error -- App\Http\Controllers\PhotoController::add -- 282 -- Could not create thumbnail for video

ildyria commented 5 years ago

@jgbellin Well this means that you are making progress. As it now shows that you are actually trying to create the thumbnail.

ildyria commented 5 years ago

Did you apply: https://github.com/LycheeOrg/Lychee/wiki/FAQ#why-dont-my-videos-have-thumbnails here: https://github.com/LycheeOrg/Lychee-Laravel/blob/master/app/Photo.php#L547 ?

jgbellin commented 5 years ago

here is a sample of my actual photo.php : capture2

...and here an index.php sample : capture3

thanks a lot for your advises, I'll try to look around more

jgbellin commented 5 years ago

great, the last update fixed my problem, thx a lot !