Skip to content

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

deslop

roryclear0a9cee3838a4
diff --git a/README.md b/README.md
index d01c755..cfd3d4c 100644
--- a/README.md
+++ b/README.md
@@ -28,7 +28,7 @@ https://x.com/RoryClear/status/1959249250811785405
- use --yolo_size={s, m, l, or x for larger yolov8 variants}
## python requirements
-- ffmpeg
+- ffmpeg (installed on your computer)
- tinygrad
- numpy
- cv2
diff --git a/clearcam.py b/clearcam.py
index c4f03c2..313e813 100644
--- a/clearcam.py
+++ b/clearcam.py
@@ -639,7 +639,6 @@ class HLSStreamer:
self.current_stream_dir = self._get_new_stream_dir()
self.recent_segments = deque(maxlen=4)
self.start_time = time.time()
- # Start FFmpeg process for HLS streaming to local files
if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'):
ffmpeg_path = os.path.join(sys._MEIPASS, 'ffmpeg')
else:
@@ -1996,15 +1995,13 @@ def encrypt_file(input_path: Path, output_path: Path, key: str):
with open(input_path, 'rb') as f:
plaintext = f.read()
-
- # Add MAGIC header and pad
data = struct.pack('<Q', MAGIC_NUMBER) + plaintext
padded = pkcs7_pad(data, AES_BLOCK_SIZE)
ciphertext = encrypt_cbc(padded, key_bytes, iv)
with open(output_path, 'wb') as f:
- f.write(iv + ciphertext) # ObjC expects IV prepended
+ f.write(iv + ciphertext)
return True