diff --git a/docs/docs/configuration/index.md b/docs/docs/configuration/index.md index 7da19349e..2ed54f7ab 100644 --- a/docs/docs/configuration/index.md +++ b/docs/docs/configuration/index.md @@ -360,6 +360,9 @@ go2rtc: # Optional: jsmpeg stream configuration for WebUI live: + # Optional: Set the name of the stream that should be used for live view + # in frigate WebUI. (default: name of camera) + stream_name: camera_name # Optional: Set the height of the jsmpeg stream. (default: 720) # This must be less than or equal to the height of the detect stream. Lower resolutions # reduce bandwidth required for viewing the jsmpeg stream. Width is computed to match known aspect ratio. diff --git a/docs/docs/configuration/live.md b/docs/docs/configuration/live.md index e8d56ad10..57dd1f01b 100644 --- a/docs/docs/configuration/live.md +++ b/docs/docs/configuration/live.md @@ -43,6 +43,34 @@ go2rtc: test_cam: rtsp://192.168.1.5:554/live0 ``` +### Setting Stream For Live UI + +There may be some cameras that you would prefer to use the sub stream for live view, but the main stream for recording. This can be done via `live -> stream_name`. + +```yaml +go2rtc: + streams: + test_cam: ffmpeg:rtsp://192.168.1.5:554/live0#video=copy#audio=aac#audio=opus + test_cam_sub: ffmpeg:rtsp://192.168.1.5:554/substream#video=copy#audio=aac#audio=opus + +cameras: + test_cam: + ffmpeg: + output_args: + record: preset-record-audio-copy + inputs: + - path: rtsp://127.0.0.1:8554/test_cam?video=copy&audio=aac # <--- the name here must match the name of the camera in restream + input_args: preset-rtsp-restream + roles: + - record + - path: rtsp://127.0.0.1:8554/test_cam_sub?video=copy&audio=aac # <--- the name here must match the name of the camera_sub in restream + input_args: preset-rtsp-restream + roles: + - detect + live: + stream_name: test_cam_sub +``` + ### WebRTC extra configuration: WebRTC works by creating a TCP or UDP connection on port `8555`. However, it requires additional configuration: