Motion - Config Option Netcam Url

netcam_url

  • Type: String
  • Range / Valid values: Max 4095 characters written as URL
  • Default: Not defined
  • Group: Network Cameras

URL to use if you are using a network camera (incl http:// ftp:// mjpg:// rtsp:// mjpeg:// or file:///). Size will be autodetected Must be a URL that returns single jpeg pictures or a raw mjpeg stream. A trailing slash may be required for some cameras., URL to use if you are using a network camera (incl http:// ftp:// mjpg:// rtsp:// mjpeg:// or file:///). Size will be autodetected Must be a URL that returns single jpeg pictures or a raw mjpeg stream. A trailing slash may be required for some cameras.

Motion can connect to a network camera through a normal TCP socket. All you need to give it is the URL. The URL given must return either one single jpeg picture or an mjpeg stream.

If you are using a network camera, size will be auto-detected

Available prefixes to the URL:

  • http://
  • ftp://
  • mjpg://
  • rtsp://
  • mjpeg://
  • file:///

The prefixes of mjpg and mjpeg are not actual protocols and allow the user to specify different formats and methods to access the network stream. They are internally translated into http. For options such as rtsp, it is recommended that the connection string be validated with other applications such as ffplay or VLC.

When the netcam_url is defined the video4linux options are ignored

Example of URL: http://www.gate.com/pe1rxq/jeroen.jpg.

Also watch out that you do not use a URL that create an HTML page with an embedded jpg. What must be returned is the jpg picture itself or the raw mjpeg stream.
Topic revision: r12 - 07 Aug 2016, KennethLavrsen
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.