merge main #21

Merged
chawanwit.p merged 2 commits from dev into main 2025-09-30 05:06:45 +00:00
Showing only changes of commit 31bc91d57b - Show all commits

View file

@ -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