Skip to content

Instantly share code, notes, and snippets.

View anandijain's full-sized avatar
😎

anand jain anandijain

😎
View GitHub Profile
@anandijain
anandijain / get_audio.sh
Last active March 24, 2020 10:11
youtube-dl + ffmpeg: url-> webm -> wav
#!/bin/sh
# requires youtube-dl and ffmpeg
# handy for musicians gathering samples
get_audio(){
youtube-dl -f251 $1 -o - | ffmpeg -i pipe: -ac 2 -f wav $2
}
# usage: get_audio "URL" "output.wav"