add udp camera example to docs

This commit is contained in:
Blake Blackshear 2021-09-15 07:33:50 -05:00
parent 1b2134c49e
commit c793500ad2

View File

@ -8,19 +8,7 @@ title: Camera Specific Configurations
The input and output parameters need to be adjusted for MJPEG cameras The input and output parameters need to be adjusted for MJPEG cameras
```yaml ```yaml
input_args: input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1
- -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. 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 ```yaml
ffmpeg: ffmpeg:
input_args: 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
- -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 ### Blue Iris RTSP Cameras
@ -62,19 +34,14 @@ You will need to remove `nobuffer` flag for Blue Iris RTSP cameras
```yaml ```yaml
ffmpeg: ffmpeg:
input_args: 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
- -avoid_negative_ts ```
- make_zero
- -flags ### UDP Only Cameras
- low_delay
- -strict If your cameras do not support TCP connections for RTSP, you can use UDP.
- experimental
- -fflags ```yaml
- +genpts+discardcorrupt ffmpeg:
- -rtsp_transport input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport udp -stimeout 5000000 -use_wallclock_as_timestamps 1
- tcp
- -stimeout
- "5000000"
- -use_wallclock_as_timestamps
- "1"
``` ```