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
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
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
Built Distribution
File details
Details for the file pyvideothumbnailer-2.1.0.tar.gz
.
File metadata
- Download URL: pyvideothumbnailer-2.1.0.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ba3dae2d6deae2d6faf2283b086700d373c9cfa306b26d8f3383ddf1790cc42 |
|
MD5 | 8a76af60534ee71a60dd72daa57c906d |
|
BLAKE2b-256 | 2f3783b67ee6b469523873f4ac77b487273d99b4d79c9ef616fa035ca495f587 |
File details
Details for the file pyvideothumbnailer-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: pyvideothumbnailer-2.1.0-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99791b31e20feef0ab3c2fd7bddbbf33654cf635c3adaade55ce67972821dcfc |
|
MD5 | d161cfcb2bd5e734b0746bfbdc3b1e33 |
|
BLAKE2b-256 | a65234cd025e3fb9bc4d2eac60d28a45550db5ec19d6675bb514daa6401f051d |