Last active
May 7, 2020 23:22
-
-
Save johndpope/859ea77521ef0dfe17eff15fadf1f9a1 to your computer and use it in GitHub Desktop.
gist to split out youtube mp3-> tracks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH="$HOME/.cargo/bin:$PATH" | |
mp3(){cd /Users/johndpope/Downloads/spleeter | |
mv *.mp3 backup | |
mv output/* backup | |
youtube-dl $1 --extract-audio --audio-format mp3 -o "%(title)s-%(id)s.%(ext)s" | |
thefile=$(ls *.mp3) | |
echo "Splitting file..." | |
split $thefile | |
cp output/* /Users/johndpope/Dropbox | |
mv output/* backup | |
} | |
split(){ spleeter separate -p spleeter:5stems -o output -i "$1" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment