#!/bin/bash # Quality setting in this file doesn't work at the moment. I'm open to suggestions. # Copyright 2013 Steven Smith (blha303). All Rights Reserved. # New BSD license # http://www.opensource.org/licenses/BSD-3-Clause die () { echo >&2 "$@" exit 1 } (( $# == 1 )) || die "Usage: jtvrtmp.sh channelname [quality]" (( $# == 2 )) || echo "rtmpdump $(python jtvrtmp.py $1) | vlc -" | sh; exit (( $# == 3 )) || echo "rtmpdump $(python jtvrtmp.py $1 $2) | vlc -" | sh; exit