Skip to content

Instantly share code, notes, and snippets.

@jsrois
Created December 19, 2022 11:37
Show Gist options
  • Save jsrois/13988a9993b5a4eb948aa7758dc559cc to your computer and use it in GitHub Desktop.
Save jsrois/13988a9993b5a4eb948aa7758dc559cc to your computer and use it in GitHub Desktop.
Download and separate in tracks any song from Youtube
# default shell interpreter
# Requires youtube-dl and demucs, also might require ffmpeg
# usage: separate-music-tracks https://www.youtube.com/watch\?v\=P-Fst1RIkdU stanton-moore-blues-for-ben
youtube-dl --extract-audio --audio-format mp3 --output "$2.%(ext)s" $1
demucs demucs.separate "$2.mp3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment