Skip to content

Instantly share code, notes, and snippets.

@dbellomo
Last active November 3, 2018 05:25
Show Gist options
  • Save dbellomo/53ff8f765f205b2e58cdb069e5fc8711 to your computer and use it in GitHub Desktop.
Save dbellomo/53ff8f765f205b2e58cdb069e5fc8711 to your computer and use it in GitHub Desktop.
Streaming en RPi usando la GPU (audio y video)

Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

https://www.raspberrypi.org/forums/viewtopic.php?t=40860

http://steinerdatenbank.de/software/omxplayerGUI_manual.pdf

Livestreamer

http://docs.livestreamer.io/

!/bin/sh

ID=lcGCTkaZIsA
STREAM=720p

while [ 1 ]
do
  livestreamer https://youtu.be/$ID $STREAM -np 'omxplayer -w --alpha 0'
done
cat ytcli
#!/bin/sh
omxplayer -o hdmi $(youtube-dl -g "$1")
#!/bin/sh

PLAY="Thelonious Monk- Monks Dream"

# youtube id
ID=icFRHJ9VZaw
# formato youtube 
# youtube-dl --list-formats
FORMAT=251

echo "Play" $PLAY
echo

omxplayer -w --alpha 0 $(youtube-dl -f $FORMAT -g https://www.youtube.com/watch?v=$ID)
tv cat unrc
#!/bin/sh

ID=WrcEUffpVak
STREAM=best

while [ 1 ]
do
  #livestreamer https://youtu.be/$ID $STREAM -np 'omxplayer -w'
  omxplayer $(youtube-dl -f $STREAM -g https://youtu.be/$ID)
  sleep 2
done

obtener todos los IDs de una playlist de youtube:

youtube-dl 'https://www.youtube.com/playlist?list=PL54DF22764C15C03C' --flat-playlist --dump-json
youtube-dl --list-formats https://www.youtube.com/playlist\?list\=PL54DF22764C15C03C

audio-format: FLAC

timeout 65m omxplayer $(youtube-dl --audio-format FLAC -f 251 -g https://youtu.be/ksDsUYPofDs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment