From 5ecdeaf2c7b1ce9b2fe13744068a4d9c44dafb1d Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 13 Apr 2017 10:25:56 +0200 Subject: Make room for audio stream (with lower even number, matching Janus sample config). --- bin/decode+edit+encode+stream | 4 ++-- bin/encode+stream | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/decode+edit+encode+stream b/bin/decode+edit+encode+stream index f0efc74..80ec165 100755 --- a/bin/decode+edit+encode+stream +++ b/bin/decode+edit+encode+stream @@ -9,7 +9,7 @@ else IP=$(host "$HOST" | grep -Po 'address \K\S+') fi -PORT=${2:-5004} +FIRSTPORT=${2:-5002} # even number - next 3 ports used too ITERATIONS=${3-0} # endless by default @@ -33,4 +33,4 @@ ffmpeg -threads auto -re \ -max-intra-rate 0 \ -qmin 4 -qmax 56 \ -static-thresh 500 -skip_threshold 50 \ - -f rtp "rtp://$IP:$PORT?pkt_size=1200" + -f rtp "rtp://$IP:$((FIRSTPORT+2))?pkt_size=1200" diff --git a/bin/encode+stream b/bin/encode+stream index 8750c90..98bf32a 100755 --- a/bin/encode+stream +++ b/bin/encode+stream @@ -9,7 +9,7 @@ else IP=$(host "$HOST" | grep -Po 'address \K\S+') fi -PORT=${2:-5004} +FIRSTPORT=${2:-5002} # even number - next 3 ports used too BITRATE=500000 @@ -27,4 +27,4 @@ ffmpeg -threads auto -re \ -max-intra-rate 0 \ -qmin 4 -qmax 56 \ -static-thresh 500 -skip_threshold 50 \ - -f rtp "rtp://$IP:$PORT?pkt_size=1200" + -f rtp "rtp://$IP:$((FIRSTPORT+2))?pkt_size=1200" -- cgit v1.2.3