Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video previews are generated but not shown #327

Open
guruguruguru opened this issue Nov 21, 2022 · 4 comments
Open

Video previews are generated but not shown #327

guruguruguru opened this issue Nov 21, 2022 · 4 comments

Comments

@guruguruguru
Copy link

guruguruguru commented Nov 21, 2022

Hi,

I generated all previews (with the inital command):

sudo -u www-data php /var/www/nextcloud/occ preview:generate-all -vvv

And they are done:

2022-11-21T10:38:55+00:00 Scanning folder /Dennis/files/Photos/2022/11
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Photos/2022/11/20221101_120324.jpg
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Photos/2022/11/20221101_132818.jpg
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Photos/2022/11/20221101_132830.jpg
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Photos/2022/11/20221101_135123.jpg
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Photos/2022/11/20221102_161841.jpg
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Photos/2022/11/20221106_124829.jpg
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Photos/2022/11/20221106_132902.mp4
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Photos/2022/11/20221113_121812.mp4
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Photos/2022/11/20221113_122010.mp4
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Photos/2022/11/20221113_122025.jpg
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Photos/2022/11/20221113_173338.jpg
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Photos/2022/11/20221114_141021.jpg
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Photos/2022/11/20221114_141031.jpg
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Photos/2022/11/20221119_085407.jpg
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Photos/2022/11/IMG_20221106_111026.jpg
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Photos/2022/11/IMG_20221106_111028.jpg
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Photos/Readme.md
2022-11-21T10:38:55+00:00 Scanning folder /Dennis/files/Talk
2022-11-21T10:38:55+00:00 Scanning folder /Dennis/files/Vorlagen
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Vorlagen/Business model canvas.odg
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Vorlagen/Diagram & table.ods
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Vorlagen/Elegant.odp
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Vorlagen/Expense report.ods
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Vorlagen/Flowchart.odg
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Vorlagen/Invoice.odt
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Vorlagen/Letter.odt
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Vorlagen/Meeting notes.md
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Vorlagen/Mindmap.odg
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Vorlagen/Org chart.odg
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Vorlagen/Product plan.md
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Vorlagen/Readme.md
2022-11-21T10:38:55+00:00 Generating previews for /Dennis/files/Vorlagen/Simple.odp

My config:

  'preview_libreoffice_path' => '/usr/bin/libreoffice',
  'enable_previews' => true,
  'enabledPreviewProviders' =>
   array (
      0 => 'OC\\Preview\\TXT',
      1 => 'OC\\Preview\\MarkDown',
      2 => 'OC\\Preview\\OpenDocument',
      3 => 'OC\\Preview\\PDF',
      4 => 'OC\\Preview\\MSOffice2003',
      5 => 'OC\\Preview\\MSOfficeDoc',
      6 => 'OC\\Preview\\Image',
      7 => 'OC\\Preview\\Photoshop',
      8 => 'OC\\Preview\\TIFF',
      9 => 'OC\\Preview\\SVG',
     10 => 'OC\\Preview\\Font',
     11 => 'OC\\Preview\\MP3',
     12 => 'OC\\Preview\\Movie',
     13 => 'OC\\Preview\\MKV',
     14 => 'OC\\Preview\\MP4',
     15 => 'OC\\Preview\\AVI',
   ),

Still it does not show preview pictures for Videos when I browser the media.
Did I forget a configuration?

Thanks,
Dennis

@guruguruguru
Copy link
Author

I checked the nginx logs and i see a lot of 404s:

[21/Nov/2022:12:17:46 +0100] "GET /apps/photos/api/v1/preview/11844?x=64&y=64 HTTP/2.0" 404 2 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36"

@ChildLearningClub
Copy link

ChildLearningClub commented May 15, 2023

Hi Dennis, Do you have ffmpeg installed? If using Docker you can access the container and add it with the following commands:

Replace "nextcloud' below with your nextcloud container name

docker exec -it nextcloud /bin/bash

apt update

apt install ffmpeg -y

whereis ffmpeg

SHOULD PRINT:
ffmpeg: /usr/bin/ffmpeg /usr/share/ffmpeg

NOT SURE THIS IS NEEDED, IN YOUR CONFIG FILE:
nextcloud/config/config.php

ADD:

'ffmpeg' => '/usr/bin/ffmpeg',

Hope this helps.

On a separate note, may I suggest installing the memories app it has HLS video transcoding built in and works quite fast since it also indexes your photos/videos to the database.

Also a page from the memories app docs about file types for others to reference

@joshtrichards
Copy link
Member

@guruguruguru You still experiencing this or can I close this out?

@joshtrichards joshtrichards changed the title Previews are generated but not shown Video previews are generated but not shown Apr 14, 2024
@joshtrichards
Copy link
Member

Do they show up for files in the trash bin, like in #335 and #355?

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

No branches or pull requests

3 participants