Giter Club home page Giter Club logo

tubeomxplayer's Introduction

tubeomxp

Automatic Youtube player for raspberry pi.
Plays youtube videos by using youtube-dl and omxplayer.
Although this software use youtube-dl, videos are played by streaming instead of downloading video files (due to leagal restrictions).

Version 0.0.0 (Last update 2018-03-13)

Dependencies

You need following packages/libraries to use this code.

  • python3
  • youtube-dl
  • omxplayer
  • Google API Client Library pip install --upgrade google-api-python-client

Also, you need to get a Youtube Developer's API v3 key. Instructions are described in the following link. https://developers.google.com/youtube/v3/getting-started

Usage

  • Searching and playing video is posiible with follwing code: python youtube_search.py -q [serch terms] -k [youtube API key]
  • Example python youtube_search.py -q macho man -k XXXXXXXXXXXXXXXXXXXXX
HELP:
Stream video by passing URLs of Youtube search result to omxplayer.

optional arguments:
  -h, --help            show this help message and exit
  -q QUERY, --query QUERY
                        Search term. REQUIRED.
  -k KEY, --key KEY     Developer key for Youtube API v3. REQUIRED.
  -r MAX_RESULTS, --max_results MAX_RESULTS
                        Max results. If not set, 1.
  -m MODE, --mode MODE  Video play mode. "video". Mode for playing playlist
                        will be supported in the future update.

Change Log

  • Version 0.0.0 (2018-03-13): First upload

tubeomxplayer's People

Contributors

mski-iksm 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.