From af6c83bde10927719727fdeda52ba7eee4fdbe74 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Mon, 16 Jan 2023 06:44:18 -0700 Subject: [PATCH] Update camera specific recommendation --- docs/docs/configuration/camera_specific.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/docs/configuration/camera_specific.md b/docs/docs/configuration/camera_specific.md index ca3766f65..3d8595dd1 100644 --- a/docs/docs/configuration/camera_specific.md +++ b/docs/docs/configuration/camera_specific.md @@ -14,6 +14,12 @@ This page makes use of presets of FFmpeg args. For more information on presets, Note that mjpeg cameras require encoding the video into h264 for recording, and restream roles. This will use significantly more CPU than if the cameras supported h264 feeds directly. It is recommended to use the restream role to create an h264 restream and then use that as the source for ffmpeg. ```yaml +restream: + streams: + mjpeg_cam: ffmpeg:{your_mjpeg_stream_url}#video=h264#hardware # <- use hardware acceleration to create an h264 stream usable for other components. + +cameras: + ... mjpeg_cam: ffmpeg: inputs: @@ -21,12 +27,6 @@ Note that mjpeg cameras require encoding the video into h264 for recording, and roles: - detect - record - - path: {your_mjpeg_stream_url} - roles: - - restream - restream: - enabled: true - video_encoding: h264 ``` ## JPEG Stream Cameras