Skip to main content

Build videos from image directories

Project description

flippy

Python script for generating videos by rapidly flipping through or overlaying images.

Preview Example

Installation

pip install flippy

This will automatically download and install flippy, opencv-python, and numpy.

Usage

flippy /some/image/path

This will build a video out of the images in the directory /some/image/path, using the auto-detected resolution at the default 20 FPS.

Flippy is heavily configurable, and accepts a number of command line arguments.

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

For the full list of availble arguments, type flippy --help.

usage: flippy [-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

Requirements

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

flippy-0.1.2.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file flippy-0.1.2.tar.gz.

File metadata

  • Download URL: flippy-0.1.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

File hashes

Hashes for flippy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3981437466314b98d6e444f57a5c4be9e1fb12702e02e650548bccb87461ea71
MD5 850ab171be2abca3a561c7af337101b2
BLAKE2b-256 327b0d4fdbe2d03f5ba387bf165faeb9da73414b98ea231f4af261d5cd89cd40

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page