Logitech Webcam C300

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
Post Reply
zoner
Posts: 6
Joined: Wed Dec 16, 2009 12:57 pm

Logitech Webcam C300

Post by zoner »

I have installed Zoneminder 1.24.1 on Ubuntu 9.10. I can't get Logitech Webcam C300 (it is UVC-camera) to work with it. Has anybody else gotten this camera to work?
zoner
Posts: 6
Joined: Wed Dec 16, 2009 12:57 pm

Post by zoner »

The camera works fine with xawtv. It also works with ffmpeg when launched from CLI, but source in ZM-console keeps showing red.

In /etc/sysctl.conf I have set kernel.shmmax=1073741824.

/tmp/zmdc.log says:

12/17/09 14:27:08.213739 zmdc[3234].INF [Server starting at 09/12/17 14:27:08]
12/17/09 14:27:11.524799 zmdc[3234].INF ['zmc -d /dev/video0' starting at 09/12/17 14:27:11, pid = 3256]
12/17/09 14:27:11.567802 zmdc[3234].INF ['zmc -d /dev/video0' crashed, signal 6]
12/17/09 14:27:11.568129 zmdc[3234].INF [Starting pending process, zmc -d /dev/video0]
12/17/09 14:27:11.572865 zmdc[3234].INF ['zmc -d /dev/video0' starting at 09/12/17 14:27:11, pid = 3258]
12/17/09 14:27:11.596913 zmdc[3234].INF ['zmc -d /dev/video0' crashed, signal 6]
12/17/09 14:27:11.766272 zmdc[3234].INF ['zmfilter.pl' starting at 09/12/17 14:27:11, pid = 3259]
12/17/09 14:27:11.983522 zmdc[3234].INF ['zmaudit.pl -c' starting at 09/12/17 14:27:11, pid = 3261]
12/17/09 14:27:12.279904 zmdc[3234].INF ['zmwatch.pl' starting at 09/12/17 14:27:12, pid = 3263]
12/17/09 14:27:16.086443 zmdc[3234].INF [Starting pending process, zmc -d /dev/video0]
12/17/09 14:27:16.100021 zmdc[3234].INF ['zmc -d /dev/video0' starting at 09/12/17 14:27:16, pid = 3277]
12/17/09 14:27:16.110022 zmdc[3234].INF ['zmc -d /dev/video0' crashed, signal 6]
12/17/09 14:27:26.044309 zmdc[3234].INF [Starting pending process, zmc -d /dev/video0]
12/17/09 14:27:26.047221 zmdc[3234].INF ['zmc -d /dev/video0' starting at 09/12/17 14:27:26, pid = 3279]
12/17/09 14:27:26.085570 zmdc[3234].INF ['zmc -d /dev/video0' crashed, signal 6]
12/17/09 14:27:46.087771 zmdc[3234].INF [Starting pending process, zmc -d /dev/video0]
12/17/09 14:27:46.090700 zmdc[3234].INF ['zmc -d /dev/video0' starting at 09/12/17 14:27:46, pid = 3283]
12/17/09 14:27:46.129993 zmdc[3234].INF ['zmc -d /dev/video0' crashed, signal 6]
12/17/09 14:27:58.796383 zmdc[3234].INF ['zmaudit.pl -c' stopping at 09/12/17 14:27:58]
12/17/09 14:27:58.799591 zmdc[3234].INF ['zmaudit.pl -c' exited, signal 14]
12/17/09 14:27:58.799841 zmdc[3234].INF ['zmwatch.pl ' stopping at 09/12/17 14:27:58]
12/17/09 14:27:58.802851 zmdc[3234].INF ['zmwatch.pl ' exited, signal 14]
12/17/09 14:27:58.803204 zmdc[3234].INF ['zmfilter.pl ' stopping at 09/12/17 14:27:58]
12/17/09 14:27:58.807612 zmdc[3234].INF ['zmfilter.pl ' exited, signal 14]

$ sudo zmu -d /dev/video0 -q -v gives:
Error, failed to get channel 0 attributes: Invalid argument
zoner
Posts: 6
Joined: Wed Dec 16, 2009 12:57 pm

Post by zoner »

I don't know what happened, but when I tried every option from "Source" -> "Colour Palette" and when it was set to YUYV - camera now works.

Odd thing is, that it was previously already set to YUYV, but it didn't work then... but after I changed it MANY times back and forth.

And still "sudo zmu -d /dev/video0 -q -v" gives me: "Error, failed to get channel 0 attributes: Invalid argument"

???

But somehow it now works...
zoner
Posts: 6
Joined: Wed Dec 16, 2009 12:57 pm

Post by zoner »

The camera works now with 640x480 resolution, but I can't get it work any higher levels.

Have I calculated following right?

Total physical memory = 3GB

3000 x 1024 x 1024 / 4096 = 768000
-----------------------------------
kernel.shmall = 768000

1 x 800x600 resolution camera, 40 frames buffer, YUYV palette (YUYV = YUY2, 16 bit?)

800 x 600 x 16 x 40 = 307200000 + 10% = 337920000
337920000 / 8 = 42240000
------------------------
kernel.shmmax = 42240000

Is this "kernel.shmall < kernel.shmmax" correct?

So - I have bigger kernel.shmmax value than 42240000, but camera won't work with anything higher than 640x480.
Last edited by zoner on Fri Dec 18, 2009 5:32 pm, edited 1 time in total.
zoner
Posts: 6
Joined: Wed Dec 16, 2009 12:57 pm

Post by zoner »

I'm sorry for being total noob. The camera now works at it's full resolution 1280x1024.
skier
Posts: 29
Joined: Thu Dec 10, 2009 11:54 am

Post by skier »

...and did you figure out which of the things you did fixed the problem, and what the problem actually was?
Post Reply