Skip to content

sukhbinder/vidtoolz-apply-fadein-fadeout

Repository files navigation

vidtoolz-apply-fadein-fadeout

PyPI Changelog Tests License

Apply fadein-fadeout effects on videos

Installation

First install vidtoolz.

pip install vidtoolz

Then install this plugin in the same environment as your vidtoolz application.

vidtoolz install vidtoolz-apply-fadein-fadeout

Usage

type vid fadeinout --help to get help

usage: vid fadeinout [-h] [-d DURATION] [-o OUTPUT] [-oa]
                     video {fadein,fadeout,both}

Apply fadein-fadeout effects on videos

positional arguments:
  video                 Path to the input video file.
  {fadein,fadeout,both}
                        Type of fade effect to apply.

optional arguments:
  -h, --help            show this help message and exit
  -d DURATION, --duration DURATION
                        Duration of the fade effect in seconds. (Default 1)
  -o OUTPUT, --output OUTPUT
                        Path for the output video file. Defaults to
                        'output_video.mp4'.
  -oa, --only-audio     Apply effects only on audio.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd vidtoolz-apply-fadein-fadeout
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

python -m pytest

About

Apply fadein-fadeout effects on videos

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages