Hi there !
I’d like to enable the preview for my video. I could find some answers, but none explaining step by step what to do. I’m pretty noob to docker et linux commands, that’s why I couldn’t make it work.
Could someone help me (and possibly others noobs ^^) with this ?
I have Nexctloud installed in Docker (windows) and Preview Generator installed.
I understand that I need to install ffmpeg, give the info to nextcloud and add some lines for the files I want preview for, but for these steps I couldn’t find any “step by step” tuto
Thanks
You can find instructions here for rebuilding the Docker image and adding features. It’s fairly easy, and the build process is handled by docker-compose automatically once set up.
https://github.com/nextcloud/docker/blob/master/README.md#adding-features
@Django43
Like I said, my nextcloud is installed on Docker. I don’t know how to use
apt install ffmpeg imagemagick ghostscript
So in installed ffmpeg with this
docker pull jrottenberg/ffmpeg
Then I added
'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\\PDF',
7 => 'OC\\Preview\\Image',
8 => 'OC\\Preview\\Photoshop',
9 => 'OC\\Preview\\TIFF',
10 => 'OC\\Preview\\SVG',
11 => 'OC\\Preview\\Font',
12 => 'OC\\Preview\\MP3',
13 => 'OC\\Preview\\Movie',
14 => 'OC\\Preview\\MKV',
15 => 'OC\\Preview\\MP4',
16 => 'OC\\Preview\\AVI',
),
at the end of my config.php.
But I still cannot see video preview.
@KarlF12
Like I said, I’m REALLY new to all this, and despite being “fairly easy”, I don’t understand how to use this. Plus, I’m using Watchtower tu automaticly update ma containers, and it seems that it won’t work with your method : /
You can actually run this manually inside the container if you just want to see if it works. For a more permanent/automatic solution, you would use a Dockerfile to run these commands for you each time the image is updated.
Open a shell in the container like this:
docker exec -it container-name /bin/bash
Then:
apt update
apt install ffmpeg imagemagick ghostscript
Without the Dockerfile, this change will get wiped next time you update the Nextcloud image.
All that does is download a separate docker image. Even if you created another container running that image, it would be a different container, almost like running it on a different computer.
I have never heard of Watchtower.