Browse Source

- Fix A1/P1 camera streaming with extended timeouts and lower FPS cap
- Removed deprecated -stimeout option (renamed to -timeout in ffmpeg 5.0+).

maziggy 5 months ago
parent
commit
01989b7182
1 changed files with 1 additions and 3 deletions
  1. 1 3
      backend/app/api/routes/camera.py

+ 1 - 3
backend/app/api/routes/camera.py

@@ -92,9 +92,7 @@ async def generate_mjpeg_stream(
         cmd.extend(
         cmd.extend(
             [
             [
                 "-timeout",
                 "-timeout",
-                "10000000",  # 10 seconds in microseconds
-                "-stimeout",
-                "10000000",  # Socket timeout
+                "10000000",  # 10 seconds in microseconds (replaces deprecated -stimeout)
                 "-analyzeduration",
                 "-analyzeduration",
                 "10000000",  # Longer analysis time
                 "10000000",  # Longer analysis time
                 "-probesize",
                 "-probesize",