Show Thumbnails for Videos

I haven’t personally activated the preview generation for video files. Nevertheless you can easily check if the required php modules are loaded by executing the commands described here:

Found that ffmpeg was not in /usr/local/bin but in /usr/bin. Now I have moved it to /usr/local/bin but thumbnails are still not generated.

Do I have to change something in Nextcloud myself?

For who doesn’t know configure the config.php, when you append this part you have to move the );
simbols to the end in the bottom.

Hi
Why is this not standard?
Going throw a large amount of video but no preview makes it problematic. Please integrate this.

6 Likes

Using Nextcloud v19. All I needed to do was this and my video thumbnails were produced

5 Likes

Did not work for me :frowning:

neither for me

I’m currently on Nextcloud 21 on a pretty default Ubuntu 20.04.2 and I was susccessfull after installing ffmpeg and adding the config entries for “Movie” and “MP4”.

In my case it was mp4 files, but it did not create thumbnails for all of the files.

Still have to check what is the difference of the files.

Does the preview work for you for the file “Nextcloud intro.mp4” which is provided during installation?

In my case not. :roll_eyes:

Yes, this one works. Created a new user to get the video again, but yep this works.

Under Settings → “Administration Overview” do you see any hints of php-libs which needs installing? Like “gd” or “imagick”?

Please, check this post if you have doubts

1 Like

Big thanks - this worked for Nextcloud v23.0.0.
I am running from the docker image, and had to update the image to add smbclient and ffmpeg to get the full functionality I wanted, but once I tweaked the config as you stated - my video previews came online.

I really wanted this functionality because if you go to the “Photos” view, and click “Videos” – you are presented with blank boxes you can’t see unless there IS a preview (I should file this bug).

Thanks!

P

In my case (Fedora) it required to run the following commands:

dnf -y install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
dnf -y install ffmpeg

Please add this to the documentation guys. @j-ed @LukasReschke

Apologies for the necropost, but my question is sort of an extension to this one, so it seemed fitting.

Now that I’m able to show previews for the files by adding the config, is there some way to discern that they’re videos from the list?

When in tile mode you can’t tell which is an image and which is a video. Is there some way, perhaps an imagemagick overlay on the thumbnail that just denotes what it is? i.e. on a .mpg thumbnail have a small text on the bottom right corner of the thumb saying “.mpg”, or even just a “filmstrip” icon, or something … anything?

1 Like

Or even just a “play button” arrow type of icon overlay … something.

Anyone out there in forum-land? :stuck_out_tongue:

1 Like

thanks, it works

1 Like

Hi, thanks for your help . I wonder if you can provide me with the line of code to specify FFmpeg path in the PHP-fpm config file. thank you

1 Like

Ok I hope this will help those who are having issue getting the thumbnail working for docker version of nextcloud.

I installed docker image from here:
https://hub.docker.com/r/linuxserver/nextcloud

The config file to edit is located in: “/{path you installed nextcloud}/appdata/www/nextcloud/config.php”
** refer to your docker-compose file under volumes for /config **

Edit the config.php file and add to the ending before the last line. The last line should be “);”

Add these:

Blockquote
‘enable_previews’ => true,
‘enabledPreviewProviders’ =>
array (
‘OC\Preview\Movie’,
‘OC\Preview\PNG’,
‘OC\Preview\JPEG’,
‘OC\Preview\GIF’,
‘OC\Preview\BMP’,
‘OC\Preview\XBitmap’,
‘OC\Preview\MP3’,
‘OC\Preview\MP4’,
‘OC\Preview\TXT’,
‘OC\Preview\MarkDown’,
‘OC\Preview\PDF’
),

1 Like

If the nextcloud running in docker, you may need to install ffmpeg in that container

Sorry for replying to such an old post, but…
I just pulled ffmpeg into my image and the package + dependencies added an extra 326mb. Possibly why they don’t include it by default?