Skip to content

Instantly share code, notes, and snippets.

@Gottox
Created December 27, 2013 09:21
Show Gist options
  • Save Gottox/8144536 to your computer and use it in GitHub Desktop.
Save Gottox/8144536 to your computer and use it in GitHub Desktop.
Opens a stream from 30c3 on XBMC
#!/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
@fnordson
Copy link

Alternative:
download the stream config files here: http://volafile.io/r/4Y7EI
Access through Videos / Files

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