algri14⇓ пишет:как у меня на скрине №3, эта прога ещё и звук начинает писать
про звук не знал. В моей камере качество звука плохое, поэтому не пригодится.
xxblx⇓ пишет:/etc/modprobe.d/uvcvideo.conf
с содержимым options uvcvideo nodrop=1
создал, вроде помогло, но эта ошибка всё же промелькнула, не понял в какой момент. Наблюдаю.
2) если запустить через vlc
Консоль
$ cvlc v4l2:///dev/video1
то он долго думает (минуту примерно), при этом пишет:
Консоль
VLC media player 2.1.5 Rincewind (revision 2.1.4-49-gdab6cb5)
[0x22a2098] dummy interface: using the dummy interface module...
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7fceac001248] main vout display error: Failed to resize display
[0x7fceac0040a8] xcb_window window error: X server failure
затем появляется окно, камера работает, картинку видно.
При следующих запусках точно также.
А если через mplayer
Консоль
$ mplayer -tv driver=v4l2:device=/dev/video1 tv://
тогда сразу появляется окно, в окне всё зелёное и картинки нет,
при этом в консоли:
Консоль
MPlayer SVN-3.r36361.3.mga4.tainted-4.8.2 (C) 2000-2013 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.Playing tv://.
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: USB2.0 Camera
Capabilities: video capture streaming
supported norms:
inputs: 0 = Camera 1;
Current input: 0
Current format: YUYV
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Inappropriate ioctl for device
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
v4l2: ioctl set Brightness -3 failed: Input/output error
v4l2: ioctl query control failed: Input/output error
v4l2: ioctl query control failed: Input/output error
v4l2: ioctl query control failed: Input/output error
v4l2: ioctl streamon failed: Input/output error
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 640x480 => 640x480 Packed YUY2 [zoom]
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
Audio: no sound
Starting playback...
V: 0.0 13/ 13 ??% ??% ??,?% 0 0
а в /var/log/kernel/errors.log:
▼Spoiler
Jan 14 00:51:34 localhost kernel: uvcvideo 1-2:1.1: resume error -5
Jan 14 00:51:35 localhost kernel: uvcvideo: Failed to query (SET_CUR) UVC control 2 on unit 3: -110 (exp. 2).
Jan 14 00:51:35 localhost kernel: uvcvideo: Failed to query (GET_DEF) UVC control 6 on unit 3: -110 (exp. 2).
Jan 14 00:51:35 localhost kernel: uvcvideo: Failed to query (GET_DEF) UVC control 7 on unit 3: -32 (exp. 2).
Jan 14 00:51:35 localhost kernel: uvcvideo: Failed to query (GET_DEF) UVC control 3 on unit 3: -32 (exp. 2).
Jan 14 00:51:35 localhost kernel: uvcvideo: Failed to set UVC commit control : -32 (exp. 26)
нажимаю "закрыть" долго думает (примерно 1 минуту) потом закрывается.
В консоли:
Консоль
v4l2: v4l2: ioctl set mute failed: Invalid argument
v4l2: 0 frames successfully processed, 0 frames dropped.
Запускаю ещё раз
Консоль
MPlayer SVN-3.r36361.3.mga4.tainted-4.8.2 (C) 2000-2013 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.Playing tv://.
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
больше ничего и висит (примерно 1,5 минуты). CTRL-с, CTRL-z не помогают.
При этом в /var/log/kernel/errors.log
▼Spoiler
Jan 14 00:57:14 localhost kernel: usb 1-2: device descriptor read/64, error -110
Jan 14 00:57:30 localhost kernel: usb 1-2: device descriptor read/64, error -110
Jan 14 00:57:45 localhost kernel: usb 1-2: device descriptor read/64, error -110
Jan 14 00:58:00 localhost kernel: usb 1-2: device descriptor read/64, error -110
Jan 14 00:58:11 localhost kernel: usb 1-2: device not accepting address 7, error -110
Jan 14 00:58:21 localhost kernel: usb 1-2: device not accepting address 7, error -110
Jan 14 00:58:37 localhost kernel: usb 1-2: device descriptor read/64, error -110
Jan 14 00:58:52 localhost kernel: usb 1-2: device descriptor read/64, error -110
Затем в консоли:
Консоль
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.Playing tv://.
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
v4l2: unable to open '/dev/video1': Device or resource busy
v4l2: ioctl set mute failed: Bad file descriptor
v4l2: 0 frames successfully processed, 0 frames dropped.
Файл устройства пропадает, а вот модуль ядра остаётся загруженным, и в /var/log/kernel/errors.log продолжают сыпаться ошибки:
▼Spoiler
Jan 14 00:59:07 localhost kernel: usb 1-2: device descriptor read/64, error -110
Jan 14 00:59:22 localhost kernel: usb 1-2: device descriptor read/64, error -110
Jan 14 00:59:33 localhost kernel: usb 1-2: device not accepting address 10, error -110
Jan 14 00:59:43 localhost kernel: usb 1-2: device not accepting address 11, error -110
Jan 14 00:59:43 localhost kernel: hub 1-0:1.0: unable to enumerate USB device on port 2
Jan 14 00:59:59 localhost kernel: usb 2-2: device descriptor read/64, error -110
Jan 14 01:00:14 localhost kernel: usb 2-2: device descriptor read/64, error -110
Jan 14 01:00:30 localhost kernel: usb 2-2: device descriptor read/64, error -110
Jan 14 01:00:45 localhost kernel: usb 2-2: device descriptor read/64, error -110
Jan 14 01:00:55 localhost kernel: usb 2-2: device not accepting address 5, error -110
Jan 14 01:01:06 localhost kernel: usb 2-2: device not accepting address 6, error -110
Jan 14 01:01:06 localhost kernel: hub 2-0:1.0: unable to enumerate USB device on port 2
и т.д.
после переподключения USB разъёма камеры, все приходит в норму.
x86_64, Xfce
английский язык скудный, невыразительный, торопливый, пишется и говорится по разному.