diff --git a/core/streaming/readers/ffmpeg_rtsp.py b/core/streaming/readers/ffmpeg_rtsp.py index 7c453f3..352c28e 100644 --- a/core/streaming/readers/ffmpeg_rtsp.py +++ b/core/streaming/readers/ffmpeg_rtsp.py @@ -115,10 +115,17 @@ class FFmpegRTSPReader(VideoReader): # DO NOT REMOVE '-hwaccel', 'cuda', '-hwaccel_device', '0', + # Real-time input flags + '-fflags', 'nobuffer+genpts+discardcorrupt', + '-flags', 'low_delay', + '-max_delay', '0', # No reordering delay + # RTSP configuration '-rtsp_transport', 'tcp', '-i', self.rtsp_url, + # Output configuration (keeping BMP) '-f', 'image2pipe', # Output images to pipe '-vcodec', 'bmp', # BMP format with header containing dimensions + '-vsync', 'passthrough', # Pass frames as-is # Use native stream resolution and framerate '-an', # No audio '-' # Output to stdout