From 6481511dcdd1bda4972510d986bfc4c6c166f2e8 Mon Sep 17 00:00:00 2001 From: Ashish D'Souza Date: Mon, 5 Aug 2024 22:54:05 -0500 Subject: [PATCH] Added go2rtc restreaming --- conf/config.yaml | 28 ++++++++++++++++++++++------ conf/docker-compose.yaml | 1 + 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/conf/config.yaml b/conf/config.yaml index 01fd27c..0f2143f 100644 --- a/conf/config.yaml +++ b/conf/config.yaml @@ -9,12 +9,28 @@ detectors: type: cpu num_threads: 2 +go2rtc: + streams: + garage: + - 'rtsp://{FRIGATE_GARAGE_RTSP_USERNAME}:{FRIGATE_GARAGE_RTSP_PASSWORD}@192.168.0.102:554/live' + doorbell: + - 'rtsp://{FRIGATE_DOORBELL_RTSP_USERNAME}:{FRIGATE_DOORBELL_RTSP_PASSWORD}@192.168.0.105:554/cam/realmonitor?channel=1&subtype=0' + front_door: + - 'rtsp://{FRIGATE_FRONT_DOOR_RTSP_USERNAME}:{FRIGATE_FRONT_DOOR_RTSP_PASSWORD}@192.168.0.108:554/live/ch0' + driveway: + - 'rtsp://{FRIGATE_DRIVEWAY_RTSP_USERNAME}:{FRIGATE_DRIVEWAY_RTSP_PASSWORD}@192.168.0.148:5543/live/channel1' + back_door: + - 'rtsp://wyze-bridge:8554/back-yard-cam' + family_room: + - 'rtsp://{FRIGATE_FAMILY_ROOM_RTSP_USERNAME}:{FRIGATE_FAMILY_ROOM_RTSP_PASSWORD}@192.168.0.104:554/live/ch0' + cameras: garage: enabled: true ffmpeg: inputs: - - path: 'rtsp://{FRIGATE_GARAGE_RTSP_USERNAME}:{FRIGATE_GARAGE_RTSP_PASSWORD}@192.168.0.102:554/live' + - path: 'rtsp://127.0.0.1:8554/garage' + input_args: preset-rtsp-restream roles: - detect - record @@ -32,7 +48,7 @@ cameras: enabled: true ffmpeg: inputs: - - path: 'rtsp://{FRIGATE_DOORBELL_RTSP_USERNAME}:{FRIGATE_DOORBELL_RTSP_PASSWORD}@192.168.0.105:554/cam/realmonitor?channel=1&subtype=0' + - path: 'rtsp://127.0.0.1:8554/doorbell' roles: - detect - record @@ -57,7 +73,7 @@ cameras: enabled: true ffmpeg: inputs: - - path: 'rtsp://{FRIGATE_FRONT_DOOR_RTSP_USERNAME}:{FRIGATE_FRONT_DOOR_RTSP_PASSWORD}@192.168.0.108:554/live/ch0' + - path: 'rtsp://127.0.0.1:8554/front_door' roles: - detect - record @@ -82,7 +98,7 @@ cameras: enabled: false ffmpeg: inputs: - - path: 'rtsp://{FRIGATE_DRIVEWAY_RTSP_USERNAME}:{FRIGATE_DRIVEWAY_RTSP_PASSWORD}@192.168.0.148:5543/live/channel1' + - path: 'rtsp://127.0.0.1:8554/driveway' roles: - detect - record @@ -97,7 +113,7 @@ cameras: enabled: true ffmpeg: inputs: - - path: 'rtsp://wyze-bridge:8554/back-yard-cam' + - path: 'rtsp://127.0.0.1:8554/back_door' roles: - detect - record @@ -115,7 +131,7 @@ cameras: enabled: false ffmpeg: inputs: - - path: 'rtsp://{FRIGATE_FAMILY_ROOM_RTSP_USERNAME}:{FRIGATE_FAMILY_ROOM_RTSP_PASSWORD}@192.168.0.104:554/live/ch0' + - path: 'rtsp://127.0.0.1:8554/family_room' roles: - detect - record diff --git a/conf/docker-compose.yaml b/conf/docker-compose.yaml index 38496f8..d7acea2 100644 --- a/conf/docker-compose.yaml +++ b/conf/docker-compose.yaml @@ -51,6 +51,7 @@ services: - frigate ports: - 127.0.0.1:10000:5000 + - 554:8554 wyze-bridge: container_name: frigate-wyze-bridge image: mrlt8/wyze-bridge:2.9.7