thumbnail_enricher.thumbnail_enricher#
Thumbnail Enricher for generating visual previews of video files.
The ThumbnailEnricher processes video files in Metadata objects and creates evenly distributed thumbnail images. These thumbnails provide visual snapshots of the video’s keyframes, helping users preview content and identify important moments without watching the entire video.
Module Contents#
- class thumbnail_enricher.thumbnail_enricher.ThumbnailEnricher#
Bases:
auto_archiver.core.EnricherGenerates thumbnails for all the media
- enrich(to_enrich: auto_archiver.core.Metadata) None#
Uses or reads the video duration to generate thumbnails Calculates how many thumbnails to generate and at which timestamps based on the video duration, the number of thumbnails per minute and the max number of thumbnails. Thumbnails are equally distributed across the video duration.