diff options
author | Renken <renken@shione.net> | 2024-05-12 20:44:43 +0200 |
---|---|---|
committer | Renken <renken@shione.net> | 2024-05-12 20:44:43 +0200 |
commit | e9c4a7abf6a6fc5c1a1f11ec0c990ba247e7c0f9 (patch) | |
tree | ef1b438df3305a0d150e54f1457563334aa2fb19 /srt-server | |
parent | b1b654331c5865fab4d29cc93c3e1b9a5abc3ab0 (diff) | |
download | shione-e9c4a7abf6a6fc5c1a1f11ec0c990ba247e7c0f9.tar.gz shione-e9c4a7abf6a6fc5c1a1f11ec0c990ba247e7c0f9.zip |
doc(readme): update machines blog post links
Diffstat (limited to 'srt-server')
-rwxr-xr-x | srt-server | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/srt-server b/srt-server new file mode 100755 index 0000000..99513b9 --- /dev/null +++ b/srt-server @@ -0,0 +1,20 @@ +#!/bin/sh + +set -eux + +# This worked somehow. +# srt-live-transmit 'srt://:60001?mode=listener&bandwidth=60000&timeout=10000' srt://:60000 -v + +# 1mbps, see https://medium.com/@michael_70509/configuring-srt-properly-d89517354d0d +bandwidth="${SRT_BANDWIDTH:-250000}" +# 1 second in microseconds, see https://obsproject.com/wiki/Streaming-With-SRT-Or-RIST-Protocols. +timeout="${SRT_TIMEOUT:-2000000}" +latency="${SRT_LATENCY:-30}" +# Extra arguments must start with '&' +input_extra_args="${SRT_INPUT_EXTRA_ARGS:-}" +output_passphrase="${SRT_PASSPHRASE:-}" + +srt-live-transmit \ + "srt://:60001?mode=listener&bandwidth=$bandwidth&timeout=$timeout&latency=$latency$input_extra_args" \ + "srt://:60000$output_passphrase" \ + -v |