mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
only send frames to ffmpeg if there are clients listening
This commit is contained in:
parent
4e0203ca68
commit
a8df97dc1a
@ -111,7 +111,8 @@ def output_frames(config, video_output_queue):
|
|||||||
|
|
||||||
frame = frame_manager.get(frame_id, config.cameras[camera].frame_shape_yuv)
|
frame = frame_manager.get(frame_id, config.cameras[camera].frame_shape_yuv)
|
||||||
|
|
||||||
# send frame to ffmpeg process
|
# send frame to ffmpeg process if websockets are connected
|
||||||
|
if len(websocket_server.manager) > 0:
|
||||||
converter.write(frame.tobytes())
|
converter.write(frame.tobytes())
|
||||||
|
|
||||||
if camera in previous_frames:
|
if camera in previous_frames:
|
||||||
|
Loading…
Reference in New Issue
Block a user