1.1. Install youtube-dl
# wget https://yt-dl.org/downloads/2013.11.24.1/youtube-dl -O /usr/local/bin/youtube-dl
# chmod a+x /usr/local/bin/youtube-dl
1.2. Install mplayer and Zenity
# apt-get install mplayer zenity
2. The script
#!/bin/bash URL=`zenity --title "Dirty Youtube Player" --text "Please paste URL here: " --entry` if [ -f ~/.utubetmp ] then rm ~/.utubetmp else mkfifo .utubetmp youtube-dl $URL -o .utubetmp & sleep 5 && mplayer .utubetmp && rm .utubetmp fi
I called the temp file .utubetmp and made it reside in your current user's home folder. It's also a hidden file.
You run the programme (I called it utube and put it in my ~/.bin), paste a video URL in this dialogue:
and eventually, you'll get a video after 5 seconds or a bit more...
There you go! You've got yourself a lovely Flash video player which actually should be using less resources than actual Flash and doesn't even require you to have Flash installed.
Bugs: Skipping ahead is possible only until the point youtube-dl has already downloaded, skipping back breaks MPlayer and it exits, pausing and resuming works though.