2 Different webcams don't show images in zm but work in ekig

Support and queries relating to all previous versions of ZoneMinder
Locked
bitviper
Posts: 10
Joined: Mon Aug 27, 2007 10:41 pm

2 Different webcams don't show images in zm but work in ekig

Post by bitviper »

I have an on-board webcam in my laptop that is made by Ricoh. I also have a usb webcam from logitech.

Linux lists them as /dev/video0 and /dev/video1 respectively.

The result of sudo zmu -d /dev/video0 -q -v is:
Video Capabilities
Name: Sony VGP-VCC2 (VAIO SZ) #1
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: 8 - YUYV
Colour Depth: 16
Brightness: 32509
Hue: 32768
Colour :32509
Contrast: 32509
Whiteness: 13107
Channel 0 Attributes
Name: Camera
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 1 - NTSC
The result of sudo zmu -d /dev/video1 -q -v is:
Video Capabilities
Name: Logitech QuickCam Communicate S
Type: 1
Can capture
Video Channels: 1
Audio Channels: 0
Maximum Width: 640
Maximum Height: 480
Minimum Width: 176
Minimum Height: 144
Window Attributes
X Offset: 0
Y Offset: 0
Width: 640
Height: 480
Picture Attributes
Palette: 4 - 24bit RGB
Colour Depth: 24
Brightness: 32768
Hue: 0
Colour :0
Contrast: 32768
Whiteness: 0
Channel 0 Attributes
Name: ZC301-2
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 49048 - Unknown
As I mentioned in the subject. Either camera works fine in Ekiga so I know they are functional.

When I add them to zm and put them in monitor mode, the logitech starts to blnk every 5 seconds or so like it's recording. Unfortunately, when I click on it or the Ricoh camera, the monitor window shows a blank picture (a broken picture icon is in the upper left part of where the picture should be).

I am unable to test in xawtv for either device as I get the following:
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.20-16-generic)
xinerama 0: 1280x800+0+0
xinerama 1: 1680x1050+1280+0
X Error of failed request: XF86DGANoDirectVideoMode
Major opcode of failed request: 137 (XFree86-DGA)
Minor opcode of failed request: 1 (XF86DGAGetVideoLL)
Serial number of failed request: 67
Current serial number in output stream: 67
I get that error whether I use xawtv -device /dev/video1 or video2.

I've done the right color mode in the add-monitor box (rgb24 for logitech and YUYV for the sony as well as 640 x 480 for the frame size). Is there anything else I could have missed?
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

xawtv -nodga /dev/video0

Your nvidia driver messed it up. :) Mine too.
bitviper
Posts: 10
Joined: Mon Aug 27, 2007 10:41 pm

Post by bitviper »

You're right! I can now see video using xawtv with the command line you gave me and the video looks great.

Knowing this, how can I get zm working with it?
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

Yes. Assuming that you did the command just as I said, you should be /dev/video0 channel 0.
bitviper
Posts: 10
Joined: Mon Aug 27, 2007 10:41 pm

Post by bitviper »

I'm sorry, I don't understand...

ZoneMinder already has the the camera installed in it with the settings you mentioned (/dev/video0 and channel 0). Those settings have been there since the beginning. Trouble is, it doesn't work.

I couldn't even get xawtv to show a picture until you gave me the -nodga option. Now I can see a picture with xawtv but I'm still up a creek with zm.
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

Try 320 x 240. Look at the ZM logs and apache error logs.
bitviper
Posts: 10
Joined: Mon Aug 27, 2007 10:41 pm

Post by bitviper »

The lower resolution gave me a picture! Trouble is, the colors are all purple and blue. I've tried different color formats but no dice.

I'll keep playing around and see if I can fix it.
Locked