How to download any flash-based videoclip (Linux Only)

Get help from our tech-savvy crew: learn how to make previews, where to upload, how to edit vids, etc.

Moderator: Jake

Post Reply
JaneyE
WWGFA Orderly
Posts: 425
Joined: Sun May 15, 2011 10:21 am
Has thanked: 41 times
Been thanked: 125 times

How to download any flash-based videoclip (Linux Only)

Post by JaneyE »

Hello *,

just put on my long purple satin gloves to share with you all a bit of news.

The good news: I found out how to “download” ANY flash-based video from the net (e.g. from http://www.porn.com).
The bad news: This works only with Linux :( (Lucky us who use Linux anyway!) It definitely doesn't work on Windows computers. It may work in a similar way on Macs, but I don't know for sure as I have no access to one.

So here it is:

1) Let the browser play the whole video so that it can download the whole file in the background.

2) Open an xterm/konsole/gnome-terminal window.

3) Type the following:

Code: Select all

\ps x | grep -i flash | grep -v grep
You will get an output that looks like this:

Code: Select all

3926 ?      Sl  2:48  /opt/google/chrome/chrome --type=plugin --plugin-path=/opt/google/chrome/libgcflashplayer.so --lang=en-GB
Every displayed line describes a process run by the flashplayer plugin. Usually, there will be exactly one line per currently running browser. Now identify the number at the beginning of the line, in this exaple “3926”.

4) Type the following in your terminal window (replace “3926” by whatever number you identify):

Code: Select all

cd /proc/3926/fd ; ls -al | grep /tmp/
This will list all so-called file descriptors used by the process. The output looks like this:

Code: Select all

lr-x------ 1 janey janey 64 Aug  3 10:34 23 -> /tmp/FlashXXex1MJ9 (deleted)
One of the listed pseudo-files points to the video data you want to get (file descriptors are not files but pointers to the memory address where the data used by the process are stored). In this example, there is only one pseudo-file called “23”. Copy its contents to an arbitrary target file, e.g.

Code: Select all

cat 23 > /home/janey/newvideo.flv
Don't use “cp” to copy, that will copy only the descriptor link, not the memory contents. Use “cat” as above.

5) Finished!

Kisses,
Janey
Last edited by JaneyE on Thu Aug 04, 2011 11:57 pm, edited 1 time in total.
User avatar
wmowrg
MIA
Posts: 4136
Joined: Tue Dec 21, 2010 3:35 pm
Location: England
Has thanked: 22 times
Been thanked: 98 times

Re: How to download any flash-based videoclip

Post by wmowrg »

Nice one Janey,

Does this mean we can look forward to loads of video posts of stuff that us Windows users can't rip ??? ;)
Post Reply

Return to “Technical Tutorials”