Skip to content

mski-iksm/tubeomxplayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published