Command-line YouTube client
Project description
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 or omxplayer to actually play the videos.
The combination of a text based interface and omxplayer makes yt a great YouTube client for the Raspberry Pi.
Installation
Install setup tools. Eg. on a Debian based distro sudo apt-get install python-setuptools.
From top level directory run python setup.py install.
Usage
usage: yt [-h] [--player {mplayer,omxplayer}] optional arguments: -h, --help show this help message and exit --player {mplayer,omxplayer} specifies what program to use to play videos (default: mplayer)
Dependancies
youtube-dl
mplayer or omxplayer
Common problems
Videos don’t play when selected in interface
Make sure you have the latest version of youtube-dl. The latest version in a package repository may lag significantly behind ongoing changes to YouTube. You can get the latest version by downloading youtube-dl directly from the GitHub repository.
Quick install instructions:
wget https://github.com/rg3/youtube-dl/blob/master/youtube-dl?raw=true chmod +x youtube-dl sudo mv youtube-dl /usr/bin/youtube
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 by swapping the GPU firmware images.
sudo cp /boot/arm128_start.elf /boot/start.elf.
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.
Credits
Mark Baldridges’s “HOWTO: YouTube on the Raspberry Pi - sans X)” - http://www.raspberrypi.org/phpBB3/viewtopic.php?p=97710&sid=fa3272a732353dc501cb96d38453b97c#p97710
News
0.2
Release date: 29-Oct-2012
Allow command-line configuration of media player (Calum Eadie)
0.1
Release date: 29-Feb-2012
Initial version
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file whitey-0.2.tar.gz
.
File metadata
- Download URL: whitey-0.2.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b512d0d7a0ec6b09c80433d595472f15e905d48cf4c825a8f059558284ff6075 |
|
MD5 | 5f2e7f0602698edb2cca10901b377580 |
|
BLAKE2b-256 | d1a4ba2a7274d2e800cc0f460e0fa0999395af70384e834a29b87af9f8db4f73 |