From 5d88fe68bb97f1df6df2ce05214dff58751c8438 Mon Sep 17 00:00:00 2001 From: Mr-DaveDev Date: Mon, 28 Oct 2019 22:30:30 -0600 Subject: [PATCH] Add User Requested Decoder Add user option for decoder --- doc/motion_config.html | 28 +++++++++++++- man/motion.1 | 13 +++++++ po/da.po | 19 +++++----- po/de.po | 19 +++++----- po/es.po | 19 +++++----- po/fi.po | 19 +++++----- po/fr.po | 19 +++++----- po/it.po | 19 +++++----- po/ja.po | 19 +++++----- po/ko.po | 19 +++++----- po/li.po | 19 +++++----- po/nl.po | 19 +++++----- po/no.po | 19 +++++----- po/pt.po | 19 +++++----- po/sk.po | 19 +++++----- po/sv.po | 19 +++++----- po/zh.po | 19 +++++----- src/conf.c | 11 ++++++ src/conf.h | 1 + src/motion.c | 18 +++++++++ src/motion.h | 1 + src/netcam_rtsp.c | 84 +++++++++++++++++++++++++----------------- src/netcam_rtsp.h | 2 + 23 files changed, 259 insertions(+), 184 deletions(-) diff --git a/doc/motion_config.html b/doc/motion_config.html index 0edf51ed..0fc16750 100644 --- a/doc/motion_config.html +++ b/doc/motion_config.html @@ -873,6 +873,12 @@ native_language + + + + + netcam_decoder + @@ -1643,9 +1649,10 @@ netcam_url netcam_highres netcam_userpass - netcam_keepalive + netcam_decoder + netcam_keepalive netcam_proxy netcam_tolerant_check netcam_use_tcp @@ -3051,6 +3058,25 @@ To use no authentication simply remove this option. Digest authentication is only available for rtsp/rtmp cameras.

+

netcam_decoder

+

+ +

+ The user requested decoder to use for rtsp/rtmp cameras. Motion will try to open the camera using the decoder + specified by this parameter. If it not successful, it will usually fall back to the default decoder. This + option may improve performance in certain situations for certain platforms and cameras. Users can find the + names of the decoders on their system by going to a command prompt and typing ffmpeg -formats and + looking for the name of the decoder with a 'D' next to it and correlating this with the type of image + provided from the camera. Note that not all decoders will work with all cameras. If the camera does not + open using the requested decoder, specify a different decoder or leave this parameter empty to use the default. + Additionally, ffmpeg will only list out the decoders that it was compiled to support. Additional decoders + may be available if ffmpeg is compiled from source. +

+

netcam_keepalive