Webcam 120 trust

salve,
oggi è la prima volta che utilizo una webcam da 13 anni che uso +o- il computer. ho trovato un awebcam della trust (120 spacecam) e l’ho attaccata al computer. utilizzo fedora 10.

il dispèositivo è stato rilevato dal sistema credo.

# lsusb Bus 001 Device 002: ID 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 002: ID 0c45:600d Microdia TwinkleCam USB camera Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

poi

dmesg|grep video pci 0000:02:00.0: Boot video device Linux video capture interface: v2.00 usb 2-2: V4L2 device registered as /dev/video0 usb 2-2: Device /dev/video0 is already in use

solo che aprendo cheese le immagini mi si vedono sfocate e a a scatti(tipo vga anni 90) e la max risoluzione è 272x272 contro 352x288 supportati
ho installato camstream ma addirittura non mi si vede nulla.

che posso fare?

Subito dopo aver collegato la webcam alla porta usb da questo comando e dicci cosa risulta:

$ dmesg |grep usb

tout de suit…ho cambiato porta usb…

# dmesg |grep usb usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb usb usb1: configuration #1 chosen from 1 choice usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: EHCI Host Controller usb usb1: Manufacturer: Linux 2.6.27.12-170.2.5.fc10.i686 ehci_hcd usb usb1: SerialNumber: 0000:00:0a.1 usb usb2: configuration #1 chosen from 1 choice usb 1-9: new high speed USB device using ehci_hcd and address 2 usb usb2: New USB device found, idVendor=1d6b, idProduct=0001 usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb2: Product: OHCI Host Controller usb usb2: Manufacturer: Linux 2.6.27.12-170.2.5.fc10.i686 ohci_hcd usb usb2: SerialNumber: 0000:00:0a.0 usb 1-9: configuration #1 chosen from 1 choice usb 1-9: New USB device found, idVendor=0bda, idProduct=8187 usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-9: Product: RTL8187_Wireless usb 1-9: Manufacturer: Manufacturer_Realtek_RTL8187_ usb 1-9: SerialNumber: 0015AF045497 usbcore: registered new interface driver hiddev usbcore: registered new interface driver usbhid usbhid: v2.6:USB HID core driver usbcore: registered new interface driver rtl8187 usb 2-2: new full speed USB device using ohci_hcd and address 2 usb 2-2: configuration #1 chosen from 1 choice usb 2-2: New USB device found, idVendor=0c45, idProduct=600d usb 2-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0 usb 2-2: Product: USB camera usb 2-2: SN9C10[12] PC Camera Controller detected (vid:pid 0x0C45:0x600D) usb 2-2: PAS106B image sensor detected usb 2-2: Initialization succeeded usb 2-2: V4L2 device registered as /dev/video0 usb 2-2: Optional device control through 'sysfs' interface disabled usbcore: registered new interface driver sn9c102 usb 2-2: Device /dev/video0 is already in use usb 2-2: A blocking open() has been requested. Wait for the device to be released... usb 2-2: USB disconnect, address 2 usb 2-2: Disconnecting SN9C1xx PC Camera... usb 2-2: V4L2 device /dev/video0 deregistered usb 2-1: new full speed USB device using ohci_hcd and address 3 usb 2-1: configuration #1 chosen from 1 choice usb 2-1: SN9C10[12] PC Camera Controller detected (vid:pid 0x0C45:0x600D) usb 2-1: PAS106B image sensor detected usb 2-1: Initialization succeeded usb 2-1: V4L2 device registered as /dev/video0 usb 2-1: Optional device control through 'sysfs' interface disabled usb 2-1: New USB device found, idVendor=0c45, idProduct=600d usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 usb 2-1: Product: USB camera

grazie

Hai aggiornato V4L2?
Prova a modificare le impostazioni di camstream, la webcam dovrebbe funzionare correttamente, è rilevata e installa il tutto in modo corretto…

devo installarlo… ha biosogno di particolari procedure? con yum non me lo trova…

hem…su camstream non rileva il device

No è già installato, tantè che viene caricato un driver di v4l2.
Prova a fare così:

# yum update libv4l v4l2-tool

Dovrebbe aggiornare video4linux se non è già all’ultima versione disponibile…

Ehy cavolo adesso che sto provando nemmeno a me viene più rilevata la webcam…o meglio il dispositivo video…hai aggiornato per caso le regole di SELinux ultimamente?

prova con mplayer:

$ mplayer tv:// -tv driver=v4l2:width=160:height=120:fps=25:device=/dev/video0 -vo x11

allora, il v4l2-tool l’ho instza<allato, ma mi ha dato quello per fc9.

il comando per mplayer l’ho dato ma mi restituisce il seguente output:

[code]MPlayer dev-SVN-r27514-4.3.2 © 2000-2008 MPlayer Team
CPU: AMD Athlon™ 64 X2 Dual Core Processor 4600+ (Family: 15, Model: 75, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled with runtime CPU detection.
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 [email protected]
comment: first try, more to come :wink:
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: SN9C1xx PC Camera
Capabilites: video capture read/write streaming supported norms:
inputs: 0 = Camera;
Current input: 0
Current format: unknown (0x31384142)
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Invalid argument Error: Cannot set norm! Selected input hasn’t got a tuner!
v4l2: Cannot get fps
v4l2: ioctl set mute failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument

===============
Cannot find codec matching selected -vo and video format 0x31384142. Read DOCS/HTML/en/codecs.html! ===========================================================

v4l2: ioctl set mute failed: Invalid argument v4l2: 0 frames successfully processed, 0 frames dropped. Exiting… (End of file) [/code]

lanciando catstream ada linea di com. mi da l’output:

Session management error: None of the authentication protocols specified are supported

mentre se cerco di cambiare risoluzione mi dice:

CVideoDevice::CVideoDevice() could not query capabilities; is this really a video device?

spero sia inerente…

edit Virus: facciamo attenzione alla formattazione dei post, per cortesia.

prova con questa:

$ $ mplayer tv:// -tv driver=v4l:width=160:height=120:fps=25:device=/dev/video0

OK scusate, a me la webcam funziona…non so cosa avevo combinato…

ho lanciato il comando mplayer tv:// -tv driver=v4l:width=160:height=120:fps=25:device=/dev/video0
mi restituisce il seguentee warning:

[quote]=================================================================
WARNING: YOU ARE USING V4L DEMUXER WITH V4L2 DRIVERS!!! As the V4L1 compatibility layer is broken, this may not work. If you encounter any problems, use driver=v4l2 instead. Bugreports on driver=v4l with v4l2 drivers will be ignored. =================================================================[/quote]

va in conlitto i driver V4l sui val2?
quello che ho fatto in precedenza e stato lanciare subito cheese…e pooi aver provato a lanciare a riga di comando mplayer.

Prova con questo comando:

mplayer tv:// -tv driver=v4l2:width=160:height=120:fps=25:device=/dev/video0