This guide is no longer supported and
should not be used.
Like to download music videos from youtube for your phone or ipod but sick of the low quality flash video files? Many youtube videos now come with h264 video and aac sound, details of how to download these are in this 'mini guide'.
Warning: Please check that the music video you download from youtube.com does not violate the copyright laws in your country.
More information on the thorny topic of youtube and its policies on copyright can be found here.
First clean out any old copies of youtube-dl and download the newest version (the version in Intrepid Ibex will not work correctly with high quality video):
Now use the following syntax to download a sample high quality music video:
$ sudo apt-get remove youtube-dl
$ sudo wget http://bitbucket.org/rg3/youtube-dl/raw/2009.08.08/youtube-dl -O /usr/local/bin/youtube-dl
$ sudo chmod +x /usr/local/bin/youtube-dl
And there you have it! A quick look at this particular file shows the following specs:
$ cd Desktop
$ youtube-dl -b -o '%(stitle)s.%(ext)s' 'http://www.youtube.com/watch?v=doTBT46wMvA'
Simply add the address of your own music video in place of mine and off you go. No more scratching around for flash video converters I reckon . For more details about this amazing Python script have a look at the author's website:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Ramstein_Du_Hast.mp4':
Duration: 00:03:54.10, start: 0.000000, bitrate: 378 kb/s
Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16
Stream #0.1(und): Video: h264, yuv420p, 352x234, 25 tbr, 24.98 tbn, 24.98 tb
youtube-dl: Download videos from YouTube.com