In Firefox I use "DownloadHelper", is there a Mac OS X || Ubuntu command line tool that downloads YouTube videos for offline viewing?
YouTube – Download via Command Line
youtube
Related Solutions
Since none of the answers really address your problem (or at least not correctly) I'll give it a go.
The browser caches youtube videos as Flash (.flv
) although the extension is not apparent. With Internet Explorer, you can see the cache in Tools -> Internet Options -> Settings -> View Files. With Firefox you can type about:cache
into the address bar, and under Disk Cache Device, click List Cache Entries. Viewing the files in Firefox makes it far less cryptic so you can determine the contents easier.
With IE an explorer window will open, you can simply sort the files by size or date modified, and look for files that start like this: videoplayback?ip=0.0.0.0. Use the timestamps to determine if it's the right one. You can simply copy that file to desktop and rename it with the .flv extension.
With Firefox on the disk cache page, press Ctrl + F to bring up the Find dialog and type in videoplayback
, you should come to an entry in cache. Check timestamps to determine if the video is the right one, if it is click on it, if not click next in the find dialog until it is. There will be a link on the next page, right click it and select "save target as" and point it to your desktop. It should save instantly since the video is in your cache. Rename the extension to .flv
if required. Since this process is a little extensive, here it is step by step:
1
2
3
As far as programs and add-ons go, I don't think there currently is one for this.
There are at least two ways to accomplish this:
The software intercepts the download streams and saves any videos it detects (this is the most likely scenario)
The software simply copies it out of the web brower's cache (although not impossible, this is far less likely for two reasons: 1., requires specific knowledge of all supported web browsers and possibly also certain video players; and 2., not all videos are stored on disk in their entirety as this depends on the video player)
Edit: Added third and fourth possibilities...
The software requests the video by crafting the same download request as the viewer plug-in would, and then saves the data as it is received (this is different from the first possibility I listed above, and it may require some reverse-engineering of the movie players written in Flash or some packet sniffing to determine how the URI was actually constructed)
The software replaces the default handler for video players (or it may replace the Flash Player handler and act as an interim handler on web sites it recognizes such as YouTube.com, Video.Google.com, etc., but for web sites and Flash Animation content it doesn't specifically recognize it just passes the work off to the previous Flash Player plug-in to create a more "transparent" effect for the user)
Best Answer
Try youtube-dl. It's a CLI python script so it shall work on any platform that has python installed.