Skip to content

Instantly share code, notes, and snippets.

@louis-e
Created August 15, 2019 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save louis-e/5ad97087abd8d0c771b536d43e68c2f2 to your computer and use it in GitHub Desktop.
Save louis-e/5ad97087abd8d0c771b536d43e68c2f2 to your computer and use it in GitHub Desktop.
Simple bash script to play youtube video with omxplayer and youtube-dl
#!/bin/bash
#Requirements:
#youtube-dl
#omxplayer
#Move this file into /usr/local/bin and add execute permission (sudo chmod +x omxplayeryoutube.sh)
#Run it like this: ./omxplayeryoutube.sh https://www.youtube.com/watch?v=l4bDVq-nP-0
omxplayer -o hdmi $(youtube-dl -g "$1")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment