[ubuntu-za] Copy Flash Video in Firefox 4
Andy Rabagliati
andyr at wizzy.com
Tue Mar 29 17:16:33 UTC 2011
On Sat, 26 Mar 2011, helge.reikeras at gmail.com wrote:
> Hi
>
> With Firefox 3 I used to be able to copy flash video that was still
> open in tab from cache using
>
> >> cp /tmp/Flash<id> ~/Videos/
>
> To my surprise the same did not work with Firefox 4. It seems the
> problem is related to FlashPlayer 10.2. Apparently the file gets
> flagged as deleted:
>
> >> lsof | grep deleted
> plugin-co 4292 helge 17u REG 8,6 18987840
> 3801105 /tmp/FlashXXJ3YUk0 (deleted)
>
> The solution I ended up with is to use /proc, pid and fd like this:
>
> >> cp /proc/4292/fd/17 ~/Videos/
>
> It should work as long as the flashed tab is still open in Firefox.
>From casted on #clug, works for youtube :-
Cheers, Andy!
#! /bin/sh
lsof -n -P | grep FlashXX | awk '{ print "/proc/" $2 "/fd/" substr($4, 1, length($4)-1) }' | while read f
do
echo $f
cp $f /tmp/
done
More information about the ubuntu-za
mailing list