Hi,
Right, i'm installing a web-cam, it seems to have gone ok, yet none of my python libaries are finding it.
I'm running Fedora 4, with kernel 2.6.17-1.2142_FC4, my output from lsusb is, Bus 002 Device 002: ID 046d:0921 Logitech, Inc. Labtec WebCam.
Okay, down to the nitty gritty.
I made and installed the 'spca50x' (gspcav1-20060925.tar.gz) driver.
Next, I:
# mknod /dev/video0 c 81 0
Then:
# /sbin/modprobe -v gspca
I'd set group permissions etc, then tested with a script for mplayer and mencoder. Everything seems to work ok.
Now down to real business:
First I tried "libfg"
For 'libfg', I run the basic script as follows, but it gives me the following error, any ideas?
Code:
# #!/usr/bin/env python
#
# import fg
# g = fg.Grabber ()
# g.set_source(0)
# g.demo('test01.pgm')
Quote:
$ python test2.py
fg_open(): open video device failed: No such file or directory
fg_set_source(0)
Segmentation fault
|
For 'Pyv4l' i'm using the included script 'tv.py' (pls find yourself, it's included in the install).
But yet again I get an error and i'm not sure why, any ideas?
Quote:
$ python tv.py
Device Name: Labtec Webcam
Type: 1
Channels: 1
Audios: 0
Maximum Width: 352
Maximum Height: 288
Minimum Width: 160
Minimum Height: 120
(0, 'TV8532', 0)
Traceback (most recent call last):
File "tv.py", line 24, in ?
vid.setFrequency(216250)
v4l.V4lError: Error setting frequency.
|
Also i've found 'pyvideograb'. I installed this, then ran the test.py script. Here's my error output:
Quote:
# python test.py
Opening device...
Traceback (most recent call last):
File "test.py", line 21, in ?
pixelformat=v4l2_consts.V4L2_PIX_FMT_GREY
directvideo.DirectVideoError: /dev/video0 is no V4L2 device
|
From this it seems that my device isn't a v4l device. So, i've been back to the v4l site and verified the driver i'm using is on their list, the SPCA50X USB Camera Linux Driver, 'gspcav1-20060925.tar.gz'.
This error could be the way to solving the problems with the other programs. Does anybody have any suggestions to the setup of my device or for checking it?