Create screen shots of a video file, and upload them to an image host.


Keywords
screenshot, mplayer, ffmpeg, python3, video
License
MIT
Install
pip install hypershot==0.3.1

Documentation

Hypershot

The hypershot command line tool creates screen shots of a video file, and uploads them to an image host. You can also upload existing images, using the same configuration as for the screen shots.

Demo Terminal Session

You can find the main documentation regarding installation, configuration and usage on Read the Docs, what follows is just developer information.

IN DEVELOPMENT

GitLab CI Coverage Report PyPI Documentation

Contents

Working with the Source Code

Creating a Working Directory

deactivate 2>/dev/null
pip3 --version || sudo apt-get install python3-pip
xargs -n1 pip3 install --user -U <<<"pip tox"

# Use "git@gitlab.com:kybernetics/hypershot.git" if you have developer access
git clone "https://gitlab.com/kybernetics/hypershot.git"
cd hypershot && ~/.local/bin/tox -e $_
. .env

Building the Documentation Locally

To build the Sphinx documentation, call tox -e docs. On success, the index page can be found at docs/_build/html/index.html.

Releasing to PyPI

Building and uploading a (pre-)release:

# pre-release
: $(( 1 + $(./setup.py --version | cut -f4 -d. | tr -cd 0-9) ))
bumpr -s $(./setup.py --version | tr -d .0-9)$_

# release
version="$(./setup.py --version)"
git commit -m "Release $version" setup.cfg

git tag -a "v$version" -m "Release $version" && git push && git push --tags

# build & upload
rm -rf dist ; ./setup.py sdist bdist_wheel
twine upload --config-file setup.cfg dist/*.{zip,whl}

# post release
bumpr -m 2>/dev/null && bumpr -p -s dev1 && git add src/*/__init__.py
git commit -m "bump to $(./setup.py --version) after $version release"

Links