Python
Switch branches/tags
Nothing to show
Latest commit dae8c4d Mar 17, 2014 @rjw57 Merge pull request #36 from sumpygump/add-download
Add option to download a video
Permalink
Failed to load latest commit information.
src/yt Add option to download a video Mar 13, 2014
tools
.gitignore added gitignore file Feb 8, 2012
.hgignore initial import of auto-created package Feb 8, 2012
.lvimrc added local vim configuration Feb 8, 2012
COPYING.txt add MIT licence Sep 27, 2013
HACKING.txt initial import of auto-created package Feb 8, 2012
MANIFEST.in
NEWS.txt bump for release Sep 27, 2013
README.rst I had problems while installing from Github ... Mar 9, 2014
bootstrap.py initial import of auto-created package Feb 8, 2012
buildout.cfg initial import of auto-created package Feb 8, 2012
setup.py Bumped version number, currently working on 0.3 release Mar 19, 2013
yt.1 Adds License information to manpage Sep 28, 2013
yt.bash-completion adds man and bash completion Sep 27, 2013

README.rst

yt: a command-line YouTube client

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.

Usage

Launch using mplayer with:

yt

or, if you're using a Raspberry Pi, using omxplayer:

pi-yt

Installation

From PyPi (easier!)

# 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 PyPi
sudo apt-get install python-setuptools
sudo easy_install whitey

From GitHub

# 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/rjw57/yt.git
cd yt
sudo python setup.py install

One line install for the Raspberry Pi

curl -L https://github.com/rjw57/yt/raw/master/tools/install-pi.sh | sh

Dependencies

Any of

  • youtube-dl and mplayer
  • youtube-dl and omxplayer
  • mpv (which uses libquvi)

Common problems

Videos don't play when selected in interface

Make sure you have the latest version of youtube-dl. youtube-dl has a self update mechanism:

sudo youtube-dl -U

Omxplayer starts and terminates without playing video

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.

Getting more help

See https://github.com/rg3/youtube-dl and https://github.com/huceke/omxplayer for more detailed help.

Contributors

  • Rich Wareham
    • Created yt.
  • Calum J. Eadie
    • Added OMXPlayer support and pi-yt entry point.

Credits