Clip and Ship is a Python script that automates the downloading, editing, concatenating, and uploading of Twitch clips using FFmpeg and MoviePy.
- Clone the repository.
- Make sure you have Python 3 and pip installed by running the following in your terminal:
python -V
orpy -V
pip --version
- Open clip-and-ship in your terminal and follow this guide to create a virtual environment.
- After activating the virtual environment, run
pip install -r requirements.txt
. - Install ImageMagick following the official instructions. If you are on Windows, use the top-most recommended installer.
- Verify ImageMagick is registered in your PATH by running
magick -version
. You may have to restart your terminal first.
To communicate with the Twitch API, you'll need an access token.
- Follow this guide to register a Twitch Developer app.
Note: OAuth Redirect URLs should be "http://localhost". - Copy the client ID and a new client secret to
twitch_client_secret.json.example
and remove.example
from the file name.
Skip this step if you don't intend to automate uploading to YouTube.
./main.py -h
to show argument options. If you encounter permission errors, run chmod +x main.py
.
Simplest usage is ./main.py [game name]
, for example, ./main.py Minecraft
. Use double quotes for games with spaces or special characters: ./main.py "World of Warcraft"
.