I have a youtube video I am listening to, having waited for it to download from youtube. Now, if I close the Chrome browser tab it is in, I will have to wait for the download again. The file must exist somewhere on a local cache, but how can I retrieve it from that cache?

link|improve this question

65% accept rate
Could we get an answer for Linux as well please? – MaxMackie Aug 5 '11 at 11:33
feedback

2 Answers

up vote 3 down vote accepted

Flash video files are marked with a delete-on-handle-closed flag whereupon as soon as the handle to the file is closed (eg, the page it’s playing in is closed), the file-system immediately deletes the file. Furthermore, you cannot simply keep the page open and then copy the file because these files are opened in exclusive-access mode, so trying to open or copy them gives an access-denied error.


What you need to do to copy Flash videos from the browser cache (this works for other browsers as well, but you need to change the cache directory) is as follows:

  1. Get a copy of Unlocker and install it
  2. Clear the cache (to make the job easier)
  3. Navigate to Chrome’s cache location—the defaults are
    • %localappdata%\Google\Chrome\User Data\Default\Cache for Google Chrome
    • %localappdata%\Chromium\User Data\Default\Cache for Chromium
  4. Reload the page with the Flash video
  5. Wait for the video to finish downloading (ie, “buffering”)
  6. Sort the files by size
  7. Right-click the largest one and select Unlocker
  8. Click the drop-down list in the lower-left corner and select Copy
  9. Save the file somewhere, giving it an appropriate name and extension
  10. Close the Unlocker dialog (and if you want, the tab as well)
  11. Open the copy of the file in your player (VLC and GOM are a popular choices for FLVs)

NB, most video players can’t play partial Flash videos. That is, you need to make sure to have the beginning of the video, even if you stop the download before it finish. In other words, you can’t just skip to the middle of a video, then use Unlocker to copy a section from the middle because when you try to play it back, it will not work (the video will be blank, and if you are lucky, you may get the audio). Getting it from the start of the video, but stopping before the end does however work, though it may stop playing back some seconds before the actual point at which you stopped it (because of the block-nature of the encoding scheme used).


Also, you can always just use a video-downloading extension. I prefer YousableTubeFix because it includes Youtube customizing functions like disabling autoplay/autobuffer, removing comments, etc. There are also websites like KeepVid that can get you the videos for download.

link|improve this answer
Lovely to find Unlocker. I had a similar tool for XP, but it disappeared with the advent of Vista, and I couldn't find it for Windows 7 either, until now. – ProfKaos Aug 8 '11 at 7:16
feedback

Firstly, to view the cached URLs you can enter about:cache into the chrome address bar.

You can access the Chrome cache at the following location (enter into the Windows Explorer):

%LocalAppData%\Google\Chrome\user data\default\cache

However, the file extensions are removed. So you will have to order by size and then check each individually.

Alternatively, you could use something like the Google Chrome Cache Viewer.

link|improve this answer
That won’t cut it; the files are locked and set to be immediately deleted once released. – Synetech Aug 8 '11 at 6:41
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.