[Musix-usuarios] captura y control sobre webcam
fri jappi
frijappi en gmail.com
Sab Ago 14 23:05:09 CEST 2010
2010/8/14 joseangon <joseangon47 en gmail.com>:
>
>
> 2010/8/14 fri jappi <frijappi en gmail.com>
>
>
> Hola.
>
>
>
>> cacho en musix2:~$ lsusb
>> Bus 005 Device 003: ID 0c45:627b Microdia PC Camera (SN9C201 + OV7660)
>> Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>> Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
>> Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
>> Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
>> Bus 001 Device 002: ID 0566:3107 Monterey International Corp.
>> Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
>>
>> hay un cambiio en la consola
>
>
>
> cierot, hay la tenemos ... en el Bus 005
>
>
>
>>
>> musix2:/home/cacho#
>> musix2:/home/cacho# tail -f /var/log/syslog
>>
>> Aug 14 17:27:31 musix2 kernel: [ 7717.823886] usb 5-5: USB disconnect,
>> address 3
>> Aug 14 17:27:31 musix2 kernel: [ 7717.824457] sn9c20x: SN9C20X USB 2.0
>> Webcam unplugged
>> Aug 14 17:27:31 musix2 kernel: [ 7717.824506] sn9c20x: SN9C20X USB 2.0
>> Webcam releases control of video device /dev/video0
>> Aug 14 17:27:31 musix2 NetworkManager: <debug> [1281817651.380266]
>> nm_hal_device_removed(): Device removed (hal udi is
>>
>> '/org/freedesktop/Hal/devices/usb_device_c45_627b_noserial_if0_video4linux').
>> Aug 14 17:27:31 musix2 NetworkManager: <debug> [1281817651.380922]
>> nm_hal_device_removed(): Device removed (hal udi is
>>
>> '/org/freedesktop/Hal/devices/usb_device_c45_627b_noserial_logicaldev_input').
>> Aug 14 17:27:31 musix2 NetworkManager: <debug> [1281817651.386468]
>> nm_hal_device_removed(): Device removed (hal udi is
>> '/org/freedesktop/Hal/devices/usb_device_c45_627b_noserial_if0').
>> Aug 14 17:27:31 musix2 NetworkManager: <debug> [1281817651.391370]
>> nm_hal_device_removed(): Device removed (hal udi is
>> '/org/freedesktop/Hal/devices/usb_device_c45_627b_noserial_usbraw').
>> Aug 14 17:27:31 musix2 NetworkManager: <debug> [1281817651.394357]
>> nm_hal_device_removed(): Device removed (hal udi is
>> '/org/freedesktop/Hal/devices/usb_device_c45_627b_noserial').
>> Aug 14 17:27:45 musix2 kernel: [ 7732.262044] usb 5-5: new high speed
>> USB device using ehci_hcd and address 4
>> Aug 14 17:27:45 musix2 kernel: [ 7732.378728] usb 5-5: New USB device
>> found, idVendor=0c45, idProduct=627b
>> Aug 14 17:27:45 musix2 kernel: [ 7732.378733] usb 5-5: New USB device
>> strings: Mfr=0, Product=1, SerialNumber=0
>> Aug 14 17:27:45 musix2 kernel: [ 7732.378738] usb 5-5: Product: USB20
>> Camera
>> Aug 14 17:27:45 musix2 kernel: [ 7732.378979] usb 5-5: configuration
>> #1 chosen from 1 choice
>
>
> y aquí nos da respuesta del módulo:
>
>
>>
>> Aug 14 17:27:45 musix2 kernel: [ 7732.380276] sn9c20x: SN9C20X USB 2.0
>> Webcam - 0C45:627B plugged-in.
>
>
> el: sn9c20x
>
>
>
>>
>> Aug 14 17:27:45 musix2 NetworkManager: <debug> [1281817665.947465]
>> nm_hal_device_added(): New device added (hal udi is
>> '/org/freedesktop/Hal/devices/usb_device_c45_627b_noserial').
>> Aug 14 17:27:45 musix2 kernel: [ 7732.419543] sn9c20x: Detected OV7660
>> Sensor.
>
>
>
> y aquí el contacto con el dispositivo /dev/video:
>
>
>
>>
>> Aug 14 17:27:45 musix2 kernel: [ 7732.419743] sn9c20x: Webcam device
>> 0C45:627B is now controlling video device /dev/video0
>> Aug 14 17:27:45 musix2 kernel: [ 7732.419882] input: SN9C20X Webcam as
>> /class/input/input11
>> Aug 14 17:27:45 musix2 kernel: [ 7732.438696] sn9c20x: Using yuv420
>> output format
>> Aug 14 17:27:46 musix2 NetworkManager: <debug> [1281817666.062514]
>> nm_hal_device_added(): New device added (hal udi is
>> '/org/freedesktop/Hal/devices/usb_device_c45_627b_noserial_if0').
>> Aug 14 17:27:46 musix2 NetworkManager: <debug> [1281817666.100112]
>> nm_hal_device_added(): New device added (hal udi is
>>
>> '/org/freedesktop/Hal/devices/usb_device_c45_627b_noserial_if0_video4linux').
>> Aug 14 17:27:46 musix2 NetworkManager: <debug> [1281817666.130819]
>> nm_hal_device_added(): New device added (hal udi is
>> '/org/freedesktop/Hal/devices/usb_device_c45_627b_noserial_usbraw').
>> Aug 14 17:27:46 musix2 NetworkManager: <debug> [1281817666.173294]
>> nm_hal_device_added(): New device added (hal udi is
>>
>> '/org/freedesktop/Hal/devices/usb_device_c45_627b_noserial_logicaldev_input').
>> Aug 14 17:28:15 musix2 battery-stats-collector[4668]: apm_read failed
>> with error code 1
>>
>> Hey!
>> alentador?
>> parece al menos!
>
>
>
> luego tu cámara, parece, está perfectamente soportada por el kernel ¿?. Al
> menos el módulo está cargado. En el kernel de Musix-3 está incluido por
> defecto, luego miro en el del Musix-2, ... pero creo que tambien ... ya te
> cuento lo que vea, después.
>
>
OK!
:)D
> Ahora hacemos un:
>
> $ ls -la /dev/video0
cacho en musix2:~$ ls -la /dev/video0
crw-rw---- 1 root video 81, 0 ago 14 17:27 /dev/video0
>
> y tambien, por si fala el anterior:
>
> $ ls -la /dev/video
>
cacho en musix2:~$ ls -la /dev/video
ls: no se puede acceder a /dev/video: No existe el fichero o el directorio
>
> Ya casi acabamos !!!
>
:))D
>
>
> Saludos.
>
>
Saludos!
>
>>
>> --
>> Veritas liberabit nos
>>
>> _______________________________________________
>> Musix GNU+Linux - www.musix.org.ar
>> Musix-usuarios mailing list
>> Musix-usuarios en lists.ourproject.org
>> https://lists.ourproject.org/cgi-bin/mailman/listinfo/musix-usuarios
>
>
>
> --
> José A. González
>
> Siempre GNU Linux.
>
> _______________________________________________
Más información sobre la lista de distribución Musix-usuarios