Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

non rtsp too

roryclear1dcba48deed9
diff --git a/clearcam.py b/clearcam.py
index 6f093be..b17d55e 100644
--- a/clearcam.py
+++ b/clearcam.py
@@ -536,7 +536,7 @@ class VideoCapture:
command = [
ffmpeg_path,
"-re",
- "-rtsp_transport","tcp",
+ *(["-rtsp_transport", "tcp"] if self.src.startswith("rtsp") else []),
"-i", self.src,
"-c", "copy",
"-f", "hls",