Giter Site home page Giter Site logo

alac / thumbup.py Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bl4ck5un/thumbup.py

0.0 0.0 0.0 460 KB

A convenient command-line video thumbnails generator.

Home Page: https://pypi.python.org/pypi/thumbup

License: MIT License

Python 100.00%

thumbup.py's Introduction

thumbup ๐Ÿ‘

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

thumbup.py's People

Contributors

bl4ck5un avatar alac avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.