Logitech Quickcam cool using spca5xx-le driver
Question
My motion is running in a Asus router with
OpenWrt whiterussian 0.9 firmware. I want to connect Logitech Quickcam cool using spca5xx-le driver. (The original spca5xx driver do not support this cam, I need to modify the spca5xx driver). The cam work with spcaserv & spcaview (the driver's companion tools) but fail with motion. It seems motion cannot find a usable palette. Is this problem of motion or the spca5xx driver ? Many thanks!
// motion output:
OpenWrt:~$ motion -c /opt/etc/motion.conf
[0] Processing thread 0 - config file /opt/etc/motion.conf
[0] Processing config file /opt/etc/thread1.conf
[0] Thread is from /opt/etc/thread1.conf
[1] Thread started
[0] motion-httpd/3.2.6 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 3337
[1] Failed with YUV420P, trying YUV422 palette: Invalid argument
[1] Failed with YUV422, trying RGB24 palette: Invalid argument
[1] Failed with RGB24, trying GREYSCALE palette: Invalid argument
[1] Failed with all supported palettes - giving up: Invalid argument
[1] Capture error calling vid_start
[1] Thread finishing...
//spcaserv output:
OpenWrt:~$ spcaserv -d /dev/video0 -f jpg -s 320x240
size width: 320 height: 240
Spcaview version: 1.1.8 date: 25:12:2007 (C) mxhaard@magic.fr
video /dev/video0
Camera found: Logitech QuickCam Easy_Cool
VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=8 palette=21
Bridge found: ZC301-2
wrong spca5xx device
StreamId: 0 Camera
try palette 21 depth 8
Available palette 21
try palette 15 depth 12
Couldnt set palette first try 15
Damned second try fail
try palette 4 depth 24
Couldnt set palette first try 4
Damned second try fail
try palette 3 depth 16
Couldnt set palette first try 3
Damned second try fail
try palette 5 depth 32
Couldnt set palette first try 5
Damned second try fail
probe size in
Available Resolutions width 640 heigth 480
Available Resolutions width 384 heigth 288
Available Resolutions width 352 heigth 288
Available Resolutions width 320 heigth 240
Available Resolutions width 192 heigth 144
Available Resolutions width 176 heigth 144
Format asked 21 check 8
VIDIOCSPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=8 palette=21
VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=8 palette=21
grabbing method default MMAP asked
VIDIOCGMBUF size 614416 frames 2 offets[0]=0 offsets[1]=307208
Waiting .... for connection. CTrl_c to stop !!!!
Got connection from 192.168.1.182
VIDIOCSPICT brightnes=33280 hue=0 color=0 contrast=32768 whiteness=0depth=8 palette=21
VIDIOCSPICT brightnes=33280 hue=0 color=0 contrast=33280 whiteness=0depth=8 palette=21
VIDIOCSPICT brightnes=32768 hue=0 color=0 contrast=33280 whiteness=0depth=8 palette=21
VIDIOCSPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=8 palette=21
Environment
Motion version: |
3.2.6 |
ffmpeg version: |
|
Libraries: |
ffmpeg, mysql |
Server OS: |
|
--
WilsonWong - 12 Mar 2008
Answer
Please upgrade to at least to 3.2.9 , but probably the problem is related to your driver.
--
AngelCarpintero - 16 Mar 2008
Thanks for your prompt reply. I had tried cross compile motion 3.2.9 under
OpenWrt buildroot, but not yet success.
For the problem, I had tried another webcam, Creative NX pro. When use the same spca5xx-le driver, it has the same problem. When use the full version spca5xx driver, it work with motion. The spca5xx driver use another palette other than 21 that the spca5xx-le
photography for sale use.
Aren't motion support palette 21 ? (I am sorry that, I don't quite understand the palette here !)
For the Logitech cam, I can make it work in another way. I use spcacat to save a jpg file every 0.5s, then motion use "netcam_url http://127.0.0.1/tmp/SpcaPict.jpg" as source. Is there any smarter way to make it work ?
According to
http://mxhaard.free.fr/spca5xx.html :
Logitech QuickCam Cool 0x046d 0x08ac Jpeg spca5xx/LE gspca v4l1/v4l2
So you need mjpeg support , take a look to ./configure output :
mjpeg Support: Yes
--
AngelCarpintero - 30 Mar 2008