Created
August 15, 2019 15:13
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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