[SOLVED] Logitech QuickCam 3000 for Business problems

Forum for questions and support relating to the 1.24.x releases only.
Locked
gcthompson
Posts: 5
Joined: Wed Jun 30, 2010 9:06 am

[SOLVED] Logitech QuickCam 3000 for Business problems

Post by gcthompson »

Hi,

I've got a Ubuntu 9.10 box running (built from an XBMC live CD) running on a Revo Aspire 3610. I'm running ZoneMinder v1.24.1

Code: Select all

Linux Revo 2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:01:29 UTC 2009 i686 GNU/Linux
I'm running a fresh install of zoneminder (built using apt-get)

I cannot get the QuickCam 3000 for Business working under zoneminder

Code: Select all

root@Revo:~# sudo zmu -d /dev/video0 -q -v 
Error, failed to get channel 0 attributes: Invalid argument
I've set the zmc to debugging (level 6) and have got the following in the log:

Code: Select all

07/02/10 19:04:05.094291 zmc_dvideo0[2419].INF-zm_debug.c/292 [New Debug Level = 6, New Debug Log = /tmp/zm_debug.log]
07/02/10 19:04:05.094807 zmc_dvideo0[2419].DB1-zm_monitor.cpp/1708 [Got 1 monitors]
07/02/10 19:04:05.094996 zmc_dvideo0[2419].DB2-zm_local_camera.cpp/287 [V4L2 support enabled, using V4L2 api]
07/02/10 19:04:05.098389 zmc_dvideo0[2419].DB1-zm_monitor.cpp/338 [monitor purpose=1]
07/02/10 19:04:05.098485 zmc_dvideo0[2419].DB1-zm_monitor.cpp/345 [mem.size=36865192]
07/02/10 19:04:05.147919 zmc_dvideo0[2419].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 640x480 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0]
07/02/10 19:04:05.184483 zmc_dvideo0[2419].DB1-zm_monitor.cpp/458 [Monitor Lounge has function 2]
07/02/10 19:04:05.184571 zmc_dvideo0[2419].DB1-zm_monitor.cpp/459 [Monitor Lounge LBF = '%N - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
07/02/10 19:04:05.184615 zmc_dvideo0[2419].DB1-zm_monitor.cpp/460 [Monitor Lounge IBC = 40, WUC = 25, pEC = 10, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
07/02/10 19:04:05.185051 zmc_dvideo0[2419].DB1-zm_zone.cpp/889 [Got 1 zones for monitor Lounge]
07/02/10 19:04:05.185116 zmc_dvideo0[2419].DB5-zm_zone.cpp/918 [Parsing polygon 0,0 639,0 639,479 0,479]
07/02/10 19:04:05.185160 zmc_dvideo0[2419].DB3-zm_zone.cpp/758 [Parsing polygon string '0,0 639,0 639,479 0,479']
07/02/10 19:04:05.185205 zmc_dvideo0[2419].DB3-zm_zone.cpp/796 [Got coordinate 0,0 from polygon string]
07/02/10 19:04:05.185249 zmc_dvideo0[2419].DB3-zm_zone.cpp/796 [Got coordinate 639,0 from polygon string]
07/02/10 19:04:05.185291 zmc_dvideo0[2419].DB3-zm_zone.cpp/796 [Got coordinate 639,479 from polygon string]
07/02/10 19:04:05.185334 zmc_dvideo0[2419].DB3-zm_zone.cpp/796 [Got coordinate 0,479 from polygon string]
07/02/10 19:04:05.185386 zmc_dvideo0[2419].DB3-zm_zone.cpp/816 [Successfully parsed polygon string]
07/02/10 19:04:05.185434 zmc_dvideo0[2419].DB1-zm_zone.cpp/50 [Initialised zone 1/All - 1 - 640x480 - Rgb:ff0000, CM:3, MnAT:25, MxAT:0, MnAP:9216, MxAP:230400, FB:3x3, MnFP:9216, MxFP:230400, MnBS:6144, MxBS:0, MnB:1, MxB:0, OF: 0]
07/02/10 19:04:05.221957 zmc_dvideo0[2419].DB1-zm_monitor.cpp/1810 [Loaded monitor 1(Lounge), 1 zones]
07/02/10 19:04:05.222045 zmc_dvideo0[2419].INF-zmc.cpp/186 [Starting Capture]
07/02/10 19:04:05.222251 zmc_dvideo0[2419].DB3-zm_local_camera.cpp/350 [Opening video device /dev/video0]
07/02/10 19:04:05.222374 zmc_dvideo0[2419].DB2-zm_local_camera.cpp/356 [V4L2 support enabled, using V4L2 api]
07/02/10 19:04:05.222419 zmc_dvideo0[2419].DB3-zm_local_camera.cpp/361 [Checking video device capabilities]
07/02/10 19:04:05.222483 zmc_dvideo0[2419].DB3-zm_local_camera.cpp/371 [Setting up video format]
07/02/10 19:04:05.222563 zmc_dvideo0[2419].FAT-zm_local_camera.cpp/387 [Failed to set video format: Invalid argument]
07/02/10 19:04:05.222802 zmc_dvideo0[2419].INF-zm_signal.cpp/64 [Got signal 6 (Aborted), exiting and forcing backtrace]
~
My /dev/video0 is read-able by the the www-data user (under which apache2/zoneminder run)

Code: Select all

root@Revo:~# ls -l /dev/video0 
crw-rw---- 1 root video 81, 0 2010-07-02 18:49 /dev/video0
root@Revo:~# id www-data
uid=33(www-data) gid=33(www-data) groups=33(www-data),44(video)
root@Revo:~# 
The output of lsusb

Code: Select all

root@Revo:~# lsusb
Bus 001 Device 002: ID 046d:09a5 Logitech, Inc. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 045e:0284 Microsoft Corp. Xbox DVD Playback Kit
Bus 002 Device 002: ID 04f2:0402 Chicony Electronics Co., Ltd 
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
I have set my shared memory according to values in the wiki

Code: Select all

kernel.shmmax = 167772160
kernel.shmall = 134217728

Code: Select all

root@Revo:~# ipcs -l

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 163840
max total shared memory (kbytes) = 536870912
min seg size (bytes) = 1

------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 32
semaphore max value = 32767

------ Messages: Limits --------
max queues system wide = 1718
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384
Any ideas please? I've spent ages trying to get this working and have even bought a new web-cam (which I thought would work)

If I use ffmpeg

Code: Select all

ffmpeg -f video4linux2 -s 640x480 -r 30000/1001 -i /dev/video0 -y webcam.avi
I can get a video output correctly to webcam.avi so the camera does work and the drivers seem sound.

EDIT

I've upgrade the lib4v drivers using the post here:

http://www.linwik.com/wiki/installing+t ... buntu+9.10

I can now run the zmu command

Code: Select all

root@Revo:~# zmu -d /dev/video0 -q -v
Video Capabilities
  Name: UVC Camera (046d:09a5)
  Type: 1
    Can capture
  Video Channels: 1
  Audio Channels: 0
  Maximum Width: 640
  Maximum Height: 480
  Minimum Width: 48
  Minimum Height: 32
Window Attributes
  X Offset: 0
  Y Offset: 0
  Width: 640
  Height: 480
Picture Attributes
  Palette: 0 - Unknown
  Colour Depth: 0
  Brightness: 32896
  Hue: 0
  Colour :8224
  Contrast: 8224
  Whiteness: 0
Channel 0 Attributes
  Name: Camera 1
  Channel: 0
  Flags: 0
  Type: 2 - Camera
  Format: 0 - PAL
root@Revo:~# 
I still have the same error in my log file however

Code: Select all

07/02/10 20:50:25.118840 zmc_dvideo0[2530].DB3-zm_zone.cpp/816 [Successfully parsed polygon string]
07/02/10 20:50:25.118890 zmc_dvideo0[2530].DB1-zm_zone.cpp/50 [Initialised zone 1/All - 1 - 640x480 - Rgb:ff0000, CM:3, MnAT:25, MxAT:0, MnAP:9216, MxAP:230400, FB:3x3, MnFP:9216, MxFP:230400, MnBS:6144, MxBS:0, MnB:1, MxB:0, OF: 0]
07/02/10 20:50:25.155455 zmc_dvideo0[2530].DB1-zm_monitor.cpp/1810 [Loaded monitor 1(Lounge), 1 zones]
07/02/10 20:50:25.155557 zmc_dvideo0[2530].INF-zmc.cpp/186 [Starting Capture]
07/02/10 20:50:25.155755 zmc_dvideo0[2530].DB3-zm_local_camera.cpp/350 [Opening video device /dev/video0]
07/02/10 20:50:25.155872 zmc_dvideo0[2530].DB2-zm_local_camera.cpp/356 [V4L2 support enabled, using V4L2 api]
07/02/10 20:50:25.155916 zmc_dvideo0[2530].DB3-zm_local_camera.cpp/361 [Checking video device capabilities]
07/02/10 20:50:25.155979 zmc_dvideo0[2530].DB3-zm_local_camera.cpp/371 [Setting up video format]
07/02/10 20:50:25.156057 zmc_dvideo0[2530].FAT-zm_local_camera.cpp/387 [Failed to set video format: Invalid argument]
07/02/10 20:50:25.156281 zmc_dvideo0[2530].INF-zm_signal.cpp/64 [Got signal 6 (Aborted), exiting and forcing backtrace]
Last edited by gcthompson on Fri Jul 02, 2010 9:11 pm, edited 1 time in total.
gcthompson
Posts: 5
Joined: Wed Jun 30, 2010 9:06 am

Post by gcthompson »

I think I fixed the problem.

Stumbled across a post which said that some logitechs only support YUYV. I set my camera to this and it worked.

Can the software not pick this stuff up? It's a horror to configure :-)
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Post by bb99 »

And they can be! So we all have to get ingenious. Sometimes getting a camera to work in the browser, vlc, or whatever and right clicking for properties helps but not always, that's why allot post their successes under the hardware compatibility list, so someone else doesn't have to battle the way you had to. I guess I'm asking you to start a thread in that category starting with the words "solved", camera type and anything else you feel necessary. Thanks for posting your results!
Locked