width

  • Type: Integer
  • Range / Valid values: Device Dependent
  • Default: 352
  • Option Topic

The width in pixels of each frame. Valid range is camera dependent.

Motion does not scale so should be set to the actual size of the v4l device.

In case of a net camera motion sets the height to the height of the first image read.

Motion actually set the size of the image coming from the video4linux device.

Your camera or capture/TV card will not support any picture size. You must know which frame size (width and height) the camera supports. If you do not know start with width 320 and height 240 which most cameras and capture cards supports.

For some device drivers like pwc (driver for Philips USB cameras) setting the size to a non-standard value makes the driver create an image of the nearest smaller size and create a gray band around the image to fit the size given by motion. Note that it is the driver and not motion that generates the gray band. Motion will try to detect motion in the entire image including the gray band.

Motion requires that dimensions of camera image must have both height and width that are a multiple of 16. Thís is normally not a problem. All standard sizes like 640, 480, 352, 320, 288, 240, ...etc are multiples of 16.

Comments


ConfigOptionForm edit

Option width
Type Integer
Range Device Dependent
Default 352
Description The width in pixels of each frame. Valid range is camera dependent.
Group Capture Device
Topic revision: r4 - 13 Aug 2005 - 16:05:01 - KennethLavrsen
 
Motion - Config Option Width
Copyright © 1999-2012 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.