Friday, February 8, 2013

ffmpeg + youtube-dl + bash = automatic youtube music downloader

$ sudo apt-get install  ffmpeg libavcodec-extra-53
$ sudo youtube-dl
$ vim ~/.bashrc 
or for zshell users
$ vim ~/.zshrc 

add
mp3(){
    youtube-dl $1 --extract-audio --title --audio-format mp3

 usage

mp3 http://www.youtube.com/watch\?v\=cRbFP0oHmRc

it will download the video and convert it to mp3.


No comments: