Ну Вы безусловно правы, но советами Андрея я пользуюсь уже не первый десяток лет, в своё время он меня на Альт-4 подсадил, так что вряд ли он здесь ошибся.
Я - другое дело. Косячу тока так... Про команду ls -l /dev я не знал.
Медленным шагом, робким зигзагом
crw-rw----+ 1 root video 81, 0 дек 2 19:23 video0
[konst@comp-pentium-dual-b468b1 ~]$ su -
Password:
[root@comp-pentium-dual-b468b1 ~]# apt-get install v4l-utils
Чтение списков пакетов... Завершено
Построение дерева зависимостей... Завершено
Последняя версия v4l-utils уже установлена.
0 будет обновлено, 0 новых установлено, 0 пакетов будет удалено и 0 не будет обновлено.
[root@comp-pentium-dual-b468b1 ~]# v4l2-ctl -d /dev/video0 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
[0]: 'PJPG' (GSPCA PJPG, compressed)
Size: Discrete 640x480
[root@comp-pentium-dual-b468b1 ~]# v4l2-ctl --get-fmt-video
Format Video Capture:
Width/Height : 640/480
Pixel Format : 'PJPG' (GSPCA PJPG)
Field : None
Bytes per Line : 640
Size Image : 115790
Colorspace : JPEG
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)
Flags :
[root@comp-pentium-dual-b468b1 ~]#
С командой я опять плыву.
[konst@comp-pentium-dual-b468b1 ~]$ v4l2-ctl
General/Common options:
--all display all information available
-C, --get-ctrl <ctrl>[,<ctrl>...]
get the value of the controls [VIDIOC_G_EXT_CTRLS]
-c, --set-ctrl <ctrl>=<val>[,<ctrl>=<val>...]
set the value of the controls [VIDIOC_S_EXT_CTRLS]
-D, --info show driver info [VIDIOC_QUERYCAP]
-d, --device <dev> use device <dev> instead of /dev/video0
if <dev> starts with a digit, then /dev/video<dev> is used
-e, --out-device <dev> use device <dev> for output streams instead of the
default device as set with --device
if <dev> starts with a digit, then /dev/video<dev> is used
-h, --help display this help message
--help-all all options
--help-io input/output options
--help-meta metadata format options
--help-misc miscellaneous options
--help-overlay overlay format options
--help-sdr SDR format options
--help-selection crop/selection options
--help-stds standards and other video timings options
--help-streaming streaming options
--help-subdev sub-device options
--help-tuner tuner/modulator options
--help-vbi VBI format options
--help-vidcap video capture format options
--help-vidout vidout output format options
--help-edid edid handling options
-k, --concise be more concise if possible.
-l, --list-ctrls display all controls and their values [VIDIOC_QUERYCTRL]
-L, --list-ctrls-menus
display all controls and their menus [VIDIOC_QUERYMENU]
-r, --subset <ctrl>[,<offset>,<size>]+
the subset of the N-dimensional array to get/set for control <ctrl>,
for every dimension an (<offset>, <size>) tuple is given.
-w, --wrapper use the libv4l2 wrapper library.
--list-devices list all v4l devices
--log-status log the board status in the kernel log [VIDIOC_LOG_STATUS]
--get-priority query the current access priority [VIDIOC_G_PRIORITY]
--set-priority <prio>
set the new access priority [VIDIOC_S_PRIORITY]
<prio> is 1 (background), 2 (interactive) or 3 (record)
--silent only set the result code, do not print any messages
--sleep <secs> sleep <secs>, call QUERYCAP and close the file handle
--verbose turn on verbose ioctl status reporting
[konst@comp-pentium-dual-b468b1 ~]$