How to save a stream among Linux?

If you are watching a Flash stream (not youtube) then it is possible to save it to a FLV file.

At first you have to buffer the full stream that is the gray bar.
When it is full loaded, execute at first this to locate the flash buffer:

lsof | grep Flash

After this you get a list with some informations.
The first line defines the flash-browser-plugin and the number behind is the PID of your stream. After this you find your username and behind this you have two numbers and a letter. The two numbers defines the full buffer and our “File ID” then adobe splits the stream in more parts.

Get your Flash File with this command:

cat /proc/"PID"/fd/"File ID" > ~/Vidoes/"Name".flv

Now you have fun with your offline stream.

Update: if you execute the “lsof | grep Flash" and you don´t get an File ID. Then you have to do one more step.

Take your PID from the lsof and make a second lsof on the base of the PID.

lsof -p 11621 |grep deleted

After that cat or copy your Flash File and have fun:

cat /proc/"PID"/fd/"File ID" > ~/Vidoes/"Name".flv

Ein Gedanke zu „How to save a stream among Linux?“

  1. Does not work with FF 28 and FlashPlayer 11.x (Fedora 20) . New solution:

    1) Flash-PID ermitteln:
    lsof |grep flash
    2) auf Basis der PID
    lsof -p PID |grep deleted
    3) Nun sieht man wie im Artikel erwähnt die 3er-Kombination aus 2 Zahlen und Buchstabe (zB 16u) – auf Basis der ersten beiden Stellen (eben 16):
    cp /proc/11621/fd/16 Outfile.flv

Kommentare sind geschlossen.