summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/stream8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/stream b/bin/stream
index c3063ab..502fff5 100755
--- a/bin/stream
+++ b/bin/stream
@@ -239,8 +239,8 @@ encode_x264() { bitrate=$1; speed=$2;
# * routing based on http://trac.ffmpeg.org/wiki/Creating%20multiple%20outputs#Teepseudo-muxer
# * Use same RTP payload types as GStreamer
mux_webm() {
- muxcount=$(echo "$TARGETS_WEBM" | wc --words)
- if [ $muxcount -lt 2 ]; then
+ targetcount=$(echo "$TARGETS_WEBM" | wc --words)
+ if [ $targetcount -lt 2 ]; then
case "$TARGETS_WEBM" in
rtp_opus) echo_n "-f rtp -payload_type 111 rtp://$IP:$FIRSTPORT?pkt_size=1440";;
rtp_vp8) echo_n "-f rtp -payload_type 100 rtp://$IP:$((FIRSTPORT+2))?pkt_size=1440";;
@@ -254,8 +254,8 @@ mux_webm() {
rtp_vp8) echo_n "[select=\'v\':f=rtp:payload_type=100]rtp://$IP:$((FIRSTPORT+2))?pkt_size=1440";;
*) exit1 "Unsupported muxing $muxing";;
esac
- muxcount=$((muxcount-1))
- [ $muxcount -lt 1 ] || echo_n '|'
+ targetcount=$((targetcount-1))
+ [ $targetcount -lt 1 ] || echo_n '|'
done
fi
}