Thursday, March 05, 2009

using youtube-dl for downloading mp3 from youtube.com



$sudo apt-get install youtube-dl ffmpeg

$ youtube-dl http://www.youtube.com/watch?v=aR5j2Y6QCho
$ ffmpeg -i aR5j2Y6QCho.flv -vn -acodec copy aR5j2Y6QCho.mp3

and that is all
ffmpeg copies the mp3 part from the flash movie
-vn means no video
-a acodec copy means that it copies the audio part of the stream
-i is input file (flv)

No comments: