Remove access of live config

This commit is contained in:
Nick Mowen 2022-10-22 08:13:36 -06:00
parent d146db4588
commit 2c8057252f

View File

@ -366,15 +366,15 @@ def output_frames(config: FrigateConfig, video_output_queue):
for camera, cam_config in config.cameras.items(): for camera, cam_config in config.cameras.items():
width = int( width = int(
cam_config.live.height cam_config.restream.jsmpeg.height
* (cam_config.frame_shape[1] / cam_config.frame_shape[0]) * (cam_config.frame_shape[1] / cam_config.frame_shape[0])
) )
converters[camera] = FFMpegConverter( converters[camera] = FFMpegConverter(
cam_config.frame_shape[1], cam_config.frame_shape[1],
cam_config.frame_shape[0], cam_config.frame_shape[0],
width, width,
cam_config.live.height, cam_config.restream.jsmpeg.height,
cam_config.live.quality, cam_config.restream.jsmpeg.quality,
) )
broadcasters[camera] = BroadcastThread( broadcasters[camera] = BroadcastThread(
camera, converters[camera], websocket_server camera, converters[camera], websocket_server