Skip to content

Instantly share code, notes, and snippets.

@kleag
kleag / split_youtube_tracks.sh
Created March 31, 2024 19:10
A bash script to split a youtube video sound into tracks, using youtube-to-mp3, sox and openunmix
#!/bin/bash
pip install --upgrade openunmix youtube-to-mp3
sudo apt install sox
mp3=$(yturl2mp3 $1 | grep "Writing audio in" | sed -e "s/.*audio in //g")
flac=$(echo $mp3 | sed -e "s/.mp3/.flac/")
sox "$mp3" "$flac"
umx --no-cuda "$flac"
@kleag
kleag / file1.txt
Created January 19, 2018 10:51
Created via API
Demo