Saving video files from flash player cache

HD movies no longer are cached in the Firefox cache, so about:cache will not list cached HD videos. Adobe have got a little tricker to try to prevent you from simply copying the files from the cache and renaming them.

However, all is not lost. The files are cached in the flash player, but are immediately 'deleted' so that they are not available outside of the flash player process. To find these files follow these steps:

  • ps ax | grep flash ---> this will give you the process number of the flash player. You will need this for the next command;
  • lsof -p {PID} ---> replace {PID} with the process number of the flash player - take special note of the '(deleted)' file which is large in size and note the FD number of that file. This will be the flash movie file;
  • cat /proc/{PID}/fd/{FD} > /home/user/yourvidfile.flv ---> here we use cat and pipe the file from within the process to our own copy in the home directory.

To losslessly convert the .flv to .mp4 so it'll play on a range of media players (like the built in player on LG tv's) use ffmpeg:

  • ffmpeg -i yourvidfile.flv -vcodec copy -acodec copy yourvidfile.mp4

Related articles:

Saving weight with lighter spokes

There's two ways to go in terms of saving weight with spokes:

Saving weight with less spokes

Two approaches:

Converting from v-brakes to disc brakes

I've always liked the dry weather performance and simplicity of XTR v-brakes. A 10 year drought meant that wet weather performance was not an issue. That is until last year when we had the wettest year in 100 ...

USB (5V) power from different voltage sources

5V from more than 5V

Converting Rockshox SID from 9mm QR to 15mm Maxle

I recently got a second set of 120mm SIDs, this time with 15mm lowers. As a result, I thought I'd see what all the 15mm fuss is about and put the lowers from this fork onto my ...