Skip to main content

Creates a movie from a list of image files.

Project description

A movie Creator

This package provides a script to create a movie from a list of files. The idea to create this package came from the need in our group to glue together figures to form a movie that can be shown in a PowerPoint presentation. It's was too difficult to search and install new versions of ffmpeg and make sure to remember all the right commandline options.

Install

pip install movie-creator

Usage

$ create_movie -h
usage: create_movie [-h] [--verbose] --video-name VIDEO_NAME [--video-format VIDEO_FORMAT] --files FILES [--shape SHAPE]
                    [--fps FPS] [--loop LOOP] [--noresize]

Create an MP4 movie from the given PNG image files.

Note that color images can be easily converted to grayscale if you set the 
last element of shape to 1.

optional arguments:
  -h, --help            show this help message and exit
  --verbose, -v         Print verbose messages. If this option is specified multiple times, output will be more verbose.
  --video-name VIDEO_NAME
                        The name of the output video [default='output.mp4'].
  --video-format VIDEO_FORMAT
                        The format of the output video.
  --files FILES         A file glob [default='*.png']. Should be put in single quotes.
  --shape SHAPE         The required shape to which the images will be resized, e.g. '(2186, 3496, 4)'.
  --fps FPS             The number of frames per second [default=20].
  --loop LOOP           The number of times the video has to loop over all the frames [default=1].
  --noresize, --no-resize
                        Don't resize if all images already have the same size.

Description

All images need to be of the same size to produce a nice movie. Therefore, they will be resized unless you specify otherwise. If the shape argument is not given, all images will be resized to the shape of the first image.

Please note the image shape is a tuple with three values (x-size, y-size, depth=4).

The image files that are generated from the glob '--files' will be sorted by name.

Examples

The following command will concatenate all the screenshots of today (2021-01-15) into a movie with just one frame per second.

create_movie --video-name output.mp4 --files 'Screenshot 2021-01-15*.png' --noresize --fps=1

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

movie_creator-0.1.10.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

movie_creator-0.1.10-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file movie_creator-0.1.10.tar.gz.

File metadata

  • Download URL: movie_creator-0.1.10.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.3

File hashes

Hashes for movie_creator-0.1.10.tar.gz
Algorithm Hash digest
SHA256 2e7224c8a8c1eac036a7ac56f87f880aef986161ec1d510382c7fcaf3a6b7a58
MD5 cecaca5580de75769b82d82b2fefb947
BLAKE2b-256 b0f936cadfb04cfcc23832f63a1983541a24180287240c989064e809981233f3

See more details on using hashes here.

File details

Details for the file movie_creator-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: movie_creator-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.3

File hashes

Hashes for movie_creator-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 7917eaf8330a7e260cd82d5c829c85eeef89d951e2ff4a05b822b0da18092c3c
MD5 419ca7e3a0f145fa9469939f191290af
BLAKE2b-256 3f6b7c5cbfc434899a8a5bc5f5550161d51bb8b189c56d34892348540c35370c

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