Git Product home page Git Product logo

yt's Introduction

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

yt's People

Contributors

calumjeadie avatar giuscri avatar hololight avatar javier-lopez avatar jhawthorn avatar mishugana avatar natureshadow avatar richih avatar rjw57 avatar sumpygump avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.