Skip to content

Instantly share code, notes, and snippets.

@louis-e
Created August 15, 2019 15:13
Embed
What would you like to do?
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