RPIYT / 2013-04-29 03:50:23
Playing YouTube video on a RPI is possible directly from the Linux command-line, without having even to start X. It saves some resources. There are many tutorial on how to install YouTube but I found that the information was spread all over, so here is a summary:
-
Install youtube-dl, to download YouTube video:
-
sudo apt-get update
-
sudo apt-get install youtube-dl
-
Update youtube-dl to its latest version:
-
sudo youtube-dl -U
-
Install Python setup tools, needed to install whitey:
-
sudo apt-get install python-setuptools
-
Download whitey, which is the "front-end" to YouTube:
-
wget http://pypi.python.org/packages/source/w/whitey/whitey-0.1.tar.gz
-
tar -zxvf whitey-0.1.tar.gz
-
If you want to use omxplayer instead of mplayer, edit whitey init file:
-
nano whitey-0.1/src/yt/__init__.py
-
CTRL+W to search for mplayer
|