Skip to content

Instantly share code, notes, and snippets.

@dakk
Created November 11, 2012 11:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save dakk/4054630 to your computer and use it in GitHub Desktop.
Downlaod a video from youtube and get the audio as mp3
TITLE=`youtube-dl $1 -e`
youtube-dl $1 -o "$TITLE.flv"
ffmpeg -i "$TITLE.flv" -f mp3 "$TITLE.mp3"
rm "$TITLE.flv"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment