I read that you-tube buffered videos are the in RAM while playing them and you need not download them again. just copy the flash file to another location. However,when I copied it to the home directory, it says permission denied and the file .flv on the desktop when played using vlc says vlc cannot play file of format "undf". What can be the problem?
Here's what I did:
pgrep -f flashplayer
Got the PID for the video.
Navigated through the RAM:
cd /proc/pid/fd
ls -l
to view the number associated with the video.
Copied it to the home directory: cp XX /home/username/12.flv
That's all!
/proc
./proc
is a virtual filesystem that doesn't exist on disk, but some of its entries actually are on disk. I'm not sure exactly why this didn't work, but it seems likely that the file was only partially buffered, such that it was usable by the browser's flash player (which separately kept track of what parts existed and what parts did not, and took care of fetching the parts it needed) but not by VLC. Or, you may simply have copied the wrong files. – Eliah Kagan Feb 17 '13 at 14:19