nem.ec

Programming Information Security Recipes Personal Code Snippets

Download a video from youtube and extract the vocals

Some description

This command requires Python 3, youtube-dl, and ffmpeg to be installed.

python3 -m venv env
source env/bin/activate
pip install wheel spleeter
VIDEO_URL='https://www.youtube.com/watch?v=e-ORhEE9VVg'
youtube-dl -f bestaudio --extract-audio "$VIDEO_URL" --exec "spleeter separate -i {} -p spleeter:2stems -o . && rm {} "
# wait for a couple of minutes
Copied!

Use your own input

If you have values you'd like to use instead of the provided variables, type or paste your data into the variable inputs below. If Javascript is enabled, your text will automatically be added to the command and you can click to copy.