Page 1 of 1

need help to install ZM 1.26.5 on ubuntu 13.10 64 bits

Posted: Fri Feb 07, 2014 6:40 am
by samquad
I want to install ZM 1.26.5 on ubuntu 13.10 64 bit
I followed the wiki the easy way 3 step:
http://www.zoneminder.com/wiki/index.ph ... 04_Desktop

http://www.zoneminder.com/wiki/index.ph ... e_easy_way

http://www.zoneminder.com/wiki/index.ph ... on_changes

Install PPA Repository for Zoneminder 1.26.5-1 make error: pakages not found.
Fix a minor omission in teh zm.conf file nano /etc/zm/zm.conf wiki said :
At the end of the file add:
ZM_VERSION=1.26.5
do I need to change the line ZM_VERSION=1.25.0 already present in the file, or I leave the line and I add ZM_VERSION=1.26.5 at the end of file?

for the moment when I run zoneminder is version 1.25 and my camera on my pci card geovision GV800 does not work (the source is always red).

Log file zm:

2014-02-07 06:37:54.077850 zmdc 2303 ERR 'zmc -d /dev/video0' exited abnormally, exit status 255 zmdc.pl
2014-02-07 06:37:54.076087 zmc_dvideo0 3953 FAT Failed to set video format: Invalid argument zm_local_camera.cpp 410
2014-02-07 06:37:54.075630 zmc_dvideo0 3953 INF Starting Capture zmc.cpp 191
2014-02-07 06:37:54.055520 zmdc 3953 INF 'zmc -d /dev/video0' started at 14/02/07 07:37:54 zmdc.pl
2014-02-07 06:37:54.055490 zmdc 2303 INF 'zmc -d /dev/video0' starting at 14/02/07 07:37:54, pid = 3953 zmdc.pl
2014-02-07 06:37:54.052710 zmdc 2303 INF Starting pending process, zmc -d /dev/video0 zmdc.pl
.....

my cameras work well with vlc on ubuntu 13.10.

can you help me to run zoneminder 1.26.5 on ubuntu 13.10?

thank you
Samquad

Re: need help to install ZM 1.26.5 on ubuntu 13.10 64 bits

Posted: Fri Feb 07, 2014 9:29 pm
by linuxsense
Change ZM_VERSION to the current version, you only want it declared once.

What are your settings for the camera? It looks like its probably just not configured properly.

Re: need help to install ZM 1.26.5 on ubuntu 13.10 64 bits

Posted: Sat Feb 08, 2014 6:24 pm
by samquad
ok.

I just reinstalled ubuntu 12.04 LTS 64-bit with zm 1.26.4 and it works
My card geovision GV800 is recognized is recognized by adding this line on file /etc/modprobe.d/gv800.conf

options bttv card=157,158,158,158

my 12 camera work individually with VLC or ZM:
camera 1 /dev/video0 (0)
camera 2 /dev/video1 (0)
camera 3 /dev/video2 (0)
camera 4 /dev/video3 (0)
camera 5 /dev/video0 (1)
camera 6 /dev/video1 (1)
camera 7 /dev/video2 (1)
camera 8 /dev/video3 (1)
camera 9 /dev/video0 2)
camera 10 /dev/video1 (2)
camera 11 /dev/video2 (2)
camera 12 /dev/video3 (2)

ZM wrok well with 4 cameras only:
camera 1 /dev/video0 (0)
camera 2 /dev/video1 (0)
camera 3 /dev/video2 (0)
camera 4 /dev/video3 (0)
or
camera 1 /dev/video0 (0)
camera 2 /dev/video1 (1)
camera 3 /dev/video2 (0)
camera 4 /dev/video3 (0)

if I add 2 cameras from the same Device Path (/dev/video0 or /dev/video1 or /dev/video2 or /dev/video3 ) that I can see only one device channel of this Device Path

I have a problem Device Path multiplexing
Please help me
Samquad

Re: need help to install ZM 1.26.5 on ubuntu 13.10 64 bits

Posted: Sun Feb 09, 2014 2:40 pm
by axelm
samquad wrote:I want to install ZM 1.26.5 on ubuntu 13.10 64 bit
Install PPA Repository for Zoneminder 1.26.5-1 make error: pakages not found.
Samquad
That PPA does not include a package for 13.10. You need to modify the source so it points to the "devel" package.

edit /etc/apt/sources.list.d/iconnor-zoneminder-saucy.list

Mine says:
deb http://ppa.launchpad.net/iconnor/zoneminder/ubuntu devel main
deb-src http://ppa.launchpad.net/iconnor/zoneminder/ubuntu devel main

Then, supposing you already have the zoneminder package installed, from root or sudo
apt-get update
apt-get upgrade

That should upgrade from 1.25.0 to 1.26.5.

Then you have to configure apache2 conf files appropriately, enable cgi mod, and set the default timezone in php.ini.

That's what I remember right now off the top of my head. Sorry but I did not take any notes while doing it. It was a pain in the ...

Re: need help to install ZM 1.26.5 on ubuntu 13.10 64 bits

Posted: Sun Feb 09, 2014 3:05 pm
by axelm
samquad wrote:ok.

if I add 2 cameras from the same Device Path (/dev/video0 or /dev/video1 or /dev/video2 or /dev/video3 ) that I can see only one device channel of this Device Path

I have a problem Device Path multiplexing
Please help me
Samquad
I had a similar problem with a GV650 card that had 4 cameras on the same BT878a chip. I trashed this crappy card and got a cheap Kodicom 4400R which has a BT878a chip for each camera.

So anyways, for multiplexed cameras on a single BT878a, I remember having to change CAPTURES_PER_FRAME to a higher value (start with 2) so the feed stabilizes after selecting the desired input.

Careful with CAPTURES_PER_FRAME because it acts as an fps divisor. For example, if your card can capture 24 fps and you set CAPTURES_PER_FRAME to 2, you will be getting max 12 fps. That means that if you have 4 cameras your fps will be 3 (ugly).

Re: need help to install ZM 1.26.5 on ubuntu 13.10 64 bits

Posted: Mon Feb 10, 2014 6:30 pm
by samquad
thank you Axelm but I did not understand everything about /option/config/CAPTURES_PER_FRAME

Here is my configuration that works moderately but I do not have a lot of fps per camera:
/option/config/V4L_MULTI_BUFFER enabled
/option/config/CAPTURES_PER_FRAME=5 --> which value for 9 camera?

For each camera on config:
Maximum FPS=5 -->do I have to delete the value in each camera?

yet all cameras work indivigualy with some little bug multiplexing.

also, when I click montage: missing 3 videos that do not appear and screens are always placed one above the other even if I enlarged the window???

Samquad

Re: need help to install ZM 1.26.5 on ubuntu 13.10 64 bits

Posted: Mon Feb 10, 2014 7:48 pm
by linuxsense
How much RAM in that box? Have you raised the shared mem settings? On most systems you will want:

Code: Select all

kernel.shmall = 134217728 
kernel.shmmax = 134217728
I have a box with a ton of RAM so I went huge on mine, works great.

Code: Select all

kernel.shmall = 805306368
kernel.shmmax = 805306368
Put that at the end of /etc/sysctrl.conf and reboot. You can get the same results without a reboot but I prefer taking the extra step when troubleshooting.

Re: need help to install ZM 1.26.5 on ubuntu 13.10 64 bits

Posted: Tue Feb 11, 2014 6:46 am
by samquad
My PC has 4 GB of RAM
the file /etc/sysctrl.conf does not exist on my PC

with 4 GB of RAM what value should I enter

kernel.shmall = ?
kernel.shmmax = ?

Thank you

Re: need help to install ZM 1.26.5 on ubuntu 13.10 64 bits

Posted: Tue Feb 11, 2014 6:03 pm
by PacoLM
Hi,

I believe the default configuration for 1.25.X and above is to use mmap, not shared memory.
Gurus, correct me if I'm wrong.
Check if your computer has some files under /dev/shm/ , if so, then you are using mmap, not shared memory, then you do not need to edit anything in /etc/sysctl.conf.

Hope it helps,

PacoLM

Re: need help to install ZM 1.26.5 on ubuntu 13.10 64 bits

Posted: Thu Feb 13, 2014 7:44 pm
by samquad
I have many file on /dev/shm : Pulse-shm-xxxxx and zm.mmap.x

in /option/config/CAPTURES_PER_FRAME : what is the optimal value for 9 camera with GV800 card ?
For each camera config in Maximum FPS: What value should I enter?

Thank you
Samquad