Build videos from image directories
Project description
flippy
Python script for generating videos by rapidly flipping through or overlaying images.
Requirements
- OpenCV
- numpy
Usage
Simple example:
flippy /some/image/path
INFO:root:Auto-detected image dimensions as 64x64...
INFO:root:Building fading timelapse of 24247 images in /some/path/faces...
INFO:root:Output settings: 64x64 @ 20.0 FPS
INFO:root:Successfully wrote video.avi
Slightly more complicated example:
flippy /some/image/path -o ~/output.avi -f 60.0 -c XVID -t blend
INFO:root:Auto-detected image dimensions as 64x64...
INFO:root:Building fading timelapse of 24247 images in /some/path/faces...
INFO:root:Output settings: 64x64 @ 60.0 FPS
INFO:root:Successfully wrote /home/user/output.avi
Console help:
usage: lapse.py [-h] [-v] [-f FPS] [-o OUTPUT] [-c CODEC] [-t TYPE] [-r REGEX]
path [path ...]
Build a fading timelapse of overlayed images.
positional arguments:
path path to read image files from
optional arguments:
-h, --help show this help message and exit
-v, --verbose verbose logging
-f FPS, --fps FPS frames per second
-o OUTPUT, --output OUTPUT
output file
-c CODEC, --codec CODEC
fourcc codec (DIVX, XVID, MJPG, X264, WMV1, WMV2)
-t TYPE, --type TYPE type of video (blend, flipbook, split)
-r REGEX, --regex REGEX
file regex for images in path, default matches common
lowercase image extensions
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flippy-0.1.1.tar.gz
(3.5 kB
view hashes)
Built Distribution
flippy-0.1.1-py3-none-any.whl
(4.3 kB
view hashes)