v4l2_palette
- Type: Integer
- Range / Valid values: 0 - 17
- Default: 17
- Group: Video Devices
The v4l2_palette allows the user to choose preferable palette to be use by Motion. Note that this is only the preferred option. If the video device does not support the requested format, Motion will loop through the available palettes to try to find one that is supported by both Motion and the device. Motion will report the supported palettes of the device when Motion starts when the log_level is specified as NTC or higher. The default of 17 is highly preferred since this the native format that Motion uses internally. , The v4l2_palette allows the user to choose preferable palette to be use by Motion. Note that this is only the preferred option. If the video device does not support the requested format, Motion will loop through the available palettes to try to find one that is supported by both Motion and the device. Motion will report the supported palettes of the device when Motion starts when the log_level is specified as NTC or higher. The default of 17 is highly preferred since this the native format that Motion uses internally.
Supported values are
Value |
Name |
Short |
0 |
V4L2_PIX_FMT_SN9C10X |
S910 |
1 |
V4L2_PIX_FMT_SBGGR16 |
BYR2 |
2 |
V4L2_PIX_FMT_SBGGR8 |
BA81 |
3 |
V4L2_PIX_FMT_SPCA561 |
S561 |
4 |
V4L2_PIX_FMT_SGBRG8 |
GBRG |
5 |
V4L2_PIX_FMT_SGRBG8 |
GRBG |
6 |
V4L2_PIX_FMT_PAC207 |
P207 |
7 |
V4L2_PIX_FMT_PJPG |
PJPG |
8 |
V4L2_PIX_FMT_MJPEG |
MJPEG |
9 |
V4L2_PIX_FMT_JPEG |
JPEG |
10 |
V4L2_PIX_FMT_RGB24 |
RGB3 |
11 |
V4L2_PIX_FMT_SPCA501 |
S501 |
12 |
V4L2_PIX_FMT_SPCA505 |
S505 |
13 |
V4L2_PIX_FMT_SPCA508 |
S508 |
14 |
V4L2_PIX_FMT_UYVY |
UYVY |
15 |
V4L2_PIX_FMT_YUYV |
YUYV |
16 |
V4L2_PIX_FMT_YUV422P |
422P |
17 |
V4L2_PIX_FMT_YUV420 |
YU12 |