Signed-off-by: lishunyang12 <125541396+lishunyang12@users.noreply.github.com> Signed-off-by: Yueqian Lin <linyueqian@outlook.com> Signed-off-by: lishunyang <lishunyang12@163.com> Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com> Co-authored-by: Yueqian Lin <linyueqian@outlook.com>
12 lines
411 B
Bash
Executable File
12 lines
411 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Start a local MediaMTX RTSP server (listens on :8554 by default).
|
|
# Download the binary + mediamtx.yml from https://github.com/bluenviron/mediamtx/releases
|
|
# and either keep them next to this script or point the vars below at them.
|
|
|
|
MEDIAMTX_BIN="${MEDIAMTX_BIN:-./mediamtx}"
|
|
MEDIAMTX_CONFIG="${MEDIAMTX_CONFIG:-./mediamtx.yml}"
|
|
|
|
exec "$MEDIAMTX_BIN" "$MEDIAMTX_CONFIG"
|