nextcloud / previewgenerator

Nextcloud app to do preview generation in the background.
https://apps.nextcloud.com/apps/previewgenerator
GNU Affero General Public License v3.0
455 stars 57 forks source link

Timestamp of thumbnail in video #437

Open dieterdanger opened 8 months ago

dieterdanger commented 8 months ago

Hello everyone, is it possible to set a default timestamp in seconds (or 0.5 * video length respectively) for preview generation of videos? I have multiple videos where there is either a black thumbnail or a logo with the default settings.

I've tried to configure Nextcloud to use a bash wrapper-script instead of the ffmpeg binary but I can't get it to work.

Any help highly appreciated :-)

Best regards Dennis

joshtrichards commented 6 months ago

You could experiment with adjusting things here:

https://github.com/nextcloud/server/blob/4b85a886207c2a5d2faffc055e7662ea99118c1a/lib/private/Preview/Movie.php#L132-L137

(FYI: Technically this is handled by a provider in Nextcloud Server, not within the previewgenerator app)