From 300d1660bfd24110fe4efcddaeaff61be6e9ce45 Mon Sep 17 00:00:00 2001 From: Joerg Menke Date: Wed, 5 Oct 2022 17:21:44 +0000 Subject: [PATCH] Moved unify and blue iris cams examples --- docs/docs/configuration/camera_specific.md | 39 +++++++++++----------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/docs/docs/configuration/camera_specific.md b/docs/docs/configuration/camera_specific.md index 425e2c5ab..c9941a4e4 100644 --- a/docs/docs/configuration/camera_specific.md +++ b/docs/docs/configuration/camera_specific.md @@ -56,15 +56,6 @@ ffmpeg: input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rw_timeout 5000000 -use_wallclock_as_timestamps 1 -f live_flv ``` -### Blue Iris RTSP Cameras - -You will need to remove `nobuffer` flag for Blue Iris RTSP cameras - -```yaml -ffmpeg: - input_args: -avoid_negative_ts make_zero -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -``` - ### UDP Only Cameras If your cameras do not support TCP connections for RTSP, you can use UDP. @@ -74,17 +65,6 @@ ffmpeg: input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport udp -timeout 5000000 -use_wallclock_as_timestamps 1 ``` -### Unifi Protect Cameras - -In the Unifi 2.0 update Unifi Protect Cameras had a change in audio sample rate which causes issues for ffmpeg. The input rate needs to be set for record and rtmp. - -```yaml -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 -``` - ### Model/vendor specific setup #### Annke C800 @@ -114,6 +94,15 @@ cameras: ``` +#### Blue Iris RTSP Cameras + +You will need to remove `nobuffer` flag for Blue Iris RTSP cameras + +```yaml +ffmpeg: + input_args: -avoid_negative_ts make_zero -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 +``` + #### Reolink 410/520 (possibly others) ![Resolutions](/img/reolink-settings.png) @@ -153,3 +142,13 @@ cameras: fps: 7 ``` +#### Unifi Protect Cameras + +In the Unifi 2.0 update Unifi Protect Cameras had a change in audio sample rate which causes issues for ffmpeg. The input rate needs to be set for record and rtmp. + +```yaml +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