MPlayer youtube script: Difference between revisions

From MultimediaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 21: Line 21:
</pre>
</pre>


created by enouf and n3kl
created by enouf and n3kl and amphi

Revision as of 04:21, 9 August 2008

bash script for playing youtube videos

usage:

#!/bin/bash

if [ -z "$1" ]; then echo "No URL!"; exit; fi

url=$1
shift

echo \"http://www.youtube.com/get_video?video_id=`wget -q -O - $url | grep fullscreenUrl | awk -F'video_id=' '{ print $2 }' | sed -e 's/ /_/g' | tr -d \'\; `\" | xargs mplayer $*

created by enouf and n3kl and amphi