Hi all,
I have installed ZoneMinder on xubuntu Gutsy, it has a zoneminder package 1.22.3-7 . My problem is with my USB Quickcam Pro 4000 webcam - after
a lot of tinkering I still cant get it to display an image in ZoneMinder.
I checked compatibility, the camera works under ekiga - but I dont know what that app uses under the hood so I looked up
linuxquestions.org HCL and it says the the 4000 works great with v4l
Next I checked modules ...
dave@dave-desktop:~$ lsmod | grep pwc
pwc 86272 0
compat_ioctl32 2304 1 pwc
videodev 29312 1 pwc
usbcore 137864 9 snd_usb_audio,snd_usb_lib,usblp,pwc,usb_storage,libusual,ehci_hcd,uhci_hcd
dave@dave-desktop:~$
so pwc is loaded ... ok so far ...................................................................
dave@dave-desktop:~$ xawtv -hwscan
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.22-9-generic)
looking for available devices
port 325-325
type : Xvideo, image scaler
name : NV17 Video Texture
port 326-357
type : Xvideo, image scaler
name : NV05 Video Blitter
/dev/video0: OK [ -device /dev/video0 ]
type : v4l2
name : Logitech QuickCam Pro 4000
flags: capture
dave@dave-desktop:~$
Looks like its on /dev/video0 ......................................................................
dave@dave-desktop:~$ xawtv -c /dev/video0
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.22-9-generic)
xinerama 0: 1440x900+0+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
dave@dave-desktop:~$
Googleing I found that -nodga might be the answer ......................................
xawtv -nodga -c /dev/video
a window flashes on the screen, followed by xfce completely resetting itself opps !
OK so getting the info from xawtv ..........................................................
dave@dave-desktop:~$ zmu -d /dev/video0 -q -v
Aborted (core dumped)
dave@dave-desktop:~$ sudo zmu -d /dev/video0 -q -v
[sudo] password for dave:
Video Capabilities
Name: Logitech QuickCam Pro 4000
Type: 1
Can capture
Video Channels: 1
Audio Channels: 1
Maximum Width: 640
Maximum Height: 480
Minimum Width: 160
Minimum Height: 120
Window Attributes
X Offset: 0
Y Offset: 0
Width: 160
Height: 120
Picture Attributes
Palette: 15 - YUV 4:2:0 Planar
Colour Depth: 24
Brightness: 32256
Hue: 65535
Colour :32768
Contrast: 40960
Whiteness: 49152
Channel 0 Attributes
Name: Webcam
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 49039 - Unknown
dave@dave-desktop:~$
Needed a sudo, checking permissions ................................................
dave@dave-desktop:~$ ls -al /dev/video0
crw-rw---- 1 root video 81, 0 2007-08-19 09:31 /dev/video0
dave@dave-desktop:~$ cat /etc/group | grep video
video44:dave
dave@dave-desktop:~$
Seems OK ....... a look at /var/log/messages ..................................................................
Aug 19 10:17:37 dave-desktop zmwatch[5259]: INF ['zmc -d /dev/video0' starting at 07/08/19 10:17:37, pid = 14221]
Aug 19 10:17:47 dave-desktop zmwatch[5259]: INF [Restarting capture daemon for New, shared memory not valid]
Aug 19 10:17:48 dave-desktop zmdc[5228]: INF ['zmc -d /dev/video0' starting at 07/08/19 10:17:48, pid = 14223]
Aug 19 10:17:48 dave-desktop zmdc[14223]: INF ['zmc -d /dev/video0' started at 07/08/19 10:17:48]
Aug 19 10:17:48 dave-desktop zmc_dvideo0[14223]: INF [Debug Level = 0, Debug Log = <none>]
Aug 19 10:17:48 dave-desktop zmwatch[5259]: INF ['zmc -d /dev/video0' starting at 07/08/19 10:17:48, pid = 14223]
Aug 19 10:17:58 dave-desktop zmwatch[5259]: INF [Restarting capture daemon for New, shared memory not valid]
Aug 19 10:17:58 dave-desktop zmdc[14230]: INF ['zmc -d /dev/video0' started at 07/08/19 10:17:58]
Aug 19 10:17:58 dave-desktop zmdc[5228]: INF ['zmc -d /dev/video0' starting at 07/08/19 10:17:58, pid = 14230]
Aug 19 10:17:58 dave-desktop zmc_dvideo0[14230]: INF [Debug Level = 0, Debug Log = <none>]
Aug 19 10:17:58 dave-desktop zmwatch[5259]: INF ['zmc -d /dev/video0' starting at 07/08/19 10:17:58, pid = 14230]
Mmmm ... shared memory not valid ??.................................
So I fed the above data into the ZoneMinder config ... zip images.
Im stuck !!! Any suggestions on where to go from here
Cheers
Dave
hit brick wall conecting USB Quickcam Pro 4000
Extra info ...
WOW just had a breakthrough , installed zonemonitor on KDE, (I thought - try KDM instead of GDM)
dave@dave-desktop:~$ xawtv -nodga -c /dev/video
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.22-9-generic)
xinerama 0: 1440x900+0+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: 13
Current serial number in output stream: 13
v4l-conf had some trouble, trying to continue anyway
v4l2: open /dev/video: No such file or directory
v4l2: open /dev/video: No such file or directory
v4l: open /dev/video: No such file or directory
no video grabber device available
dave@dave-desktop:~$
so I linked /dev/video0 to /dev/video ... then ...
root@dave-desktop:/dev# xawtv -nodga -device /dev/video0
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.22-9-generic)
xinerama 0: 1440x900+0+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: 13
Current serial number in output stream: 13
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 2 (X_ChangeWindowAttributes)
Resource id in failed request: 0x60005e
Serial number of failed request: 1605
Current serial number in output stream: 1605
root@dave-desktop:/dev#
And I can see my picys in xawtv :)
Still zip in zoneminder though !
Dave
dave@dave-desktop:~$ xawtv -nodga -c /dev/video
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.22-9-generic)
xinerama 0: 1440x900+0+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: 13
Current serial number in output stream: 13
v4l-conf had some trouble, trying to continue anyway
v4l2: open /dev/video: No such file or directory
v4l2: open /dev/video: No such file or directory
v4l: open /dev/video: No such file or directory
no video grabber device available
dave@dave-desktop:~$
so I linked /dev/video0 to /dev/video ... then ...
root@dave-desktop:/dev# xawtv -nodga -device /dev/video0
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.22-9-generic)
xinerama 0: 1440x900+0+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: 13
Current serial number in output stream: 13
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 2 (X_ChangeWindowAttributes)
Resource id in failed request: 0x60005e
Serial number of failed request: 1605
Current serial number in output stream: 1605
root@dave-desktop:/dev#
And I can see my picys in xawtv :)
Still zip in zoneminder though !
Dave
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
thanks for the follow up
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk