Page 2 of 2
Re: Cant set up webcam
Posted: Mon Sep 12, 2011 11:32 pm
by bb99
Dacoz: That doesn't go into a configure (.conf) it is a step in building from scratch ie: ./configure --enable-mmap=yess --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/share/ffmpeg CPPFLAGS="-D__STDC_CONSTANT_MACROS" --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --with-extralibs="-L/usr/lib64 -L/usr/lib64/mysql" CXXFLAGS="-D__STDC_CONSTANT_MACROS". It's pretty much the configure for the "make" command.
Re: Cant set up webcam
Posted: Tue Sep 13, 2011 6:08 pm
by mastertheknife
The MJPEG capture palette isn't supported by ZM at this moment.
mastertheknife
Re: Cant set up webcam
Posted: Wed Sep 14, 2011 9:55 pm
by dacroz
Thanks for the feedback! It looks like if I want to try the mapped memory solution, I need to completely reinstall zm from source? (Something I've not been brave enough to try...)
If I want to still try to get the current install (from apt-get binary) to work though, any suggestions about why sudo sysctl -p returns those errors? And/or suggest different values? I'm running it on an older laptop with 512 MB memory, 80 GB HDD.
Thanks in advance!
Re: Cant set up webcam
Posted: Thu Sep 15, 2011 12:28 am
by bb99
I need to completely reinstall zm from source?
No, I believe the newer Debian/Ubuntu packages use mapped memory (check to be sure) so it's possible that your ZM is using mmap by default.
why sudo sysctl -p returns those errors?
After rebooting try running ipcs -l to be sure on status.
From the wiki:
By default mapped memory files are created in /dev/shm which on most distributions is a dedicated pseudo-partition containing memory formatted as a filesystem. If your system uses a different path then this can be changed in ZoneMinder in Options->paths->PATH_MAP. It uses a filesystem type called tmpfs. If you type 'df' you should see this area and the size of memory it currently allows. It is important that you do not use a disk based filesystem for your memory mapped files as this will cause memory access to be extremely slow. ZoneMinder creates files called .zm.mmap.<monitor id> in the mapped memory filesystem.