Skip to content

December 28, 2011

1

Playing temporary files with mplayer on Flash 11

Back in the times of Flash Player 10 we could do an mplayer /tmp/Flash*. You could use mplayer on your flash videos, or even download them! Sadly, Adobe realized that, and fixed it.

But it’s still posible! Basically, each process has a list in /proc of all the File Descriptors it has opened, between them we’ll find our flv file.
More concisely, It will reside on /proc/_PID_/fd where PID is the process id, and will be a symbolic link, pointing to /tmp/FlashXXX
You’ve read right, points to /tmp/FlashXXX as the old ones, so we can just list it and filter by that name

Save or play your youtube, megavideo, daylimotion and many more flash videos on linux!

I first tried listing all files in /proc/*/fd but that was slow as hell, so I filtered out (thanks to pgrep) the ones matching all full processes containing “flash” (should work on firefox and chrome at least) in their full call.

for i in $(pgrep -f flash); do file /proc/$i/fd/*|awk '/tmp\/Flash/ { gsub(/:/, ""); print $1 }'; done

You can now just use that files with mplayer!

I, personally, have buggy speakers and use it for manually increasing the volume output with softvol switch (forcing a software volume mixing)

mplayer -fs -zoom -idx -softvol -softvol-max 10000 -volume 5000 `for i in $(pgrep -f flash); do file /proc/$i/fd/*|awk '/tmp\/Flash/ { gsub(/:/, ""); print $1 }'; done`

 

Read more from Life
1 Comment Post a comment
  1. Dec 30 2011

    Genial, cunado estaba Flash 10 usaba mplayer para ver todos los vídeos, ahora podre volver a hacerlos, gracias!

    Reply

Share your thoughts, post a comment.

(required)
(required)

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments