summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--systemd/ipcam_rtsp2hls_rkmpp@.service2
-rwxr-xr-xtools/ipcam_rtsp2hls_h264.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/systemd/ipcam_rtsp2hls_rkmpp@.service b/systemd/ipcam_rtsp2hls_rkmpp@.service
index 0324a02..625d70c 100644
--- a/systemd/ipcam_rtsp2hls_rkmpp@.service
+++ b/systemd/ipcam_rtsp2hls_rkmpp@.service
@@ -8,7 +8,7 @@ RestartSec=3
User=root
Group=root
EnvironmentFile=/etc/ipcam_rtsp2hls.conf.d/%i.conf
-ExecStart=/home/user/homekit/tools/ipcam_rtsp2hls_h264.sh --name %i --user $USER --password $PASSWORD --ip $IP --port $PORT $ARGS
+ExecStart=/home/user/homekit/tools/ipcam_rtsp2hls_h264.sh --name %i --user $USER --password $PASSWORD --ip $IP --port $PORT --force-tcp $ARGS
[Install]
WantedBy=multi-user.target
diff --git a/tools/ipcam_rtsp2hls_h264.sh b/tools/ipcam_rtsp2hls_h264.sh
index 18cf741..244a6d9 100755
--- a/tools/ipcam_rtsp2hls_h264.sh
+++ b/tools/ipcam_rtsp2hls_h264.sh
@@ -121,6 +121,6 @@ else
fi
/home/user/FFmpeg/ffmpeg $args -i "rtsp://${USER}:${PASSWORD}@${IP}:${PORT}${path}" \
- -c:v h264_rkmpp_encoder -preset ultrafast -an \
+ -c:v h264_rkmpp_encoder -preset ultrafast -an -vsync drop \
-flags -global_header -hls_time 2 -hls_list_size 3 -hls_flags delete_segments \
${OUTDIR}/${NAME}/live.m3u8