Skip to content

Instantly share code, notes, and snippets.

@radex
Last active December 20, 2015 21:49
Show Gist options
  • Save radex/6200611 to your computer and use it in GitHub Desktop.
Save radex/6200611 to your computer and use it in GitHub Desktop.
Youtube music ripper (for when you find something you can't find anywhere else). Add to your bashrc/zshrc.
# Usage:
# `yt http://www.youtube.com/watch?v=...`
# Downloads a video from youtube, extracts audio out of it and saves as a 256kbps mp3 in Downloads
#
# Requires youtube-dl and ffmpeg
# (OSX: just `brew install youtube-dl ffmpeg`)
yt () {
youtube-dl $1 -o ~/Downloads/%\(title\)s.%\(ext\)s -x --audio-format mp3 --audio-quality 256
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment