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

Feature request: Fallback/option to disable video thumbnail creation #327

Open
saikon opened this issue Dec 30, 2019 · 2 comments
Open

Feature request: Fallback/option to disable video thumbnail creation #327

saikon opened this issue Dec 30, 2019 · 2 comments

Comments

@saikon
Copy link

saikon commented Dec 30, 2019

Detailed description of the problem

Some web servers do not have ffmpeg and ffprobe installed. It would be a beneficial feature to have a fallback for videos just to use a default icon as a thumbnail if creation fails.

Also a detection of this in the /plugins/Diagnostics/ would be useful. Since currently it is not giving any errors:

Diagnostics
-----------
Warning: Dropbox import not working. No property for dropboxKey.
No critical problems found. Lychee should work without problems!


System Information
------------------
Lychee Version (json):  3.2.16
Lychee Version (git):   48745c3 (master)
DB Version:             update_030216
System:                 Linux
PHP Version:            7.2
MySQL Version:          100038
Imagick:                1
Imagick Active:         1
Imagick Version:        1673
GD Version:             2.2.5
Plugins:                


Config Information
------------------
checkForUpdates:         1
default_license:         reserved
deleteImported:          1
full_photo:              1
hide_version_number:     1
image_overlay:           0
image_overlay_type:      desc
imagick:                 1
lang:                    en
layout:                  1
medium_max_height:       2160
medium_max_width:        3840
php_script_limit:        0
public_search:           0
skipDuplicates:          0
small_max_height:        360
small_max_width:         0
sortingAlbums:           ORDER BY title ASC
sortingPhotos:           ORDER BY takestamp ASC
useExiftool:             0
version:                 update_030216

Steps to reproduce the issue

On the web server I am using I ran the following test:

<?php
    print "PATH: ";
    var_dump(getenv('PATH'));
    print "<br>";

    print "which ffmpeg: ";
    var_dump(exec('which ffmpeg'));
    print "<br>";

    print "which ffprobe: ";
    var_dump(exec('which ffprobe'));
?>

This test yielded:

PATH: string(60) "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
which ffmpeg: string(0) ""
which ffprobe: string(0) ""
@tmp-hallenser
Copy link

Did you give Lychee Laravel (i.e. Version 4) a try? It's worth a try and since we eventually move to Version 4, there is a high willingness to adjust behaviours. (don't know the exact behaviour if ffmpeg is missing for v4 either)

@saikon
Copy link
Author

saikon commented Dec 31, 2019

Did you give Lychee Laravel (i.e. Version 4) a try? It's worth a try and since we eventually move to Version 4, there is a high willingness to adjust behaviours. (don't know the exact behaviour if ffmpeg is missing for v4 either)

Tried it out but it does not work with videos any better when ffmpeg is missing. The Laravel-version has some other issues with my webserver config, because I cannot access the Apache config files the installation guide wants me to modify. I only have .htaccess to work with and the old version was simpler with that. (No separate public directories to which I cannot figure out how to do redirects.)

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

2 participants