Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 2.66 KB

README.textile

File metadata and controls

33 lines (20 loc) · 2.66 KB

GetVid – YouTube video downloader and audio extractor library

GetVid allows you to hand it a series of urls to YouTube videos and it will download the highest resolution video available, and rip the audio to an AIFF file using qt_tools

Installation

Grab the source from GitHub: http://github.com/dgiunta/get_vid

Feel free to use/customize the get_vids executable located in the bin directory.

Usage

To use the binary, just pass a space-delimited set of youtube links to the get_vids command like so:

./bin/get_vids http://www.youtube.com/watch?v=rK6zDHt3Ml0 http://www.youtube.com/watch?v=1Nmo1zEHhms http://www.youtube.com/watch?v=LXXAHe4V_4s http://www.youtube.com/watch?v=t1pKyKyMI8k http://www.youtube.com/watch?v=iwsWEHbbBfI

By default the binary will download the video files using wget, and then extract the audio to .aif files, and then finally zip up both the video and audio into a combined zip archive, as well as individual audio and video archives.

Dependencies

  • We now use ffmpeg and the lame encoder which is tricky to get installed, but once you do, everything else is pretty easy-peasy.
  • [FIXED – No longer a dependency] wget for downloading the files. I would really like to remove this dependency, but unfortunately, I can’t seem to get the various Ruby utilities to follow the necessary redirects. More on this in a moment.
  • [FIXED – No longer a dependency] QuickTime This does not have to be the Pro version, but is necessary to rip the audio.
  • [FIXED – No longer a dependency] qt_tools for exporting the audio from the downloaded video to AIFF format. This is another dependency I wouldn’t mind breaking, but it’s really fast and does the job rather well. I believe these tools only work on Unix-based systems.
  • [FIXED – No longer a dependency] http://keepvid.com This site is used by the application to get the url to the actual mp4 files on YouTube’s servers. For the moment, this script is just parsing out the HTML looking for the download link supplied by keepvid.com. This would be another dependency that would be nice to internalize… perhaps to do the work that keepvid.com is doing internally.

Coming Soon

I am hoping to build a Sinatra web application similar to keepvid.com that will allow you to hand a bunch of youtube urls to it, and then download the resulting files. Stay tuned. DONE!

I have written a GetVid Sinatra application, though it’s not for public consumption. It was actually pretty easy, all things considered, and was a great project to get up on its feet. Perhaps at some point I’ll share.