LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   unable to get my webcam working in fedora8 (https://www.linuxquestions.org/questions/linux-hardware-18/unable-to-get-my-webcam-working-in-fedora8-680890/)

nkd 11-03-2008 02:47 PM

unable to get my webcam working in fedora8
 
hi all,
I have a acer aspire 4720 with a built in CrystalEye web cam ( Manufacturer is Suyin). I am running fedora8 on it.I am unable to install and use my webcam in linux.I find my camera when I do a lsusb it shows up correctly
[root@localhost luvcview]# lsusb
Bus 002 Device 003: ID 064e:a101 Suyin Corp.
Bus 002 Device 001: ID 0000:0000
Bus 007 Device 001: ID 0000:0000
Bus 006 Device 001: ID 0000:0000
Bus 005 Device 002: ID 046d:c016 Logitech, Inc. M-UV69a Optical Wheel Mouse
Bus 005 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000


I have installed the Linux UVC kernel driver from the berliOS site ( The webcam is listed as being supported by the driver)
svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk

However, the lsmod command doesnot show any drivers uvcvideo.ko installed . I am quite confused.

I have downloaded the luvcview repository and successfully compiled and installed luvcview.When I run the following command I get the result :-
[root@localhost dev]# luvcview -y yuv
luvcview 0.2.4
SDL information:
Video driver: x11
A window manager is available
Device information:
Device path: /dev/video0
ERROR opening V4L interface: No such device or address

I have installed v4l2 and I have also got the SDL libraries in place.

Can someone help me out plz
nishith

farslayer 11-04-2008 11:16 AM

Did you load the driver for the webcam ?
modprobe uvcvideo

I have an Acer netbook wiith the Crystal eye webcam, it's from a different manufacturer than yours, although apparently it uses the same driver, which in my case was already included with the kernel

Code:

lsusb
Bus 005 Device 004: ID 0c45:62c0 Microdia Pavilion Webcam


lennynetbookone:~# lsmod | grep video
uvcvideo              45576  0
compat_ioctl32          1312  1 uvcvideo
videodev              27520  1 uvcvideo
v4l1_compat            12260  2 uvcvideo,videodev


lennynetbookone:~# modinfo uvcvideo
filename:      /lib/modules/2.6.26-1-686/kernel/drivers/media/video/uvc/uvcvideo.ko
version:        v0.1.0
license:        GPL
description:    USB Video Class driver
author:        Laurent Pinchart <laurent.pinchart@skynet.be>

This is on Debian Lenny new install..
Hopefully something here might help.

cheese was loaded on this machine to capture video and puctures. It was all apparenlty detected during install I didn't have to do anything to get it working. I actually ran Cheese asking myself "what is this program for? " and next thing I know I was staring at myself.. That was pretty scarry.


when you modprobe the driver does it give you any errors ?
does it show as listed then ?


Did you install v4l2 and SDL using yum ?

nkd 11-05-2008 04:02 AM

thanks for your response...I too figured that out today. My uvcvideo driver was missing.
So here is what I did for that :-
I went to the berliOS site and downloaded the svn repository for the uvcview driver.
I did a make , make install for it
I restarted the machine
When I did a dmesg | grep Crystal it showed my webcam correctly and then I checked out the driver too using lsmod | grep uvcview and it too showed up nicely.
Next I start up the luvcview utility and it showed my happy face ;)

By the way what utility do you use to capture still images and video from your cam ? I could use some help on that !

Thanks again
nishith

farslayer 11-05-2008 07:52 AM

Cheese. because it was automatically installed :)

http://www.gnome.org/projects/cheese/

it will capture stills and video and has effects to alter the image during capture.. it's cheesy but functional :P

nkd 11-06-2008 10:46 AM

thanks for the cheese :)
I downloaded and installed it. However, it gives error that it couldnot find the webcam.
On the terminal window there are a lot of errors :-
Quote:

[root@localhost ~]# cheese
** Message: Probing the webcam, please ignore the following, not applicabable tries
** Message: Error running pipeline 'v4l2src ! fakesink': Could not get enough buffers from device '/dev/video0'. [v4l2src_calls.c(1034): gst_v4l2src_capture_init (): /pipeline0/v4l2src0:
we received 0 from device '/dev/video0', we want at least 2]
** Message: test pipeline for v4l2src failed:
[v4l2src ! fakesink]: Could not get enough buffers from device '/dev/video0'.
** Message: Error running pipeline 'v4lsrc ! video/x-raw-rgb,width=640,height=480 ! fakesink': Could not get/set settings from/on resource. [v4l_calls.c(409): gst_v4l_set_chan_norm (): /pipeline1/v4lsrc0:
Error setting the channel/norm settings: Invalid argument]
** Message: test pipeline for v4lsrc failed:
[v4lsrc ! video/x-raw-rgb,width=640,height=480 ! fakesink]: Could not get/set settings from/on resource.
** Message: Error running pipeline 'v4lsrc ! video/x-raw-yuv,width=640,height=480 ! fakesink': Could not get/set settings from/on resource. [v4l_calls.c(409): gst_v4l_set_chan_norm (): /pipeline2/v4lsrc1:
Error setting the channel/norm settings: Invalid argument]
** Message: test pipeline for v4lsrc failed:
[v4lsrc ! video/x-raw-yuv,width=640,height=480 ! fakesink]: Could not get/set settings from/on resource.
** Message: Error running pipeline 'v4lsrc ! video/x-raw-rgb,width=320,height=240 ! fakesink': Could not get/set settings from/on resource. [v4l_calls.c(409): gst_v4l_set_chan_norm (): /pipeline3/v4lsrc2:
Error setting the channel/norm settings: Invalid argument]
** Message: test pipeline for v4lsrc failed:
[v4lsrc ! video/x-raw-rgb,width=320,height=240 ! fakesink]: Could not get/set settings from/on resource.
** Message: Error running pipeline 'v4lsrc ! video/x-raw-rgb,width=1280,height=960 ! fakesink': Could not get/set settings from/on resource. [v4l_calls.c(409): gst_v4l_set_chan_norm (): /pipeline4/v4lsrc3:
Error setting the channel/norm settings: Invalid argument]
** Message: test pipeline for v4lsrc failed:
[v4lsrc ! video/x-raw-rgb,width=1280,height=960 ! fakesink]: Could not get/set settings from/on resource.
** Message: Error running pipeline 'v4lsrc ! video/x-raw-rgb,width=174,height=144 ! fakesink': Could not get/set settings from/on resource. [v4l_calls.c(409): gst_v4l_set_chan_norm (): /pipeline5/v4lsrc4:
Error setting the channel/norm settings: Invalid argument]
** Message: test pipeline for v4lsrc failed:
[v4lsrc ! video/x-raw-rgb,width=174,height=144 ! fakesink]: Could not get/set settings from/on resource.
** Message: Error running pipeline 'v4lsrc ! video/x-raw-rgb,width=160,height=120 ! fakesink': Could not get/set settings from/on resource. [v4l_calls.c(409): gst_v4l_set_chan_norm (): /pipeline6/v4lsrc5:
Error setting the channel/norm settings: Invalid argument]
** Message: test pipeline for v4lsrc failed:
[v4lsrc ! video/x-raw-rgb,width=160,height=120 ! fakesink]: Could not get/set settings from/on resource.
** Message: Error running pipeline 'v4lsrc ! fakesink': Could not get/set settings from/on resource. [v4l_calls.c(409): gst_v4l_set_chan_norm (): /pipeline7/v4lsrc6:
Error setting the channel/norm settings: Invalid argument]
** Message: test pipeline for v4lsrc failed:
[v4lsrc ! fakesink]: Could not get/set settings from/on resource.
using photo source: videotestsrc
using video source: videotestsrc

BTW the luvcview program is working without any errors.So nothing wrong with the driver. But from the error it seems like lot of v4l issues!
Any clue about that ?
thanks
nishith

farslayer 11-06-2008 09:12 PM

no I do not know what all those errors are about.. :(

the drivers, v4l, and cheese are all installed on my system straight from the Debian repositories and it all just works. not sure what it is not happy about on your system..


All times are GMT -5. The time now is 04:06 AM.