docs/userguide/definemonitor/definemonitor_source.rst
.. _source_tab:
The Source tab contains parameters related to the video stream as well as selection of capture and decode methods. The parameters listed in the Source tab depend on the Source Type specified in the General tab.
For documentation purposes we have split the Source tab information into two parts:
common_source_parameters section just below and can be entered first... _common_source_parameters:
Common Source Parameters ^^^^^^^^^^^^^^^^^^^^^^^^
.. figure:: images/define-monitor-source.png
Common Parameters for all Source Types (other than Web Site)
Capturing
Decoding
Target Colorspace: Specify the color depth or bits per pixel in the captured image. Most modern cameras support 32 bit depth. This has no controlling effect on the camera.
Capture Resolution: Resolution is the dimensions in bits of the video stream provided by camera. It is important that the entered capture resolution matches the camera stream. The pulldown menu contains most commonly used resolutions up to 4K and is the recommended way to enter resolution. Resolution can also be entered manually if necessary.
Preserve Aspect Ratio: Enable this checkbox to ensure that the width preserves ratio to the height, or vice versa. Enter either width or height and the other dimension will be calculated. The default ratio is 4:3 but can be amended globally via the :guilabel:Options -> :guilabel:Config -> :guilabel:DEFAULT_ASPECT_RATIO setting.
Orientation: Use this option if the camera stream is not oriented as desired and cannot be changed directly in the camera firmware. Usually this is needed when the camera is not installed with correct physical orientation. This incurs an additional processing overhead in ZoneMinder. Remember to swap the height and width fields so that they apply correctly after rotation.
Deinterlacing: Only required for processing streams from interlaced sources so that the video is converted to progressive frames. Select the desired deinterlacing type from the dropdown menu.
Maximum FPS: For modern streaming IP cameras, do not use this field to reduce the frame rate. It is recommended to leave this blank which implies no Maximum FPS limit. ZoneMinder will use the FPS as provided from the camera stream. This option is only useful for local devices or older IP cameras that support snapshot mode.
Alarm Maximum FPS: For modern streaming IP cameras, do not use this field to reduce the frame rate. It is recommended to leave this blank which implies no Alarm Maximum FPS limit. ZoneMinder will use the FPS as provided from the camera stream. This option is only useful for local devices or older IP cameras that support snapshot mode.
.. warning:: Do not use the Maximum FPS parameters unless you know what you are doing. Setting these parameters may have undesirable results for network IP cameras.
Source Tab for FFmpeg ^^^^^^^^^^^^^^^^^^^^^
This is the **recommended** source type for most modern networked IP cameras.
.. figure:: images/define-monitor-source-ffmpeg.png
Source Tab for FFmpeg
Listed below are the parameters unique to FFmpeg Source. Please also see :ref:common_source_parameters section above for information related to the common source parameters which also need to be entered.
Source Path: Use this field to enter the full URL of the camera stream or file. There are several methods to learn this:
ZoneMinder Hardware Compatibility wiki <https://wiki.zoneminder.com/Hardware_Compatibility_List>__ZoneMinder Hardware Compatibility Forum <https://forums.zoneminder.com/viewforum.php?f=10&sid=1778ce18ebd267e36da01158e502cd11>__Camera Connection Database <https://www.ispyconnect.com/cameras>__Username: The username of camera stream. Note that if your URL contains camera authentication these may be automatically populated into the Username and Password fields.
Password: The password of camera stream. Note that if your URL contains camera authentication these may be automatically populated into the Username and Password fields.
Method:
reorder_queue_size=xx in Options.Options: Here you can pass various settings to the FFmpeg libraries. Common options include reorder_queue_size and allowed_media_types.
SourceSecondPath: This can be used to define a second stream for this Monitor. Enter URL path for second stream. The target use case is for a low resolution substream to use for analysis which can trigger recording on the main high resolution stream.
.. admonition:: New Feature in ZoneMinder 1.37
Note that the **SourceSecondPath** feature was added in ZoneMinder 1.37 and is not yet fully supported. Use at your own risk with expectation that functionality may change in the future.
ffmpeg -hwaccels <device> command line option. With Intel graphics support, use vaapi. For NVIDIA cuda support use cuda. To check for support, run ffmpeg -hwaccels on the command line.ffmpeg -hwaccels <device> command line option. You should only have to specify this if you have multiple GPUs. A typical value for Intel VAAPI would be /dev/dri/renderD128... attention::
Limited GPU support. Note that GPU support has not yet been fully implemented in ZoneMinder. Use at your own risk with expectation that functionality may change in the future.
Source Tab for libVLC ^^^^^^^^^^^^^^^^^^^^^
The fields for the LibVLC source type are configured the same way as the FFmpeg source type. We recommend only using this source type if issues are experienced with the FFmpeg type.
Source Tab for Remote ^^^^^^^^^^^^^^^^^^^^^
The Remote source type is mainly used for older IP cameras that stream using HTTP protocol. Past use of this source type supported RTSP protocol. The Remote -> RTSP method is no longer being maintained and may be removed in the future. If camera supports RTSP we recommend using FFmpeg source type.
.. figure:: images/define-monitor-source-remote.png
Source Tab for Remote
Listed below are the parameters unique to Remote Source. Please also see :ref:common_source_parameters section above for information related to the common source parameters which also need to be entered.
Example URL for Remote Source Type: http://username:[email protected]:port/videoMain
hostname.com for this example.port (HTTP commonly uses 80).videoMain for this example... todo:: Check status of Remote RTSP support in ZoneMinder version 1.37+
Source Tab for Local ^^^^^^^^^^^^^^^^^^^^
The Local source type is mainly used for locally attached USB cameras or video capture cards.
.. figure:: images/define-monitor-source-local.png
Source Tab for Local
Listed below are the parameters unique to Local Source. Please also see :ref:common_source_parameters section above for information related to the common source parameters which also need to be entered.
/dev/video0 through /dev/video63. Look for the camera in the ZoneMinder Hardware Compatibility wiki <https://wiki.zoneminder.com/Hardware_Compatibility_List>__ to see if your capture card or USB webcam is supported or not and any extra settings that may be needed.Source Tab for File ^^^^^^^^^^^^^^^^^^^
The File source type is used for periodically loading an image file. This is useful for the case where a device or script writes single files instead of the more common stream that the other Source types handle. A description of this can be found in the `ZoneMinder wiki <https://wiki.zoneminder.com/index.php/How_to_use_ZoneMinder_with_cameras_it_may_not_directly_support>`__.
.. figure:: images/define-monitor-source-file.png
Source Tab for File
Listed below are the parameters unique to File Source. Please also see :ref:common_source_parameters section above for information related to the common source parameters which also need to be entered.
/mnt/images/foo.jpg.Source Tab for Web Site ^^^^^^^^^^^^^^^^^^^^^^^
The Web Site Source Type allows one to configure an arbitrary website as a non-recordable, fully interactive Monitor in ZoneMinder. Note that sites with self-signed certificates will not display until the end user first manually navigates to the site and accepts the unsigned certificate. Also note that some sites will set an X-Frame option in the header, which discourages their site from being displayed within a frame. ZoneMinder will detect this condition and present a warning in the log. When this occurs, the end user can choose to install a browser plugin or extension to workaround this issue.
.. figure:: images/define-monitor-source-website.png
Source Tab for Web Site
Listed below are the parameters unique to Web Site Source. Please also see :ref:common_source_parameters section above for information related to the common source parameters which also need to be entered.
http://hostname.com.