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.3k stars 296 forks source link

Unable to load FFProbe #836

Open sunosv opened 3 years ago

sunosv commented 3 years ago

Detailed description of the problem [REQUIRED]

A clear and concise description of what the bug is. Videos don't have thumbnails

Steps to reproduce the issue

Steps to reproduce the behavior:

    2020-12-28 17:23:07 -- notice  -- App\Metadata\GitHubFunctions::__construct -- 49 -- file_get_contents(/www/wwwroot/lychee/.git/HEAD): failed to open stream: No such file or directory
    2020-12-28 17:23:02 -- error   -- App\ModelFunctions\PhotoFunctions::add -- 411 -- Unable to load FFProbe
    2020-12-28 17:22:54 -- notice  -- App\Metadata\GitHubFunctions::__construct -- 49 -- file_get_contents(/www/wwwroot/lychee/.git/HEAD): failed to open stream: No such file or directory
    2020-12-28 17:22:53 -- notice  -- App\Metadata\GitHubFunctions::__construct -- 49 -- file_get_contents(/www/wwwroot/lychee/.git/HEAD): failed to open stream: No such file or directory
    2020-12-28 17:20:30 -- notice  -- App\Metadata\GitHubFunctions::__construct -- 49 -- file_get_contents(/www/wwwroot/lychee/.git/HEAD): failed to open stream: No such file or directory
    2020-12-28 17:20:24 -- error   -- App\ModelFunctions\PhotoFunctions::add -- 411 -- Unable to load FFProbe
    2020-12-28 17:19:54 -- notice  -- App\Metadata\GitHubFunctions::__construct -- 49 -- file_get_contents(/www/wwwroot/lychee/.git/HEAD): failed to open stream: No such file or directory
    2020-12-28 17:19:52 -- notice  -- App\Metadata\GitHubFunctions::__construct -- 49 -- file_get_contents(/www/wwwroot/lychee/.git/HEAD): failed to open stream: No such file or directory
    2020-12-28 17:19:51 -- notice  -- App\Metadata\GitHubFunctions::__construct -- 49 -- file_get_contents(/www/wwwroot/lychee/.git/HEAD): failed to open stream: No such file or directory
    2020-12-28 17:19:39 -- notice  -- App\Metadata\GitHubFunctions::__construct -- 49 -- file_get_contents(/www/wwwroot/lychee/.git/HEAD): failed to open stream: No such file or directory
    2020-12-28 17:19:39 -- notice  -- App\Metadata\GitHubFunctions::__construct -- 49 -- file_get_contents(/www/wwwroot/lychee/.git/HEAD): failed to open stream: No such file or directory
    2020-12-28 17:19:30 -- warning -- GenerateInstalledLog::up -- 18 -- Installation completed.
    2020-12-28 17:19:29 -- notice  -- up -- 83 -- lychee_photos does not exist!
    2020-12-28 17:19:29 -- notice  -- up -- 36 -- lychee_albums does not exist!
    2020-12-28 17:19:29 -- notice  -- up -- 68 -- lychee_settings does not exist!

Screenshots

    Diagnostics
    -------
    Warning: Dropbox import not working. dropbox_key is empty.

    System Information
    --------------
    Lychee Version (release):        4.1.0
    DB Version:                      4.1.0

    composer install:                --no-dev
    APP_ENV:                         production
    APP_DEBUG:                       true

    System:                          Linux
    PHP Version:                     7.4
    Max uploaded file size:          10000M
    Max post size:                   10000M
    MySQL Version:                   5.7.32-log

    Imagick:                         1
    Imagick Active:                  1
    Imagick Version:                 1690
    GD Version:                      bundled (2.1.0 compatible)

    Config Information
    --------------
    version:                         040100
    check_for_updates:               0
    sorting_Photos_col:              takestamp
    sorting_Photos_order:            ASC
    sorting_Albums_col:              max_takestamp
    sorting_Albums_order:            ASC
    imagick:                         1
    skip_duplicates:                 0
    small_max_width:                 0
    small_max_height:                360
    medium_max_width:                1920
    medium_max_height:               1080
    lang:                            en
    layout:                          1
    image_overlay:                   1
    image_overlay_type:              desc
    default_license:                 none
    compression_quality:             90
    full_photo:                      1
    delete_imported:                 0
    Mod_Frame:                       1
    Mod_Frame_refresh:               30
    thumb_2x:                        1
    small_2x:                        1
    medium_2x:                       1
    landing_page_enable:             0
    landing_owner:                   John Smith
    landing_title:                   John Smith
    landing_subtitle:                Cats, Dogs & Humans Photography
    landing_facebook:                https://www.facebook.com/JohnSmith
    landing_flickr:                  https://www.flickr.com/JohnSmith
    landing_twitter:                 https://www.twitter.com/JohnSmith
    landing_instagram:               https://instagram.com/JohnSmith
    landing_youtube:                 https://www.youtube.com/JohnSmith
    landing_background:              dist/cat.jpg
    site_title:                      Lychee v4
    site_copyright_enable:           1
    site_copyright_begin:            2019
    site_copyright_end:              2019
    additional_footer_text:          
    display_social_in_gallery:       0
    public_search:                   0
    SL_enable:                       0
    SL_for_admin:                    0
    public_recent:                   0
    recent_age:                      1
    public_starred:                  0
    downloadable:                    0
    photos_wraparound:               1
    map_display:                     0
    zip64:                           1
    map_display_public:              0
    map_provider:                    Wikimedia
    force_32bit_ids:                 0
    map_include_subalbums:           0
    update_check_every_days:         3
    has_exiftool:                    0
    share_button_visible:            0
    import_via_symlink:              0
    has_ffmpeg:                      1
    location_decoding:               0
    location_decoding_timeout:       30
    location_show:                   1
    location_show_public:            0
    rss_enable:                      0
    rss_recent_days:                 7
    rss_max_items:                   100
    prefer_available_xmp_metadata:   0
    editor_enabled:                  1
    lossless_optimization:           0
    swipe_tolerance_x:               150
    swipe_tolerance_y:               250
    local_takestamp_video_formats:   .avi|.mov
    log_max_num_line:                1000
    unlock_password_photos_with_url_param: 0
    nsfw_visible:                    1
    nsfw_blur:                       0
    nsfw_warning:                    0
    nsfw_warning_admin:              0

If applicable, add screenshots to help explain your problem.

Output of the diagnostics [REQUIRED]

(Settings => Diagnostics or https://example.com/Diagnostics or php artisan lychee:diagnostics)

Browser and system

ildyria commented 3 years ago
2020-12-28 17:23:02 -- error   -- App\ModelFunctions\PhotoFunctions::add -- 411 -- Unable to load FFProbe

That is a better type of error because it means that php-exif actually found the ffprobe binary. :+1:

ildyria commented 3 years ago

@tmp-hallenser can you have a look ? :confused:

tmp-hallenser commented 3 years ago

@tmp-hallenser can you have a look ? πŸ˜•

From the log file, I've got no clue what's going on there. It feels like ffmpeg is found at php-exif, but not for lychee (but we're using both times the same command ...)

As command -v is not available on windows, we could think of switching to a lib to search for the path, e.g. https://packagist.org/packages/cedx/which.hx Version 1 is compatible with PHP7. A switch should be straight forward.

ildyria commented 3 years ago

As command -v is not available on windows, we could think of switching to a lib to search for the path, e.g. packagist.org/packages/cedx/which.hx

This one is on Linux. #834 is on Windows.

tmp-hallenser commented 3 years ago

As command -v is not available on windows, we could think of switching to a lib to search for the path, e.g. packagist.org/packages/cedx/which.hx

This one is on Linux. #834 is on Windows. True, my bad. Still weird.

@sunosv Can you check that you have also ffprobe installed? (and not only ffmpeg) Do other videos work?

sunosv commented 3 years ago
2020-12-28 17:23:02 -- error   -- App\ModelFunctions\PhotoFunctions::add -- 411 -- Unable to load FFProbe

That is a better type of error because it means that php-exif actually found the ffprobe binary. πŸ‘

@tmp-hallenser can you have a look ? πŸ˜•

From the log file, I've got no clue what's going on there. It feels like ffmpeg is found at php-exif, but not for lychee (but we're using both times the same command ...)

As command -v is not available on windows, we could think of switching to a lib to search for the path, e.g. https://packagist.org/packages/cedx/which.hx Version 1 is compatible with PHP7. A switch should be straight forward.

It's good to hear that have a solution to the problem.

sunosv commented 3 years ago

As command -v is not available on windows, we could think of switching to a lib to search for the path, e.g. packagist.org/packages/cedx/which.hx

This one is on Linux. #834 is on Windows. True, my bad. Still weird.

@sunosv Can you check that you have also ffprobe installed? (and not only ffmpeg) Do other videos work?

I think ffprobe has been installed. [root@localhost /]# find -name ffprobe find: β€˜./proc/994822’: find: β€˜./proc/994837’: ./usr/bin/ffprobe

avephill commented 3 years ago

I'm having this same problem when uploading videos on raspberry pi using a yunohost install. Thumbnails are not generated and the error log says error -- App\Actions\Photo\Strategies\StrategyPhoto::generate_thumbs -- 112 -- Unable to load FFProbe https://github.com/YunoHost-Apps/lychee_ynh/issues/28#issue-927568038