Logitech QuickCam 4000 pro

Support and queries relating to all previous versions of ZoneMinder
Locked
dwhile
Posts: 16
Joined: Fri Nov 14, 2003 9:40 am

Logitech QuickCam 4000 pro

Post by dwhile »

I am having problems getting ZM to work with this camera.

/var/log gives an error when it tries to set the camera up it seems to be failing on the whiteness parameter - it gives error - invalid parameter.

Anyone any ideas?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: Logitech QuickCam 4000 pro

Post by zoneminder »

Have you tried switching off STRICT_VIDEO_CONFIG in the Options?

Phil,
dwhile
Posts: 16
Joined: Fri Nov 14, 2003 9:40 am

Re: Logitech QuickCam 4000 pro

Post by dwhile »

Yes - I tried that - the daemon continues to run but there are still errors.

Here's what I get with the option on:
Nov 12 19:46:55 unix zmc-d0[8225]: INF [P:15]
Nov 12 19:46:55 unix zmc-d0[8225]: INF [D:24]
Nov 12 19:46:55 unix zmc-d0[8225]: INF [B:36864]
Nov 12 19:46:55 unix zmc-d0[8225]: INF [h:65535]
Nov 12 19:46:55 unix zmc-d0[8225]: INF [Cl:32768]
Nov 12 19:46:55 unix zmc-d0[8225]: INF [Cn:32768]
Nov 12 19:46:55 unix zmc-d0[8225]: ERR [Failed to set picture attributes: Invalid argument]

and the daemon stops.

If I turn that option off I get:

Nov 13 17:58:07 unix zmc-d0[4964]: INF [Debug Level = 0, Debug Log = ]
Nov 13 17:58:07 unix zmc-d0[4964]: INF [Got 1 monitors]
Nov 13 17:58:07 unix zmc-d0[4964]: INF [X:0]
Nov 13 17:58:07 unix zmc-d0[4964]: INF [Y:0]
Nov 13 17:58:07 unix zmc-d0[4964]: INF [W:176]
Nov 13 17:58:07 unix zmc-d0[4964]: INF [H:144]
Nov 13 17:58:07 unix kernel: pwc Video mode SIF@10 fps is only supported with the decompressor module (pwcx).
Nov 13 17:58:07 unix zmc-d0[4964]: INF [P:15]
Nov 13 17:58:07 unix zmc-d0[4964]: INF [D:24]
Nov 13 17:58:07 unix zmc-d0[4964]: INF [B:36864]
Nov 13 17:58:07 unix zmc-d0[4964]: INF [h:65535]
Nov 13 17:58:07 unix zmc-d0[4964]: INF [Cl:32768]
Nov 13 17:58:07 unix zmc-d0[4964]: INF [Cn:32768]
Nov 13 17:58:07 unix zmc-d0[4964]: ERR [Failed to set picture attributes: Invalid argument]
Nov 13 17:58:07 unix zmc-d0[4969]: INF [Debug Level = 0, Debug Log = ]
Nov 13 17:58:07 unix zmc-d0[4969]: INF [Got 1 monitors]
Nov 13 17:58:08 unix zmc-d0[4969]: INF [X:0]
Nov 13 17:58:08 unix zma-m2[4977]: INF [Debug Level = 0, Debug Log = ]
Nov 13 17:58:08 unix zmc-d0[4969]: INF [Y:0]
Nov 13 17:58:08 unix zma-m2[4977]: INF [Got 1 monitors]
Nov 13 17:58:12 unix zmc-d0[4969]: INF [W:176]
Nov 13 17:58:12 unix zma-m2[4977]: INF [monitor mode=2]
Nov 13 17:58:13 unix zmc-d0[4969]: INF [H:144]
Nov 13 17:58:13 unix zma-m2[4977]: INF [shm.size=30413248]
Nov 13 17:58:13 unix zma-m2[4977]: ERR [Can't shmget: Invalid argument]
Nov 13 17:58:13 unix zma-m2[4998]: INF [Debug Level = 0, Debug Log = ]
Nov 13 17:58:13 unix zmc-d0[4969]: INF [P:15]
Nov 13 17:58:13 unix zmc-d0[4969]: INF [D:24]
Nov 13 17:58:13 unix zmc-d0[4969]: INF [B:36864]
Nov 13 17:58:13 unix zmc-d0[4969]: INF [h:65535]
Nov 13 17:58:13 unix zmc-d0[4969]: INF [Cl:32768]
Nov 13 17:58:13 unix zmc-d0[4969]: INF [Cn:32768]
Nov 13 17:58:13 unix kernel: pwc Video mode SIF@10 fps is only supported with the decompressor module (pwcx).
Nov 13 17:58:13 unix zma-m2[4998]: INF [Got 1 monitors]
Nov 13 17:58:13 unix zma-m2[4998]: INF [monitor mode=2]
Nov 13 17:58:13 unix zma-m2[4998]: INF [shm.size=30413248]
Nov 13 17:58:13 unix zma-m2[4998]: ERR [Can't shmget: Invalid argument]
Nov 13 17:58:13 unix zmc-d0[4969]: ERR [Failed to set picture attributes: Invalid argument]
Nov 13 17:58:13 unix kernel: pwc Closing video device: 43 frames received, dumped 40 frames, 0 frames with errors.

Does this help?
User avatar
tech_fixer
Posts: 132
Joined: Tue Jul 29, 2003 3:07 pm

Re: Logitech QuickCam 4000 pro

Post by tech_fixer »

Seems like ZM is not able to access the shared memory segment where it stores the camera images for processing.

Are you using RedHat 9 by any chance?

Regards,
Jose Rodriguez
dwhile
Posts: 16
Joined: Fri Nov 14, 2003 9:40 am

Re: Logitech QuickCam 4000 pro

Post by dwhile »

Certainly am! Is there a solution??
dwhile
Posts: 16
Joined: Fri Nov 14, 2003 9:40 am

Re: Logitech QuickCam 4000 pro

Post by dwhile »

Ok I'm getting further!

I have upped the shared memory limit in the kernel and now it gets further - it initialises the camera but I still get errors:

Nov 14 15:05:43 unix zmc-d0[3368]: INF [Loaded monitor 2(Camera1), 1 zones]
Nov 14 15:05:43 unix zmc-d0[3368]: INF [Starting Capture]
Nov 14 15:05:43 unix zmc-d0[3368]: ERR [Capture failure for frame 0: Invalid arg
ument]
Nov 14 15:05:43 unix zmc-d0[3368]: ERR [Capture failure for frame 0: Invalid arg
ument]
Nov 14 15:05:43 unix zmc-d0[3368]: ERR [Sync failure for frame 0: Invalid argume
nt]
Nov 14 15:05:43 unix zmc-d0[3368]: ERR [Capture failure for frame 0: Invalid arg
ument]
dwhile
Posts: 16
Joined: Fri Nov 14, 2003 9:40 am

Re: Logitech QuickCam 4000 pro

Post by dwhile »

Whey hey!!!

Got it working now!

Need to set the Capture palette as YUV420P to get it to work.

Now I just need to figure out how to get pwcx loaded to get a higher frame rate.
Locked