yt
is a command-line front-end to YouTube which allows you to browse YouTube
videos and play them directly from the command-line. It uses youtube-dl
and
mplayer
, omxplayer
, or mpv
to actually play the videos.
The combination of a text based interface and omxplayer
makes yt
a great
YouTube client for the Raspberry Pi.
Launch using mplayer
with:
yt
or, if you're using a Raspberry Pi, using omxplayer
:
pi-yt
# Install dependencies sudo apt-get install youtube-dl # Ensure using latest version of youtube-dl to keep up with YouTube API changes sudo youtube-dl -U # Install from GitHub sudo apt-get install python-setuptools git clone https://github.com/dyguan372/yt.git cd yt sudo python3 setup.py install
Any of
- youtube-dl and mplayer
- youtube-dl and omxplayer
- mpv (which uses libquvi)
Make sure you have the latest version of youtube-dl. youtube-dl has a self update mechanism:
sudo youtube-dl -U
For high quality videos the default memory allocation on the Raspberry Pi doesn't provide enough memory to the GPU.
The default 192M ARM, 64M GPU split can be changed to a 128M ARM, 128M GPU split using raspi-config.
sudo raspi-config # Select memory-split # Allocate 128M to the GPU
See http://elinux.org/RPi_Advanced_Setup for more information.
See https://github.com/rg3/youtube-dl and https://github.com/huceke/omxplayer for more detailed help.
- Rich Wareham
- Created
yt
.
- Created
- Calum J. Eadie
- Added OMXPlayer support and pi-yt entry point.