Logitech Webcam Troubles

Forum for questions and support relating to the 1.24.x releases only.
Locked
gte975p
Posts: 5
Joined: Tue Nov 15, 2011 3:23 am

Logitech Webcam Troubles

Post by gte975p »

I can't seem to get the correct monitor configuration for a Logitech QuickCam Communicate MP/S5500. I have another IP camera that is working great. However, every configuration I try, I get red text in the source column and a blank screen when I try to monitor the webcam. The Webcam works with Cheese on my Ubuntu 10.04 LTS Desktop configuration on my laptop.

Monitor Configuration I have tried with typical results:
Device path: /dev/video0
capture method: video for linux version 2
device channel: 0
device format: NTSC
color palette: RGB24

Here is some (hopefully) useful information:
OS: Ubuntu Server 10.04 LTS
ZM: v1.24.2
Output from lsusb: Bus 002 Device 004: ID 046d:09a1 Logitech, Inc. QuickCam Communicate MP/S5500
Some output from zmdc.log:
11/14/11 21:30:41.099093 zmdc[1105].INF [Starting pending process, zmc -d /dev/video0]
11/14/11 21:30:41.101401 zmdc[1105].INF ['zmc -d /dev/video0' starting at 11/11/14 21:30:41, pid = 10667]
11/14/11 21:30:41.215403 zmdc[1105].ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]
Some output from syslog:
Nov 14 21:39:48 stay-server zmdc[1105]: INF [Starting pending process, zmc -d /dev/video0]
Nov 14 21:39:48 stay-server zmdc[1105]: INF ['zmc -d /dev/video0' starting at 11/11/14 21:39:48, pid = 10760]
Nov 14 21:39:48 stay-server zmdc[10760]: INF ['zmc -d /dev/video0' started at 11/11/14 21:39:48]
Nov 14 21:39:48 stay-server zmc_dvideo0[10760]: INF [Debug Level = 0, Debug Log = <none>]
Nov 14 21:39:48 stay-server zmc_dvideo0[10760]: INF [Starting Capture]
Nov 14 21:39:48 stay-server zmc_dvideo0[10760]: FAT [Failed to set video format: Invalid argument]
Nov 14 21:39:48 stay-server zmc_dvideo0[10760]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
Nov 14 21:39:48 stay-server zmc_dvideo0[10760]: ERR [Signal address is (nil), from 0x86a422]
Nov 14 21:39:48 stay-server zmc_dvideo0[10760]: ERR [Backtrace: [0x86a422]]
Nov 14 21:39:48 stay-server zmc_dvideo0[10760]: ERR [Backtrace: [0x86a422]]
Nov 14 21:39:48 stay-server zmc_dvideo0[10760]: ERR [Backtrace: /lib/tls/i686/cmov/libc.so.6(gsignal+0x51) [0x94a651]]
Nov 14 21:39:48 stay-server zmc_dvideo0[10760]: ERR [Backtrace: /lib/tls/i686/cmov/libc.so.6(abort+0x182) [0x94da82]]
Nov 14 21:39:48 stay-server zmc_dvideo0[10760]: ERR [Backtrace: /usr/local/bin/zmc() [0x805649c]]
Nov 14 21:39:48 stay-server zmc_dvideo0[10760]: ERR [Backtrace: /usr/local/bin/zmc() [0x8069f8f]]
Nov 14 21:39:48 stay-server zmc_dvideo0[10760]: ERR [Backtrace: /usr/local/bin/zmc() [0x806ac94]]
Nov 14 21:39:48 stay-server zmc_dvideo0[10760]: ERR [Backtrace: /usr/local/bin/zmc() [0x804d0aa]]
Nov 14 21:39:48 stay-server zmc_dvideo0[10760]: ERR [Backtrace: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x936bd6]]
Nov 14 21:39:48 stay-server zmc_dvideo0[10760]: ERR [Backtrace: /usr/local/bin/zmc() [0x804cc31]]
Nov 14 21:39:48 stay-server zmc_dvideo0[10760]: INF [Backtrace complete, please execute the following command for more information]
Nov 14 21:39:48 stay-server zmc_dvideo0[10760]: INF [addr2line -e /usr/local/bin/zmc() 0x86a422 0x86a422 0x94a651 0x94da82 0x805649c 0x8069f8f 0x806ac94 0x804d0aa 0x936bd6 0x804cc31]
Nov 14 21:39:48 stay-server zmdc[1105]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]

It may also be noteworthy some output from zmu:
$ zmu -d /dev/video0 -q
Error, username and password or auth string must be supplied

Any help/guidance would be greatly appreciated!!
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: Logitech Webcam Troubles

Post by mastertheknife »

Nov 14 21:39:48 stay-server zmc_dvideo0[10760]: FAT [Failed to set video format: Invalid argument]
The capture palette you are trying to use is unsupported by the device. Try YUYV instead.
$ zmu -d /dev/video0 -q
Error, username and password or auth string must be supplied
You have authentication enabled and you need to supply a user & password, like this:

Code: Select all

zmu -d /dev/video0 -q -v -Uadmin -Ppassword
mastertheknife
Kfir Itzhak.
gte975p
Posts: 5
Joined: Tue Nov 15, 2011 3:23 am

Re: Logitech Webcam Troubles

Post by gte975p »

Thanks mastertheknife for your help!
mastertheknife wrote: The capture palette you are trying to use is unsupported by the device. Try YUYV instead.
mastertheknife
I changed the palette to YUYV. Unfortunately this did not fix the problem. When I try to monitor the webcam via zoneminder, it looks like it attempts to capture and image (image is half black on top, half green on bottom). A time stamp is located in the upper left of the image, like you'd expect, however, the time stamp does not advance like in my other camera in real time. If I close the monitor and reopen it, the time stamp is updated, but still no streaming image.
mastertheknife wrote: You have authentication enabled and you need to supply a user & password.
mastertheknife
I didn't know this script required the same crendentials as the ZM login page. I disabled authentication and now get this:

Code: Select all

$ zmu -d /dev/video0 -q
error22
Some new output from zmdc.log:
11/15/11 22:36:48.054921 zmdc[12526].INF [Starting pending process, zmc -d /dev/video0]
11/15/11 22:36:48.057308 zmdc[12526].INF ['zmc -d /dev/video0' starting at 11/11/15 22:36:48, pid = 12575]
11/15/11 22:36:48.931403 zmdc[12526].ERR ['zmc -d /dev/video0' exited abnormally, exit status 11]

Some new output from syslog:
Nov 15 22:39:44 stay-server zmdc[12526]: INF ['zmc -d /dev/video0' starting at 11/11/15 22:39:44, pid = 12625]
Nov 15 22:39:44 stay-server zmwatch[12559]: INF ['zmc -d /dev/video0' starting at 11/11/15 22:39:44, pid = 12625]
Nov 15 22:39:44 stay-server zmdc[12625]: INF ['zmc -d /dev/video0' started at 11/11/15 22:39:44]
Nov 15 22:39:44 stay-server zmc_dvideo0[12625]: INF [Debug Level = 0, Debug Log = <none>]
Nov 15 22:39:44 stay-server zmc_dvideo0[12625]: INF [Starting Capture]
Nov 15 22:39:44 stay-server zmc_dvideo0[12625]: WAR [Hue control is not suppported]
Nov 15 22:39:45 stay-server zmc_dvideo0[12625]: INF [Got signal 11 (Segmentation fault), crashing]
Nov 15 22:39:45 stay-server zmc_dvideo0[12625]: ERR [Signal address is 0xb686b000, from 0x48f2a8]
Nov 15 22:39:45 stay-server zmc_dvideo0[12625]: ERR [Backtrace: /usr/lib/i686/cmov/libswscale.so.0(+0x2b2a8) [0x48f2a8]]
Nov 15 22:39:45 stay-server zmc_dvideo0[12625]: ERR [Backtrace: /usr/lib/i686/cmov/libswscale.so.0(+0x2b2a8) [0x48f2a8]]
Nov 15 22:39:45 stay-server zmc_dvideo0[12625]: INF [Backtrace complete, please execute the following command for more information]
Nov 15 22:39:45 stay-server zmc_dvideo0[12625]: INF [addr2line -e /usr/lib/i686/cmov/libswscale.so.0(+0x2b2a8) 0x48f2a8 0x48f2a8]
Nov 15 22:39:45 stay-server zmdc[12526]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 11]


Maybe something to do with "error22" or "exit status 11" from zmc??
gte975p
Posts: 5
Joined: Tue Nov 15, 2011 3:23 am

Re: Logitech Webcam Troubles

Post by gte975p »

Getting a little closer. Still could you some guidance!

I change the resolution to 320x240. (Still NTSC and YUYV). I can monitor the video now, but it is "corrupted". The time stamp now updates, but no real image (see attached screenshot).

Updated output from syslog:
Nov 16 20:19:02 stay-server zmdc[1056]: INF ['zmc -d /dev/video0' starting at 11/11/16 20:19:02, pid = 1084]
Nov 16 20:19:02 stay-server zmdc[1084]: INF ['zmc -d /dev/video0' started at 11/11/16 20:19:02]
Nov 16 20:19:03 stay-server zmc_dvideo0[1084]: INF [Debug Level = 0, Debug Log = <none>]
Nov 16 20:19:03 stay-server zmc_dvideo0[1084]: INF [Starting Capture]
Nov 16 20:19:03 stay-server zmc_dvideo0[1084]: WAR [Hue control is not suppported]
Nov 16 20:21:08 stay-server zmc_dvideo0[1084]: INF [Monitor-11: 1000 - Capturing at 8.00 fps]
Nov 16 20:23:13 stay-server zmc_dvideo0[1084]: INF [Monitor-11: 2000 - Capturing at 8.00 fps]
Nov 16 20:25:18 stay-server zmc_dvideo0[1084]: INF [Monitor-11: 3000 - Capturing at 8.00 fps]

Nothing of note in any of the ZM logs.

Still same output from zmu

Code: Select all

$zmu -d /dev/video0 -q
error22
Any advice?!
Attachments
Screenshot.png
Screenshot.png (228.75 KiB) Viewed 4903 times
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: Logitech Webcam Troubles

Post by mastertheknife »

Try PAL and YUYV instead of NTSC Most modern USB cameras require V4L2 to be in PAL mode.

mastertheknife
Kfir Itzhak.
gte975p
Posts: 5
Joined: Tue Nov 15, 2011 3:23 am

Re: Logitech Webcam Troubles

Post by gte975p »

I've tried all combinations of device formats and capture palettes. If capture palette is not on YUYV, syslog and ZM toss errors. If capture palette is on YUYV (regardless of device formats), I get the same result as before: a streaming image with time stamp updates, but the images is corrupted (see above image). Could this be a driver issue? What does error22 mean when I try to query the device with zmu? Again, this cam works in cheese on another ubuntu machine running 10.04 desktop. This may now be a hardware issue instead of a ZM 1.24.x issue. Please advise.

Some technical info . . .

Still getting "error22" from zmu.

All output from syslog once started:
Nov 17 19:08:57 stay-server zmpkg[3621]: INF [Command: start]
Nov 17 19:08:57 stay-server zmfix[3627]: ERR [Can't stat user=admin&pwd=: No such file or directory]
Nov 17 19:08:57 stay-server zmfix[3627]: ERR [Can't stat : No such file or directory]
Nov 17 19:08:57 stay-server zmdc[3629]: INF [Server starting at 11/11/17 19:08:57]
Nov 17 19:09:01 stay-server zmdc[3629]: INF ['zmc -d /dev/video0' starting at 11/11/17 19:09:01, pid = 3651]
Nov 17 19:09:01 stay-server zmdc[3651]: INF ['zmc -d /dev/video0' started at 11/11/17 19:09:01]
Nov 17 19:09:01 stay-server zmc_dvideo0[3651]: INF [Debug Level = 0, Debug Log = <none>]
Nov 17 19:09:01 stay-server zmc_dvideo0[3651]: INF [Starting Capture]
Nov 17 19:09:01 stay-server zmc_dvideo0[3651]: WAR [Hue control is not suppported]
Nov 17 19:09:01 stay-server zmdc[3629]: INF ['zmfilter.pl' starting at 11/11/17 19:09:01, pid = 3653]
Nov 17 19:09:01 stay-server zmdc[3653]: INF ['zmfilter.pl' started at 11/11/17 19:09:01]
Nov 17 19:09:02 stay-server CRON[3656]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm)
Nov 17 19:09:02 stay-server zmdc[3629]: INF ['zmaudit.pl -c' starting at 11/11/17 19:09:02, pid = 3657]
Nov 17 19:09:02 stay-server zmdc[3657]: INF ['zmaudit.pl -c' started at 11/11/17 19:09:02]
Nov 17 19:09:02 stay-server zmdc[3629]: INF ['zmwatch.pl' starting at 11/11/17 19:09:02, pid = 3664]
Nov 17 19:09:02 stay-server zmdc[3664]: INF ['zmwatch.pl' started at 11/11/17 19:09:02]
Nov 17 19:09:03 stay-server zmfilter[3653]: INF [Scanning for events]
Nov 17 19:09:03 stay-server zmwatch[3664]: INF [Watchdog starting]
Nov 17 19:09:03 stay-server zmwatch[3664]: INF [Watchdog pausing for 30 seconds]
Nov 17 19:09:03 stay-server zmdc[3629]: INF ['zmupdate.pl -c' starting at 11/11/17 19:09:03, pid = 3666]
Nov 17 19:09:03 stay-server zmdc[3666]: INF ['zmupdate.pl -c' started at 11/11/17 19:09:03]


All output from ZM logs:
11/17/11 19:08:57.906410 zmdc[3629].INF [Server starting at 11/11/17 19:08:57]
11/17/11 19:09:01.194334 zmdc[3629].INF ['zmc -d /dev/video0' starting at 11/11/17 19:09:01, pid = 3651]
11/17/11 19:09:01.555840 zmdc[3629].INF ['zmfilter.pl' starting at 11/11/17 19:09:01, pid = 3653]
11/17/11 19:09:02.126892 zmdc[3629].INF ['zmaudit.pl -c' starting at 11/11/17 19:09:02, pid = 3657]
11/17/11 19:09:02.880213 zmdc[3629].INF ['zmwatch.pl' starting at 11/11/17 19:09:02, pid = 3664]
11/17/11 19:09:03.656701 zmdc[3629].INF ['zmupdate.pl -c' starting at 11/11/17 19:09:03, pid = 3666]
cat: zmdc.sock: No such device or address
11/17/11 19:09:03.301703 zmfilter[3653].INF [Scanning for events]
11/17/11 19:08:57.269896 zmpkg[3621].INF [Command: start]
11/17/11 19:09:03.638472 zmwatch[3664].INF [Watchdog starting]
11/17/11 19:09:03.645009 zmwatch[3664].INF [Watchdog pausing for 30 seconds]
gte975p
Posts: 5
Joined: Tue Nov 15, 2011 3:23 am

Re: Logitech Webcam Troubles

Post by gte975p »

Unfortunately spam doesn't solve my problem . . .
kadded
Posts: 3
Joined: Sun Nov 13, 2011 10:42 am

Re: Logitech Webcam Troubles

Post by kadded »

Just to mention that I have the same issue.

I use a logitech HD c270, which refuses to even stream anything. Probably another issue, but it does not work clearly.

My other cam does 'work' in much the same way as the picture above. It's a logitech c300. Tried any config as user above, to no avail. Even tried to set capture width/height to 80/60.

I'm on ubuntu 10.04 LTS and zm 1.24.

Ideas more then welcome...
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Re: Logitech Webcam Troubles

Post by bb99 »

Might help? Have a look: http://www.youtube.com/watch?v=l-nIUgB35OQ

Shows how to use UVCStreamer to interface with ZM
Locked