Well i thought that i would post this up, i've been using it for a while and after reading the whole pwnyoutube.com (http://pwnyoutube.com/) thing, basically if you put pwn before any YouTube url you can download the audio and video for that song or whatever it is. So if you took this url http://www.youtube.com/watch?v=T-C80qe1A8o and changed it to http://www.pwnyoutube.com/watch?v=T-C80qe1A8o. I thought "well hay its cool, but if your a geek you will have had something setup for a while" and this is what i've been using.
Basically its a small bash script, its design is to pull a .flv file from YouTube.com and convert it a .avi and then extract a .mp3 from it. It has a couple of dependencies and it is written purely for my personal use and so is custom to me. However i thought that i would post it here if anyone wants to use it then please do, if you want to change it please do, if you want to ignore this then please do.
You need to have YouTube-dl, ffmpeg, and Mplayer installed, if your using Ubuntu its pretty easy to do, but the sites for them are;
http://www.arrakis.es/~rggi3/youtube-dl/ < YouTube-dl site
http://www.mplayerhq.hu/design7/news.html < Mplayer site
http://www.ffmpeg.org/ < FFMpeg site
You supply the script the YouTube URL you want to rip, it then asks you to what name you want for the file.
When it is finished it will move the .mp3 file into /home/$USER/Music, and the .avi into /home/$USER/Music/Videos and clean up .flv file and anything else left over. The script is pretty self explanatory and feel free to do with it as you wish, i offer no technical support for it not that i think any are actually needed. There are probably hundreds of better alternatives.
If its any use to you then feel free to make a comment on it, and pass it around to whoever you want.
To download it either visit http://finux.110mb.com/finuxdownloads/finux-youtube-ripper.sh or open up a terminal and type
wget http://finux.110mb.com/finuxdownloads/finux-youtube-ripper.sh
Make sure that the file is excutable either by right clicking on the file and setting the permissions there, or by doing this in the temrinal; chmod +x ./finux-youtube.ripper.sh
I tend to put all my scripts in a /home/$USER/bin folder, however its up to you where you store this. Its excuted the same wat any bash script is
./finux-youtube-ripper.sh
There you go guys, nothing too exciting
Finux Out

Delicious
Digg
StumbleUpon


Comments
Handy script
AD ASTRA PER ASPERA
cheers
Actually hoping someone will do a better job than i did
Arron M Finnon
President
Abertay Linux Society