From c793500ad2621c7fdd483840f018849b19dd0ac6 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Wed, 15 Sep 2021 07:33:50 -0500 Subject: [PATCH] add udp camera example to docs --- docs/docs/configuration/camera_specific.md | 57 +++++----------------- 1 file changed, 12 insertions(+), 45 deletions(-) diff --git a/docs/docs/configuration/camera_specific.md b/docs/docs/configuration/camera_specific.md index e26c34bce..16b1c5e0b 100644 --- a/docs/docs/configuration/camera_specific.md +++ b/docs/docs/configuration/camera_specific.md @@ -8,19 +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 ``` 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. @@ -37,23 +25,7 @@ The input parameters need to be adjusted for RTMP cameras ```yaml 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 + 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 @@ -62,19 +34,14 @@ 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 - - -stimeout - - "5000000" - - -use_wallclock_as_timestamps - - "1" + input_args: -avoid_negative_ts make_zero -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 +``` + +### UDP Only Cameras + +If your cameras do not support TCP connections for RTSP, you can use UDP. + +```yaml +ffmpeg: + input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport udp -stimeout 5000000 -use_wallclock_as_timestamps 1 ```