[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

sn9c102 webcam



Hi all,

I got an old, cheap Qware EasyCam webcam. I have no idea what is the model. In the end it does not metter much. I followed the LDP "The Webcam HOWTO" on http://tldp.org/HOWTO/html_single/Webcam-HOWTO/ Everything looks basically fine up to the point I try to get some information from my webcam. Trying to take a snapshot, I get:

~ % streamer -d -c /dev/video0 -b 16 -o test.jpeg
checking writer files [multiple image files] ...
  video name=ppm ext=ppm: ext mismatch [need jpeg]
  video name=pgm ext=pgm: ext mismatch [need jpeg]
  video name=jpeg ext=jpeg: OK
files / video: JPEG (JFIF) / audio: none
vid-open: trying: v4l2-old...
vid-open: failed: v4l2-old
vid-open: trying: v4l2...
v4l2: open
v4l2: device info:
  sn9c102 1.1.47 / SN9C1xx PC Camera @ usb-0000:00:1d.1-2
vid-open: ok: v4l2
movie_init_writer start
setformat: JPEG (JFIF) (320x240): failed
setformat: 12 bit YUV 4:2:0 (planar) (320x240): failed
setformat: 16 bit YUV 4:2:2 (planar) (320x240): failed
setformat: 24 bit TrueColor (BE: rgb) (320x240): failed
setformat: 24 bit TrueColor (LE: bgr) (320x240): failed
no way to get: 320x240 JPEG (JFIF)
movie writer initialisation failed
v4l2: close
~ %

The funny part is that the kopete devices configuration is showing me some black-green black low quality stream, which made me think that that's a driver issue. I compiled the latest kernel from kernel.org, which had newer version of the driver (1.1.47), but that did not change anything.

The v4l-info output looks fine to me:

### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
	driver                  : "sn9c102"
	card                    : "SN9C1xx PC Camera"
	bus_info                : "usb-0000:00:1d.1-2"
	version                 : 1.1.47
	capabilities            : 0x5000001 [VIDEO_CAPTURE,READWRITE,STREAMING]

standards

inputs
    VIDIOC_ENUMINPUT(0)
	index                   : 0
	name                    : "Camera"
	type                    : CAMERA
	audioset                : 0
	tuner                   : 0
	std                     : 0x0 []
	status                  : 0x0 []

video capture
    VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
	index                   : 0
	type                    : VIDEO_CAPTURE
	flags                   : 0
	description             : "bayer rgb"
	pixelformat             : 0x31384142 [BA81]
    VIDIOC_ENUM_FMT(1,VIDEO_CAPTURE)
	index                   : 1
	type                    : VIDEO_CAPTURE
	flags                   : 1
	description             : "compressed"
	pixelformat             : 0x30313953 [S910]
    VIDIOC_G_FMT(VIDEO_CAPTURE)
	type                    : VIDEO_CAPTURE
	fmt.pix.width           : 320
	fmt.pix.height          : 240
	fmt.pix.pixelformat     : 0x31384142 [BA81]
	fmt.pix.field           : NONE
	fmt.pix.bytesperline    : 320
	fmt.pix.sizeimage       : 76800
	fmt.pix.colorspace      : SRGB
	fmt.pix.priv            : 8

controls
    VIDIOC_QUERYCTRL(PRIVATE_BASE+0)
	id                      : 134217728
	type                    : INTEGER
	name                    : "DAC magnitude"
	minimum                 : 0
	maximum                 : 255
	step                    : 1
	default_value           : 4
	flags                   : 0
    VIDIOC_QUERYCTRL(PRIVATE_BASE+1)
	id                      : 134217729
	type                    : INTEGER
	name                    : "green balance"
	minimum                 : 0
	maximum                 : 15
	step                    : 1
	default_value           : 0
	flags                   : 0


Any idea how to solve the problem is welcome...


	Cheers,
	Ivan



Reply to: