Saving Youtube Videos in Fedora

Suvayu Ali fatkasuvayu+linux at gmail.com
Wed Jun 15 05:29:47 UTC 2011


On Wed, 15 Jun 2011 00:26:57 -0400
james tate <binarynut at comcast.net> wrote:

> At one time Youtube videos were being temp. downloaded while playing
> to the /tmp directory where you could save from, but now it seems
> that is no longer the case.
> 
> Where are they being temp. downloaded to in Fedora now ?

Two solutions:

1. # yum install youtube-dl
2. I use this shell function sometimes: (beware of word wrapping)

function play_flash()
{
    for idx in $(pgrep -u $USER -f 'flashplayer\.so'); do
	echo "Browser:" $(egrep 'Name:' /proc/${idx}/status| cut -f 2) "PID:" $idx
	echo -n "        FDs:"
	for fd in $(lsof -p $idx|egrep '/tmp/Flash'|egrep -o -E '\<[0-9]+[a-z]\>'| tr -d 'a-z'); do
	    echo -n "  $fd"
	done
	echo
	echo
    done

    echo "Select browser (by PID) and file descriptor (space separated)"
    read -p ': ' PID FD
    echo
    [ ! -z ${PID} ] &&  mplayer -ontop $@ /proc/${PID}/fd/${FD}
}

GL

-- 
Suvayu

Open source is the future. It sets us free.


More information about the users mailing list