Skip to main content

A convenient video thumbnails generator.

Project description

pypi license travis-ci

thumbup is a command-line video thumbnails generator written in Python.

Getting thumbup

You’ll need ffmpeg before you can use thumbup, which can be installed by

# on macOS
brew install ffmpeg

# on ubuntu (>= 14.04)
sudo apt-get install -y \
  libavformat-dev libavcodec-dev libavdevice-dev \
  libavutil-dev libswscale-dev libavresample-dev libavfilter-dev

ffmpeg is also widely available for many other distros. Please refer to the official website https://www.ffmpeg.org.

thumbup can be installed from pip by

pip install thumbup

Usage

To generate thumbnails for video files file1 and file2, simply use

thumbup file1 file2

The above will create file1.jpg and file2.jpg in the same directory as the video files.

To generate thumbnails for all video files in directory dir, use -r option. thumbup will recursively go through every video in directory dir and generate thumbnails next to them.

thumbup -r dir

Full help message for more control:

usage: thumbup.py [-h] [-v] [-r] [-f] [-o OFFSET] [-s X] FILE [FILE ...]

thumbup video thumbnail generator vv1.5.1

positional arguments:
  FILE                  one or more video files or directories (with -r)

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         logging more stuff
  -r, --rec             recursively go into all dirs
  -f, --force           force overwrite existing thumbnails
  -o OFFSET, --offset OFFSET
                        skip OFFSET (hh:mm:ss.ms or second) from the beginning
  -s X, --suffix X      add suffix to the output filename, input.mp4 ->
                        inputX.jpg

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

thumbup-1.5.1-py2.py3-none-any.whl (8.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file thumbup-1.5.1-py2.py3-none-any.whl.

File metadata

  • Download URL: thumbup-1.5.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

File hashes

Hashes for thumbup-1.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a1fb3f8ec0160fb91e97f14aea25df7cbe889f167a4827846e83bd8ee9b81c5e
MD5 0221c1dd438948abee319f66fb29330f
BLAKE2b-256 5bea2086a24a24a2964b1515f5d1e05a1d95b75480073046a2521178c363e249

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