Thursday, May 3, 2012

How to copy a google chrome cache flash video in linux

I wanted to copy a flash video which is playing in my google chrome browser. In windows this can be achieved using simple tool called video cache viewer. But in linux story is much more different as it is difficult.

So with this article i will explain how to achieve this task.

1. open a terminal and type


ps -ef | grep flash

this will show the process id of you flashplayer (make sure to select the flash process which used by chrome browser)


2. then go to "/proc" directory and go into the folder named by the process id that you have obtained in     step 1. And go into the "fd" folder.


ex: lets assume that the process id of the flash used in chrome is 2424
now you should be inside "~/proc/2424/fd" directory

3. then type


ls -al | grep *flash*


this will show all the flash file descriptors  like below

lrwx------ 1 user user 64 2012-05-02 23:15 21 -> /tmp/FlashXXtD6PiG (deleted) lr-x------ 1 user user 64 2012-05-02 23:15 27 -> /tmp/FlashXXrotLjm (deleted) lrwx------ 1 user user 64 2012-05-02 23:15 3 -> socket:[22151] lrwx------ 1 user user 64 2012-05-02 23:15 4 -> socket:[25121]


Ones that has been highlighted in orange  color are the file descriptors of the flash files that have been opened. Walah!!! we r done copy them to where ever folder you want by simple


cp <file_des_no> destination




No comments:

Post a Comment