summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-05-29 21:25:11 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-05-29 21:25:11 +0300
commitbd8d5040eb95a9f11388be982ab71653f7a4949d (patch)
tree59027157186523f9f98e2cfd29dd303010442546 /tools
parentad4565f784041b9901d69c9bda032c29bbbdfd8c (diff)
stupid hotfix
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ipcam_rtsp2hls.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/ipcam_rtsp2hls.sh b/tools/ipcam_rtsp2hls.sh
index 324a17c..c321820 100755
--- a/tools/ipcam_rtsp2hls.sh
+++ b/tools/ipcam_rtsp2hls.sh
@@ -115,12 +115,12 @@ elif [ "$FORCE_UDP" = "1" ]; then
fi
if [ -z "$CUSTOM_PATH" ]; then
- PATH="/Streaming/Channels/${CHANNEL}"
+ path="/Streaming/Channels/${CHANNEL}"
else
- PATH="$CUSTOM_PATH"
+ path="$CUSTOM_PATH"
fi
-ffmpeg $args -i "rtsp://${USER}:${PASSWORD}@${IP}:${PORT}${CUSTOM_PATH}" \
+ffmpeg $args -i "rtsp://${USER}:${PASSWORD}@${IP}:${PORT}${path}" \
-c:v copy -c:a copy -bufsize 1835k \
-pix_fmt yuv420p \
-flags -global_header -hls_time 2 -hls_list_size 3 -hls_flags delete_segments \