refactor: remove unnecessary buffer size setting for RTSP stream to improve latency
All checks were successful
Build Worker Base and Application Images / check-base-changes (push) Successful in 8s
Build Worker Base and Application Images / build-base (push) Has been skipped
Build Worker Base and Application Images / build-docker (push) Successful in 2m52s
Build Worker Base and Application Images / deploy-stack (push) Successful in 10s

This commit is contained in:
Siwat Sirichai 2025-09-26 01:52:50 +07:00
parent a1e7c42fb3
commit 65b7573fed

View file

@ -269,9 +269,6 @@ class RTSPReader:
# Don't force resolution/fps - let the stream determine its natural specs
# The camera will provide whatever resolution/fps it supports
# Set minimal buffer for lowest latency - single frame buffer
# This ensures we always get the most recent frame
self.cap.set(cv2.CAP_PROP_BUFFERSIZE, 1)
# Set FFMPEG options for better H.264 handling
self.cap.set(cv2.CAP_PROP_FOURCC, cv2.VideoWriter_fourcc(*'H264'))