willfenton / slowed-reverb

Takes an audio file and a gif, outputs a slowed+reverb video (e.g http://tiny.cc/iprlez)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slowed+reverb

Takes an audio file and a gif, outputs a slowed+reverb video (e.g http://tiny.cc/iprlez)

Linux

When I wrote this script I was using Linux

Setup

// you should already have Python 3 and pip

$ sudo apt install sox libsox-fmt-all

$ pip install -r requirements.txt

Usage

$ python slowed-reverb.py -a <mp3 file> -g <gif file> -o <mp4 output>

e.g.
$ python slowed-reverb.py -a song.mp3 -g video.gif -o output.mp4

Docker (for non-Linux users)

This script is designed to run on Linux, so if you're on another OS like Windows I made a docker version.

Setup

// install docker

// build the docker image
$ docker build -t slowed-reverb:latest .

// move your files to the shared directory (shared between the docker container and your system)
$ mv /path/to/mp3 shared
$ mv /path/to/gif shared

Usage

// run docker container
$ docker run -it --rm --name slowed-reverb --mount type=bind,source=$(PWD)/shared,target=/usr/src/app/shared slowed-reverb:latest -a <mp3 file> -g <gif file> -o <mp4 output>

e.g.
$ docker run -it --rm --name slowed-reverb --mount type=bind,source=$(PWD)/shared,target=/usr/src/app/shared slowed-reverb:latest -a shared/sample.mp3 -g shared/sample.gif -o shared/sample-output.mp4

About

Takes an audio file and a gif, outputs a slowed+reverb video (e.g http://tiny.cc/iprlez)

License:MIT License


Languages

Language:Python 92.7%Language:Dockerfile 7.3%