webcams not working
I had a Microdia PC Camera (0c45:60fc) working back under Slackware 11.0 but since could not get it to work. So I purchased a Logitech c270 the other day. Now this one won't work. I have seen numerous statements that it "works out of the box" with Slack which means it must be using SN9C102. I am running 13.37 with Xfce window manager. I read that this command would find if all was well:
mplayer -v tv:// -tv device=/dev/video0:driver=v4l2 I use mplayer to display DVDs etc. So mplayer is working. In the listing below for this command there are several defaults taken and the codec for -vo (which is not specified) seems none the less to be unable video format. Code:
MPlayer 20101218-4.5.1 (C) 2000-2010 MPlayer Team |
Can you try a more recent MPlayer version ( e.g. MPlayer-1.1.1 )?
|
That is a possibility but since others have made the c270 work "out of the box" I see no justification. I may try using cheese first.
Correction: cheese is not working under xfce as I see when I went to check. Apparently it takes a picture(s) then locks up but not so under Gnome. |
try using guvcview to test out your webcam under linux
|
Thnx willysr. I had seen guvcview referenced and will do.
I had considered uvc driver as it specifically supports the c270 but appears to be a pain to install and fiddle with. Will let U know how it goes. |
The Microdia camera is supported by the:
http://mxhaard.free.fr/spca5xx.html drivers. The Logitech by the: http://www.ideasonboard.org/uvc/ drivers. The uvc driver is by far the easiest to install and use. I use it for all my webcams and it works perfectly. I don't use the gspca drivers, because I don't have old webcams. |
Good info!! for Microdia. Please explain if U can why I had been told the driver was sn9c105 but was included in sn9c102 but the former is a bridge (what does that mean?) and the latter is a driver pulled down via modprobe. Where does one get a driver like spca5xx/LE?
U say the uvc driver is easy to download and install. Can U elaborate more (what/where) or point me to where that is described? My reading (UR uvc reference) of it made it seem way convoluted, maybe its too much info. Also I noted that it does not support single pictures. Is the uvc driver needed for the guvcview program? It would seem so. I am having a H... of a time trying to download guvcview cuz it always finishes with a low byte count. The action of getting the download (SourceForge) is also questionable as it repeatedly asks for a download, sometimes after I OK the confirmation response. That causes multiple images too, all short. |
probably you are using a slow mirror. You might change to another mirror
|
You can build uvc within the kernel itself. guvcview does require uvc.
|
i have a uvc webcam and mplayer (in current) work for me with this command:
Code:
mplayer tv:// -tv driver=v4l2 :width=352:height=288:device=/dev/video0 |
For Willysr: tried US, Canadian, and direct with much the same result.
Will try again later. The mplayer command cannot have a space after v4l2 but with that removed I got this: Code:
Playing tv://. |
Try using the v4l driver instead of v4l2. You can also try Alien Bob's gspca package:
http://www.slackware.com/~alien/slackbuilds/gspcav1/ |
check your files: go to your /usr/lib/libv4l directory (32 bit) or /usr/lib64/libv4l/ looking for v4l2convert.so (part of v4l-utils package).
add LD_PRELOAD before your mplayer command, example: Code:
LD_PRELOAD=/usr/lib64/libv4l/v4l2convert.so mplayer tv:// -tv driver=v4l2:device=/dev/video0 |
Number 22 tried the command U suggested. Still nothing affirmative. Output follows:
Code:
Playing tv://. H_TeXMeX_H, have tried the v4l before with no better/worse results. I believe the Microdia requires v4l2. I have the following:/usr/src/linux-2.6.37.6/drivers/media/video/gspca /usr/src/linux-2.6.37.6/include/config/usb/gspca /lib/modules/2.6.37.6-smp/kernel/drivers/media/video/gspca /lib/modules/2.6.37.6/kernel/drivers/media/video/gspca I recall downloading them awhile back. Again, recall, but think that what I did to test was to remove the sn9c102 (at least) then mod-probed in the gspca and one other module which escapes me at the moment. Those tests were equally dismal. From version 11.0 and/or 12.0 I had a horrible time until I discovered a way to force a change in device assignments. The BTTV stuff would grab the wrong device and the camera would fail. I cannot find in /proc where the devices are shown and maybe with 13.37 this is unnecessary. I thought I had found it once but cannot find my notes on it. Have I messed up a dependency by not including the TeX in the install 2 yrs ago? I never use it and have not had a problem (that I knew of) by omitting it that I could not resolve that was attributable to it. Is there a way to validate dependency omissions within Slackware? That would be a great little script. Or is there a list of dependencies? When I tried tracking down the Microdia problem last time, my last thinking that there was a problem in the device assignments between it and bttv with video devices 1 & 2 being somehow switched but was not able to confirm it. FWIW |
Quote:
You see, I have the same problem as original poster but I have vlc installed with all codes, not so with mplayer. Edit: I have a microsoft LifeCam3000. Your code works for me, just as it is; though it wasn't intended for me: i thank you anyway. But i will still need a program with which to run it for skype and for taking snaps or for piping the video output to a recipient or to a recording file, no? I mean, as it is, the code you shared will get a basic screen with the cam running, but that is it: no menus, no options etc |
open vlc and select capture media or use vlc in console:
Code:
cvlc v4l2:///dev/video0 |
Quote:
That works! cheers |
@textilis
For taking snaps with your camera, try xsane. That should provide sufficient options and menus :) |
>>Allend.
Thanks. I'll have a play with it. (I hadn't even considered looking at xsane, having associated it in my mind exclusively with scanners and scanning.) Cheers. |
I have discovered that with gimp I should be able to take snapshots with my old sn9c102 driver camera. So I tried that and walla the camera shows up in gimp but I am lost as to how to use the camera from there. I have a symlink to xsane and the drivers for video0/1 appear but that is all I can figure out.
|
>>Waddles, sorry about time lapse; been away.
Could you repost this in a new thread, as I don't think you are going to attract sufficient attention down here :) Cheers and good luck |
All times are GMT -5. The time now is 11:43 AM. |