Skip to main content

A command line tool for creating video preview thumbnails images.

Project description

pyvideothumbnailer

Python Video Thumbnailer is a command line tool for creating video preview thumbnails. It can be used to create preview images of individual video files, videos located in a directory and optionally its subdirectories. It is based on PyAV, MediaInfo and PIL/Pillow.

Installation

Python Video Thumbnailer has the following dependencies:

Python Video Thumbnailer can be installed from PyPI using the Python Package Installer:

python3 -m pip install pyvideothumbnailer

As of Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu users can alternatively install a DEB package from this Ubuntu PPA.

sudo add-apt-repository ppa:haraldhetzner/ppa
sudo apt update
sudo apt install python3-pyvideothumbnailer

The optional configuration file .pyvideothumbnailer.conf needs to be placed in the user's home directory.

Usage

Python Video Thumbnailer has meaningful defaults. So you can just start creating your first preview thumbnails image of an individual video file by invoking:

pyvideothumbnailer [VIDEO FILE]

or to create thumbnails of all video files located in the current working directory:

pyvideothumbnailer

or to create thumbnails of all video files located in a directory:

pyvideothumbnailer [DIRECTORY CONTAINING VIDEOS]

or in case that you want to create previews of videos in subdirectories as well:

pyvideothumbnailer --recursive [DIRECTORY CONTAINING VIDEOS]

Examples

Here are two examples how it works creating preview thumbmnails of Big Buck Bunny.

Using defaults:

pyvideothumbnailer bbb_sunflower_1080p_60fps_normal.mp4

bbb_sunflower_1080p_60fps_normal_defaults mp4

White header font on black background, DejaVuSans TrueType font instead of the built-in font, adding a comment at the bottom of the header, custom preview thumbnails image width and 5 x 4 preview thumbnails:

pyvideothumbnailer --background-color black --header-font-color white --header-font DejaVuSans.ttf --timestamp-font DejaVuSans.ttf --comment-text "Created with pyvideothumbnailer" --width 1024 --columns 5 --rows 4 bbb_sunflower_1080p_60fps_normal.mp4

bbb_sunflower_1080p_60fps_normal mp4_example5

Documentation

Visit the wiki page for more comprehensive information on installation and usage.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyvideothumbnailer-2.2.0.tar.gz (27.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyvideothumbnailer-2.2.0-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

Details for the file pyvideothumbnailer-2.2.0.tar.gz.

File metadata

  • Download URL: pyvideothumbnailer-2.2.0.tar.gz
  • Upload date:
  • Size: 27.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pyvideothumbnailer-2.2.0.tar.gz
Algorithm Hash digest
SHA256 60449e88b5587bc17805b82b29f8f4b5fa8490098ccf1f3f0721c40c526179b1
MD5 f0bf09194e1fba488111837a5e8510d6
BLAKE2b-256 9e8212a5f7aecb555f09fc4c98868fc7264704075266f12cc72f7b43b43ee934

See more details on using hashes here.

File details

Details for the file pyvideothumbnailer-2.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyvideothumbnailer-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0b0d944886e0d450bfec2c3b08bf4142b6be9e44283dfaa81fd1c77dc1234f2
MD5 ca1f010cd0d89e28809258beedaf11dc
BLAKE2b-256 67ca003f897ed0e9c48d7683a47c6d9b9967a494d24614ca59bdc255f2769fd4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page