Given a list of links to some YouTube videos and a cover image, the script does the following things:
- Generates an image for making static video using
template.png
and given cover image
for every video (in every playlist) it does this:
- Downloads the video and extracts audio from it using yt-dlp
- Runs
spleeterdemucs on this audio, getting an instrumental - Runs ffmpeg to create static video from the instrumental (see 3) and the image (see 1)
- You can use a directory with mp3s as a source for songs with
--mp3-dir
- You can make mp3s instead of mp4s, just omit the cover image path
- python3.9
- python3.9-venv
- python3.9-dev (possibly)
- ffmpeg
python3.9 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 main.py <links_to_yt> --cover <path_to_cover_image>