You could try the following.
Code:
#!/bin/sh
baseurl='http://youtube.com/get_video.php?'
pageurl=$1
wget -O - $baseurl`wget -qO - $pageurl | grep player2.swf | cut -d? -f2 | cut -d\" -f1`
the code above will download the youtube video to the standard output.
Just save it as
youtube.sh then
chmod +x
You would run it like this:
Code:
./youtube.sh URL > FILE
Change
URL and
FILE to meet your needs.
Then you could use
xine to play
FILE while its downloading.