plugin File Sharing Management: generate video thumbnails:
Video thumbnails are now generated too (recursively, along with images) on the `thumb` command. The poster frame is extracted at 25% of the duration (instead of a fixed 10s seek). Thumbnails are now kept in cache indefinitely.
This commit is contained in:
parent
bd1c93f7d4
commit
8e4e96dcbb
1 changed files with 114 additions and 28 deletions
|
|
@ -512,8 +512,7 @@ class FileSharing:
|
|||
thumb_size, thumb_id = await self._t.generate_thumbnail(
|
||||
image_path,
|
||||
max_thumb_size,
|
||||
# we keep thumbnails for 6 months
|
||||
60 * 60 * 24 * 31 * 6,
|
||||
C.MAX_AGE_PERSISTENT,
|
||||
)
|
||||
except Exception as e:
|
||||
log.warning(_("Can't create thumbnail: {reason}").format(reason=e))
|
||||
|
|
|
|||
Loading…
Reference in a new issue