From a2d1bd2c6711015f2735b7f508b59cfec397b0f7 Mon Sep 17 00:00:00 2001 From: Alex Yao <33379584+alexyao2015@users.noreply.github.com> Date: Wed, 2 Feb 2022 08:27:22 -0500 Subject: [PATCH] Document JPEG streams (#2586) * Document JPEG streams * Update camera_specific.md --- docs/docs/configuration/camera_specific.md | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/docs/configuration/camera_specific.md b/docs/docs/configuration/camera_specific.md index b737a5605..fd7db4de6 100644 --- a/docs/docs/configuration/camera_specific.md +++ b/docs/docs/configuration/camera_specific.md @@ -19,6 +19,34 @@ output_args: rtmp: -c:v libx264 -an -f flv ``` +### JPEG Stream Cameras + +Cameras using a live changing jpeg image will need input parameters as below + +```yaml +input_args: +- -r +- 5 # << enter FPS here +- -stream_loop +- -1 +- -f +- image2 +- -avoid_negative_ts +- make_zero +- -fflags +- nobuffer +- -flags +- low_delay +- -strict +- experimental +- -fflags +- +genpts+discardcorrupt +- -use_wallclock_as_timestamps +- 1 +``` + +Outputting the stream will have the same args and caveats as per [MJPEG Cameras](#mjpeg-cameras) + ### RTMP Cameras The input parameters need to be adjusted for RTMP cameras