summaryrefslogtreecommitdiff
path: root/bin/encode+stream
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-04-13 10:25:56 +0200
committerJonas Smedegaard <dr@jones.dk>2017-04-13 10:53:31 +0200
commit5ecdeaf2c7b1ce9b2fe13744068a4d9c44dafb1d (patch)
tree622768520d57bbe1a67329da2fdd381b6012866e /bin/encode+stream
parentd62462fa43e10c5bccdc0f25c4ed5a26e2bfa2c8 (diff)
Make room for audio stream (with lower even number, matching Janus sample config).
Diffstat (limited to 'bin/encode+stream')
-rwxr-xr-xbin/encode+stream4
1 files changed, 2 insertions, 2 deletions
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"