I believe I've got most everything set up correctly.. xawtv sees video through the camera n stuff but I can't get the camera monitor to "go green" in Zone Minder.
The only error message I see in /var/log/messages is:
ERR [Could not mmap video: Success]
I've got ZM_STRICT_VIDEO_CONFIG set to no and am using the pwcx driver in addition to the normal pwc driver that was part of the kernel.
Kernel version is 2.4.22-1.2129.nptl
and I'm running zoneminder 0.9.16
Monitor settings are:
Function: Monitor
Device = 0
channel = 0
format = (I've tried 0,1,2) currently set to 0
palette set to yuv420p
160x120
Fedora (Yarrow) + Logitech Quickcam 4000 Pro issue...
Re: Fedora (Yarrow) + Logitech Quickcam 4000 Pro issue...
Oops.. there were errors in zmdc.log after all. Looks like I needed to install a few perl support rpms... MIME-Tools, IO-stringy, MailTools, Archive-Zip, Compress-Zlib, and TimeDate.
What I'm left with now is this error from zmwatch.log:
Can't get shared memory id: No such file or directory
and in zmfilter-1.log:
Scanning for events since id -1
Can't get shared memory id: No such file or directory at /usr/local/bin/zmfilter.pl line 202.
I've tried restarting the zm service, and even running "zmpkg stop" and "zmpkg start" to try to recreate the shared memory ipc.
ipcs -a shows these results:
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 131072 root 600 393216 2 dest
0x00000000 163841 root 600 393216 2 dest
0x00000000 196610 root 600 393216 2 dest
0x00000000 229379 root 600 393216 2 dest
0x00000000 262148 root 600 393216 2 dest
0x00000000 294917 root 600 393216 2 dest
0x00000000 327686 root 600 393216 2 dest
0x00000000 360455 root 600 393216 2 dest
0x00000000 393224 root 600 393216 2 dest
0x00000000 425993 root 600 393216 2 dest
0x00000000 458762 root 600 393216 2 dest
0x00000000 1048587 root 600 393216 2 dest
0x00000000 1081356 root 600 393216 2 dest
------ Semaphore Arrays --------
key semid owner perms nsems
0x00000000 131072 apache 600 1
0x00000000 163841 apache 600 1
------ Message Queues --------
key msqid owner perms used-bytes messages
Any ideas? Is there a way I can manually try to create that shared memory to see why my system isn't allowing it?
What I'm left with now is this error from zmwatch.log:
Can't get shared memory id: No such file or directory
and in zmfilter-1.log:
Scanning for events since id -1
Can't get shared memory id: No such file or directory at /usr/local/bin/zmfilter.pl line 202.
I've tried restarting the zm service, and even running "zmpkg stop" and "zmpkg start" to try to recreate the shared memory ipc.
ipcs -a shows these results:
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 131072 root 600 393216 2 dest
0x00000000 163841 root 600 393216 2 dest
0x00000000 196610 root 600 393216 2 dest
0x00000000 229379 root 600 393216 2 dest
0x00000000 262148 root 600 393216 2 dest
0x00000000 294917 root 600 393216 2 dest
0x00000000 327686 root 600 393216 2 dest
0x00000000 360455 root 600 393216 2 dest
0x00000000 393224 root 600 393216 2 dest
0x00000000 425993 root 600 393216 2 dest
0x00000000 458762 root 600 393216 2 dest
0x00000000 1048587 root 600 393216 2 dest
0x00000000 1081356 root 600 393216 2 dest
------ Semaphore Arrays --------
key semid owner perms nsems
0x00000000 131072 apache 600 1
0x00000000 163841 apache 600 1
------ Message Queues --------
key msqid owner perms used-bytes messages
Any ideas? Is there a way I can manually try to create that shared memory to see why my system isn't allowing it?
Re: Fedora (Yarrow) + Logitech Quickcam 4000 Pro issue...
Okay.. looks like the problem was a bug in a return value check from a call to mmap in zm_local_camera.cpp.
152c152
< if( !((long)m_buffer > 0) )
---
> if( MAP_FAILED==m_buffer )
152c152
< if( !((long)m_buffer > 0) )
---
> if( MAP_FAILED==m_buffer )
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: Fedora (Yarrow) + Logitech Quickcam 4000 Pro issue...
Thanks for this. Whilst I agree you change is tidier I'm not sure when the old code wouldn't work, except when mmap returned zero which it should never do.
Or have I missed something?
Phil,
Or have I missed something?
Phil,
-
- Posts: 2
- Joined: Mon Dec 29, 2003 5:08 am
Re: Fedora (Yarrow) + Logitech Quickcam 4000 Pro issue...
Hi Guys
I'm having the same problem and can't get it to work.
I was previously running 0.9.15 on RH 9 on this server, got a HD probelm and reinstalled it with Fedora Core 1 and 0.9.16.
I have a grandtec 4 port that work with bttvgrab and awtv but I can get zoneminder to work.
I have the same error messages:
zmc-d0[7128]: ERR [Could not mmap video: Success]
What should I do?
Thanks for your help
ST
I'm having the same problem and can't get it to work.
I was previously running 0.9.15 on RH 9 on this server, got a HD probelm and reinstalled it with Fedora Core 1 and 0.9.16.
I have a grandtec 4 port that work with bttvgrab and awtv but I can get zoneminder to work.
I have the same error messages:
zmc-d0[7128]: ERR [Could not mmap video: Success]
What should I do?
Thanks for your help
ST
Re: Fedora (Yarrow) + Logitech Quickcam 4000 Pro issue...
Hey Philip, you're explicitly converting an unsigned to signed in your if statement.
if mmap returns anything above 0x7FFFFFF the if statement will incorrectly return true.
this should also fix your problem, but I still prefer my previous fix since it's a lot easier to read and is more efficient to boot!
152c152
< if( !((long)m_buffer > 0) )
---
> if( !((unsigned long) m_buffer > 0 ) )
if mmap returns anything above 0x7FFFFFF the if statement will incorrectly return true.
this should also fix your problem, but I still prefer my previous fix since it's a lot easier to read and is more efficient to boot!
152c152
< if( !((long)m_buffer > 0) )
---
> if( !((unsigned long) m_buffer > 0 ) )
Re: Fedora (Yarrow) + Logitech Quickcam 4000 Pro issue...
Hey Serge Thibault,
go into the src dir for zm and edit zm_local_camera.cpp.
go to line 152 and replace:
if( !((long)m_buffer > 0) )
with
if( MAP_FAILED==m_buffer )
or
if( !((unsigned long)m_buffer > 0) )
save, make, make install, and restart the zm service.
go into the src dir for zm and edit zm_local_camera.cpp.
go to line 152 and replace:
if( !((long)m_buffer > 0) )
with
if( MAP_FAILED==m_buffer )
or
if( !((unsigned long)m_buffer > 0) )
save, make, make install, and restart the zm service.
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: Fedora (Yarrow) + Logitech Quickcam 4000 Pro issue...
Hi Ian,
Yeah, I'd missed the signedness conversion.
I've applied your previous fix to the CVS source anyway, but it got missed out of .16 originally.
Phil,
Yeah, I'd missed the signedness conversion.
I've applied your previous fix to the CVS source anyway, but it got missed out of .16 originally.
Phil,