Created
December 27, 2013 09:21
-
-
Save Gottox/8144536 to your computer and use it in GitHub Desktop.
Opens a stream from 30c3 on XBMC
This file contains 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 | |
XBMC_HOST=pi1 | |
XBMC_PORT=9090 | |
# one of hq, lq | |
QUALITY=hq | |
########################################################################### | |
saal=$1 | |
if [ -z "$saal" ]; then | |
cat 1>&2 << EOF | |
Usage: $0 <saal>" | |
examples: | |
# $0 1 | |
for saal 1 | |
# $0 2 | |
for saal 2 | |
# $0 g | |
for saal g | |
EOF | |
exit 1 | |
fi | |
JSON=json | |
type json > /dev/null 2>&1 || JSON=cat | |
if [ x$QUALITY = xhq ]; then | |
url="rtmp://rtmp-hd.streaming.media.ccc.de:1935/stream/saal${saal}_native_hd" | |
else | |
url="rtmp://rtmp.streaming.media.ccc.de:1935/stream/saal${saal}_native_lq" | |
fi | |
echo $socket '{"jsonrpc": "2.0", "method": "Player.Open", "params":{"item": {"file" : "'$url'" }}, "id" : "1"}' | nc $XBMC_HOST $XBMC_PORT | $JSON |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alternative:
download the stream config files here: http://volafile.io/r/4Y7EI
Access through Videos / Files