Всем привет, изучаю linux, сталкнулся с проблемой, незнаю как решить, прошу помощи. В подьезде стоит аналоговая камера, карта видеозахвата «AVerMedia DVD EZMaker». На win7 все работет нормально.
Поставил отдельно старенькую машину для тренеровки и изучения, установил Debian. Задача, корректно установить карту видеозахвата «AVerMedia DVD EZMaker», что бы получить некое подобие видеорегистратора, с помошью программ motion, либо AVReg .
user@test:~$ uname -a
Linux test 2.6.32-5-686 #1 SMP Mon Jan 16 16:04:25 UTC 2012 i686 GNU/Linux
Вставил карту видеозахвата, драйвера вроде определились правельно.
user@test:~$ lspci
00:00.0 Host bridge: Intel Corporation 82915G/P/GV/GL/PL/910GL Memory Controller Hub (rev 0e)
00:01.0 PCI bridge: Intel Corporation 82915G/P/GV/GL/PL/910GL PCI Express Root Port (rev 0e)
00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 05)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 05)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 05)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 05)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 05)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d5)
00:1f.0 ISA bridge: Intel Corporation 82801FB/FR (ICH6/ICH6R) LPC Interface Bridge (rev 05)
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 05)
00:1f.2 IDE interface: Intel Corporation 82801FB/FW (ICH6/ICH6W) SATA Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 05)
01:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
01:09.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
03:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce 210] (rev a2)
03:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
user@test:~$ ls /dev/ | grep video
video0
user@test:~$ v4l-info /dev/video0 | head -n 9
### v4l2 device info [/dev/video0] ###
general info
VIDIOC_QUERYCAP
driver : "saa7134"
card : "AVerMedia DVD EZMaker"
bus_info : "PCI:0000:01:09.0"
version : 0.2.15
capabilities : 0x5000015 [VIDEO_CAPTURE,VIDEO_OVERLAY,VBI_CAPTURE,READWRITE,STREAMING]
Установил motion, немного поправил motion.conf, запускаю
user@test:~$ sudo motion
[sudo] password for user:
[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3412993 LIBAVFORMAT_BUILD 3415808
[0] Thread 1 is from /etc/motion/motion.conf
[0] motion-httpd/3.2.12 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] Thread 1 started
[1] cap.driver: "saa7134"
[1] cap.card: "AVerMedia DVD EZMaker"
[1] cap.bus_info: "PCI:0000:01:09.0"
[1] cap.capabilities=0x05000015
[1] - VIDEO_CAPTURE
[1] - VIDEO_OVERLAY
[1] - VBI_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Test palette YU12 (320x240)
[1] Using palette YU12 (320x240) bytesperlines 480 sizeimage 115200 colorspace 00000000
[1] found control 0x00980900, "Brightness", range 0,255
[1] "Brightness", default 128, current 128
[1] found control 0x00980901, "Contrast", range 0,127
[1] "Contrast", default 68, current 68
[1] found control 0x00980902, "Saturation", range 0,127
[1] "Saturation", default 64, current 64
[1] found control 0x00980903, "Hue", range -128,127
[1] "Hue", default 0, current 0
[1] found control 0x00000000, "42", range 0,0 !DISABLED!
[1] "42", default 0, current 0
[1] found control 0x00000000, "42", range 0,0 !DISABLED!
[1] "42", default 0, current 0
[1] found control 0x00000000, "42", range 0,0 !DISABLED!
[1] "42", default 0, current 0
[1] found control 0x00000000, "42", range 0,0 !DISABLED!
[1] "42", default 0, current 0
[1] found control 0x00000000, "42", range 0,0 !DISABLED!
[1] "42", default 0, current 0
[1] found control 0x00000000, "42", range 0,0 !DISABLED!
[1] "42", default 0, current 0
[1] found control 0x08000000, "Invert", range 0,1
[1] "Invert", default 0, current 0
[1] found control 0x08000001, "y offset odd field", range 0,128
[1] "y offset odd field", default 0, current 0
[1] mmap information:
[1] frames=4
[1] 0 length=118784
[1] 1 length=118784
[1] 2 length=118784
[1] 3 length=118784
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 8081
[1] v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 3): Input/output error //вот такая ошибка иногда вылазит
^C[1] Thread exiting
[1] Calling vid_close() from motion_cleanup
[1] Closing video device /dev/video0
[0] httpd - Finishing
[0] httpd Closing
[0] httpd thread exit
[0] Motion terminating
в браузере подключаюсь к http://10.254.254.111:8081 и вижу черный экран с отметками времени, т.е. как будто не подключено питание камеры. Тащу телевизор, проверяю сигнал на AV, картинка есть.
Есть еще один любопытный факт, при работе этой карточки на win7 изображение с камеры в стороннем ПО (skype к примеру) появлялось, только после того как запустишь фирменый софт с диска «AVer media».
Прошу Вашей помощи.