semvec/pypi-packages huggingface dataset:
exploding-springfield 0.1.0
exploding-springfield. A cookietemple based .
License: MIT
Requires Python: >=3.6.1,<4.0.0

exploding-springfield
===========================

|PyPI| |Python Version| |License| |Read the Docs| |Build| |Tests| |Codecov| |pre-commit| |Black|

.. |PyPI| image:: https://img.shields.io/pypi/v/exploding-springfield.svg
   :target: https://pypi.org/project/exploding-springfield/
   :alt: PyPI
.. |Python Version| image:: https://img.shields.io/pypi/pyversions/exploding-springfield
   :target: https://pypi.org/project/exploding-springfield
   :alt: Python Version
.. |License| image:: https://img.shields.io/github/license/zethson/exploding-springfield
   :target: https://opensource.org/licenses/MIT
   :alt: License
.. |Read the Docs| image:: https://img.shields.io/readthedocs/exploding-springfield/latest.svg?label=Read%20the%20Docs
   :target: https://exploding-springfield.readthedocs.io/
   :alt: Read the documentation at https://exploding-springfield.readthedocs.io/
.. |Build| image:: https://github.com/zethson/exploding-springfield/workflows/Build%20exploding-springfield%20Package/badge.svg
   :target: https://github.com/zethson/exploding-springfield/workflows/Build%20exploding-springfield%20Package/badge.svg
   :alt: Build package Status
.. |Tests| image:: https://github.com/zethson/exploding-springfield/workflows/Tests/badge.svg
   :target: https://github.com/zethson/exploding-springfield/actions?workflow=Tests
   :alt: Tests
.. |Codecov| image:: https://codecov.io/gh/zethson/exploding-springfield/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/zethson/exploding-springfield
   :alt: Codecov
.. |pre-commit| image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
   :target: https://github.com/pre-commit/pre-commit
   :alt: pre-commit
.. |Black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/psf/black
   :alt: Black


Features
--------

* TODO


Installation
------------

You can install *exploding-springfield* via pip_ from PyPI_:

.. code:: console

   $ pip install exploding-springfield


Usage
-----

Please see the `Command-line Reference <Usage_>`_ for details.


Contributing
------------

Contributions are very welcome. To learn more, see the `Contributor Guide`_.


Credits
-------

This package was created with cookietemple_ using Cookiecutter_ based on Hypermodern_Python_Cookiecutter_.

.. _cookietemple: https://cookietemple.com
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _MIT: http://opensource.org/licenses/MIT
.. _PyPI: https://pypi.org/
.. _Hypermodern_Python_Cookiecutter: https://github.com/cjolowicz/cookiecutter-hypermodern-python
.. _pip: https://pip.pypa.io/
.. _Contributor Guide: CONTRIBUTING.rst
.. _Usage: https://exploding-springfield.readthedocs.io/en/latest/usage.html
movie-creator 0.1.10
Creates a movie from a list of image files.
License: MIT
Requires Python: >=3.8.0

# 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