X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ultimate.sh;h=e06d620b27d246b36b5a5b5c30fe728cf95ae4b6;hb=e325c1d50b3189df44c5117a71eed6006195f4b1;hp=bd285921823347eea7b10e2323d6caf5d46018ea;hpb=7d41379d10a891f7064b88b2e9d6dbbcb800bce7;p=ultimatescore diff --git a/ultimate.sh b/ultimate.sh index bd28592..e06d620 100755 --- a/ultimate.sh +++ b/ultimate.sh @@ -5,17 +5,17 @@ if ! [ -d /srv/ultimate/opptak ]; then sudo mount /dev/disk/by-uuid/af9070b1-ba86-4240-83b3-8b866b86a46b /srv/ultimate fi -if ! pidof ssh > /dev/null; then - echo "Set up SSH forwarding forwarding before running this script:" - echo " ssh -R 9095:127.0.0.1:9095 stream@pannekake.samfundet.no" +if ! ping -c 1 -t 1 10.42.1.1 >/dev/null; then + echo "Wireguard tunnel is not working (cannot ping 10.42.1.1), please fix before starting streaming." exit fi # Set up BBR -for DEV in $( ip link | grep UP | cut -d" " -f2 | cut -d: -f1 | grep -v lo ); do +for DEV in $( ip link | grep UP | cut -d" " -f2 | cut -d: -f1 | cut -d@ -f1 | grep -v lo ); do sudo tc qdisc add root dev $DEV fq done echo bbr | sudo tee /proc/sys/net/ipv4/tcp_congestion_control +sudo ethtool -K enp0s31f6 tx off # takes iperf from 750 to 920 mbit/sec!? # Make sure CSS is up-to-date sass score.scss score.css @@ -41,8 +41,9 @@ fi --x264-bitrate 4500 \ --http-audio-bitrate 128 \ --quick-cut-keys \ - -m 0,2 -m 1,3 -m 2,4 -m 3,5 -m 4,0 -m 5,1 - --mjpeg-export-cards=1-5 + --mjpeg-export-cards=1-5 \ + -m 0,1 -m 1,2 -m 2,3 -m 3,4 -m 4,5 -m 5,0 + #-m 0,2 -m 1,3 -m 2,4 -m 3,5 -m 4,0 -m 5,1 \ )