Skip to main content

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

Metadata

Release files for movie-creator 0.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for movie-creator 0.1.10
File Size Uploaded Provenance Actions
movie_creator-0.1.10.tar.gz 4.4 kB Without provenance Details for movie_creator-0.1.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for movie-creator 0.1.10
File Interpreter ABI Platform Actions
movie_creator-0.1.10-py3-none-any.whl Python 3 none any Details for movie_creator-0.1.10-py3-none-any.whl

Total release size: 10.1 kB

Release files / movie_creator-0.1.10.tar.gz

Download URL movie_creator-0.1.10.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2e7224c8a8c1eac036a7ac56f87f880aef986161ec1d510382c7fcaf3a6b7a58
BLAKE2b-256 checksum
How to use checksums
b0f936cadfb04cfcc23832f63a1983541a24180287240c989064e809981233f3
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / movie_creator-0.1.10-py3-none-any.whl

Download URL movie_creator-0.1.10-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7917eaf8330a7e260cd82d5c829c85eeef89d951e2ff4a05b822b0da18092c3c
BLAKE2b-256 checksum
How to use checksums
3f6b7c5cbfc434899a8a5bc5f5550161d51bb8b189c56d34892348540c35370c
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for movie-creator 0.1.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page