From 7ddb74d1ce67db920f6df8aa6541ace6b6d18bd0 Mon Sep 17 00:00:00 2001 From: MariusMueller Date: Tue, 25 Oct 2022 15:31:02 +0200 Subject: [PATCH] Update camera_specific.md Added "-c:v mjpeg" to MJPEG Cameras input_agrs in order to make a video stream work that comes from an ESP32-cam using ESPHome standard software --- docs/docs/configuration/camera_specific.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/configuration/camera_specific.md b/docs/docs/configuration/camera_specific.md index 5e989a8b2..6428ef5e2 100644 --- a/docs/docs/configuration/camera_specific.md +++ b/docs/docs/configuration/camera_specific.md @@ -8,7 +8,7 @@ title: Camera Specific Configurations The input and output parameters need to be adjusted for MJPEG cameras ```yaml -input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 +input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -c:v mjpeg ``` Note that mjpeg cameras require encoding the video into h264 for recording, and rtmp roles. This will use significantly more CPU than if the cameras supported h264 feeds directly. @@ -150,4 +150,4 @@ ffmpeg: output_args: record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -ar 44100 -c:a aac rtmp: -c:v copy -f flv -ar 44100 -c:a aac -``` \ No newline at end of file +```