Centos 7 Zoneminder 1.30 feature-h264-videostorage branch install

Forum for questions and support relating to the 1.30.x releases only.
Locked
bttd
Posts: 4
Joined: Wed Jun 22, 2016 1:01 pm

Centos 7 Zoneminder 1.30 feature-h264-videostorage branch install

Post by bttd »

Hi!

I want to install Zoneminder 1.30 feature-h264-videostorage branch on centos 7
https://github.com/ZoneMinder/ZoneMinde ... deostorage

I don't can wait until merge, and after the package.

Can someone give me some instructions, how can i install this specific branch?
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: Centos 7 Zoneminder 1.30 feature-h264-videostorage branch install

Post by SteveGilvarry »

Option 1.
http://zoneminder.readthedocs.io/en/lat ... er-package
Follow that guide, somewhere down the bottom after git submodule stuff you need to do git checkout feature-h264-videostorage so it builds on that.

Option 2. Sorry both of us working on it are on ubuntu.
Install Ubuntu
https://launchpad.net/~iconnor/+archive ... deostorage

Happy to hear about bugs, but can't promise any level of support.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Centos 7 Zoneminder 1.30 feature-h264-videostorage branch install

Post by knight-of-ni »

SteveGilvarry is correct. Follow the instructions in the readthedocs link he posted.
I wrote those instructions to be virtually copy and paste. The first part steps you through building an rpm identical to what is in zmrepo. While you won't be using this rpm, it is important to go through these steps to verify your environment is set up correctly.

Once that finished successfully, read the last part of the instructions:
http://zoneminder.readthedocs.io/en/lat ... r-to-build

There is only one additional step you need to do to build an rpm based off the h264 feature branch:

Code: Select all

cd /path/to/your/local/zoneminder/git/repo
git checkout feature-h2t64-videostorage
Then it should build just like the previous steps, only you'll have an rpm which uses the h264 feature branch.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
bttd
Posts: 4
Joined: Wed Jun 22, 2016 1:01 pm

Re: Centos 7 Zoneminder 1.30 feature-h264-videostorage branch install

Post by bttd »

Ok, im install it to ubuntu 16.04, now i have the proper version installed, and the camera working, but i got some errors.
2016-07-11 17:04:05.540100 zmdc 22156 ERR 'zmc -m 1' exited abnormally, exit status 255 zmdc.pl
2016-07-11 17:04:05.462421 zmc_m1 22816 FAT Error occurred when writing output file header to events/1/16/07/11/17/00/55/3-video.mp4: Invalid argument zm_videostore.cpp 141
2016-07-11 17:04:05.430294 zmc_m1 22816 INF Opening video storage stream events/1/16/07/11/17/00/55/3-video.mp4 format: 1497071745 zm_videostore.cpp 51
2016-07-11 17:03:58.542345 zmc_m1 22816 INF Stream open rtsp://admin:admin@192.168.5.7:554/videoMain zm_ffmpeg_camera.cpp 304
2016-07-11 17:03:58.179689 zmc_m1 22816 WAR Unable to parse ffmpeg option 0 '', expecting key=value zm_ffmpeg_camera.cpp 279
2016-07-11 17:03:58.146717 zmc_m1 22816 INF Priming capture from rtsp://admin:admin@192.168.5.7:554/videoMain zm_ffmpeg_camera.cpp 113
2016-07-11 17:03:58.120692 zmc_m1 22816 INF Starting Capture version 1.30.0 zmc.cpp 250
2016-07-11 17:03:57.428835 zmc_m1 22816 WAR Failed parsing encoder parameters line 1: Invalid pair zm_video.cpp 484
2016-07-11 17:03:57.299920 zmdc 22816 INF 'zmc -m 1' started at 16/07/11 17:03:57 zmdc.pl
2016-07-11 17:03:57.297790 zmdc 22156 INF 'zmc -m 1' starting at 16/07/11 17:03:57, pid = 22816 zmdc.pl
2016-07-11 17:03:57.006790 zmwatch 22197 INF Restarting capture daemon for Monitor-1, time since last capture 12 seconds (1468249437-1468249425) zmwatch.pl
have anyone any idea what can i try?
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: Centos 7 Zoneminder 1.30 feature-h264-videostorage branch install

Post by SteveGilvarry »

bttd pretty sure I found the cause of this tonight, recently we added the ability to record audio. Only problem is MP4 limits types of audio streams and many cameras output pcm mono audio line alaw and ulaw.
To check this try running, and you should see audio stream details and the same error message. Paste the results if you don't mind so I can see stream info.
ffmpeg -i rtsp://@192.168.241.1:62156 -acodec copy -vcodec copy ./abc.mp4

Try turning off the audio stream in your camera. At some point I will add a filter to ensure streams are compatible and maybe even transcode the stream to a compatible format.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
bttd
Posts: 4
Joined: Wed Jun 22, 2016 1:01 pm

Re: Centos 7 Zoneminder 1.30 feature-h264-videostorage branch install

Post by bttd »

I'm already using pure video instend of audio video in my ip cam settings.
jason.w
Posts: 1
Joined: Sun Feb 05, 2017 5:59 pm

Re: Centos 7 Zoneminder 1.30 feature-h264-videostorage branch install

Post by jason.w »

I'm trying to compile the feature-h264-videostorage branch under CentOS 7 by following the instruction, it gives me error message, can anyone help?
Processing files: zoneminder-1.30.0-4.el7.centos.x86_64
error: File not found: /builddir/build/BUILDROOT/zoneminder-1.30.0-4.el7.centos.x86_64/etc/tmpfiles.d/zoneminder.conf
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.2ChaE4
error: Directory not found: /builddir/build/BUILDROOT/zoneminder-1.30.0-4.el7.centos.x86_64/run/zoneminder
+ umask 022
+ cd /builddir/build/BUILD
+ cd ZoneMinder-1.30.0
+ DOCDIR=/builddir/build/BUILDROOT/zoneminder-1.30.0-4.el7.centos.x86_64/usr/share/doc/zoneminder-1.30.0
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/zoneminder-1.30.0-4.el7.centos.x86_64/usr/share/doc/zoneminder-1.30.0
+ cp -pr AUTHORS /builddir/build/BUILDROOT/zoneminder-1.30.0-4.el7.centos.x86_64/usr/share/doc/zoneminder-1.30.0
+ cp -pr BUGS /builddir/build/BUILDROOT/zoneminder-1.30.0-4.el7.centos.x86_64/usr/share/doc/zoneminder-1.30.0
+ cp -pr ChangeLog /builddir/build/BUILDROOT/zoneminder-1.30.0-4.el7.centos.x86_64/usr/share/doc/zoneminder-1.30.0
+ cp -pr COPYING /builddir/build/BUILDROOT/zoneminder-1.30.0-4.el7.centos.x86_64/usr/share/doc/zoneminder-1.30.0
+ cp -pr LICENSE /builddir/build/BUILDROOT/zoneminder-1.30.0-4.el7.centos.x86_64/usr/share/doc/zoneminder-1.30.0
+ cp -pr NEWS /builddir/build/BUILDROOT/zoneminder-1.30.0-4.el7.centos.x86_64/usr/share/doc/zoneminder-1.30.0
+ cp -pr README.md /builddir/build/BUILDROOT/zoneminder-1.30.0-4.el7.centos.x86_
64/usr/share/doc/zoneminder-1.30.0
+ cp -pr distros/redhat/README.Centos7 /builddir/build/BUILDROOT/zoneminder-1.30.0-4.el7.centos.x86_64/usr/share/doc/zoneminder-1.30.0
cp: cannot stat 'distros/redhat/README.Centos7': No such file or directory
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.2ChaE4 (%doc)
File not found: /builddir/build/BUILDROOT/zoneminder-1.30.0-4.el7.centos.x86_64/etc/tmpfiles.d/zoneminder.conf
Directory not found: /builddir/build/BUILDROOT/zoneminder-1.30.0-4.el7.centos.x86_64/run/zoneminder
Bad exit status from /var/tmp/rpm-tmp.2ChaE4 (%doc)
Child return code was: 1
EXCEPTION: [Error()]
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace
result = func(*args, **kw)
File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 547, in do
raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Centos 7 Zoneminder 1.30 feature-h264-videostorage branch install

Post by knight-of-ni »

I completely rewrote the zonemidner spec file, which is why the build is complaining about missing folders.
Until the next release comes out, you will need to perform a few extra steps

Off the top of my head (might not be perfect):
- git clone https://github.com/ZoneMinder/ZoneMinder (do NOT use git to install the submodule)
- cp distros/redhat/zoneminder.spec ~/rpbmuild/SPECS/
- Open the specfile and set Version to 1.30.2
- git checkout feature-h264-videostorage
- now create a tarfile of the cloned repo, call it zoneminder-1.30.2.tar.gz, and put it into ~/rpmbuild/SOURCES
- Yum install spectool
- cd ~/rpmbuild/SOURCES
- spectool -s ~/rpmbuild/SPECS/zoneminder.spec
- cd ~/rpmbuild/SPECS
- create a new srpm
- Perform the mock using mock or buildzm.sh
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
soidenmatdo
Posts: 10
Joined: Tue Jan 24, 2017 5:10 am

Re: Centos 7 Zoneminder 1.30 feature-h264-videostorage branch install

Post by soidenmatdo »

knnniggett wrote:I completely rewrote the zonemidner spec file, which is why the build is complaining about missing folders.
Until the next release comes out, you will need to perform a few extra steps

Off the top of my head (might not be perfect):
- git clone https://github.com/ZoneMinder/ZoneMinder (do NOT use git to install the submodule)
- cp distros/redhat/zoneminder.spec ~/rpbmuild/SPECS/
- Open the specfile and set Version to 1.30.2
- git checkout feature-h264-videostorage
- now create a tarfile of the cloned repo, call it zoneminder-1.30.2.tar.gz, and put it into ~/rpmbuild/SOURCES
- Yum install spectool
- cd ~/rpmbuild/SOURCES
- spectool -s ~/rpmbuild/SPECS/zoneminder.spec
- cd ~/rpmbuild/SPECS
- create a new srpm
- Perform the mock using mock or buildzm.sh
hi knnniggett,
i install Zoneminder 1.3.0 on Centos 7
i installed follow the link http://zoneminder.readthedocs.io/en/lat ... er-package

"Now comes the fun part. To build ZoneMinder, issue the following command:
buildzm.sh zmrepo-el7-x86_64 ~/rpmbuild/SRPMS/zoneminder-1.28.1-2.el7.centos.src.rpm"

it reported success then but i don't know what i have to do next step with next instructions :

Notice that the buildzm.sh tool requires the following parameters:
buildzm.sh MOCKCONFIG ZONEMINDER_SRPM
The list of available Mock config files are available here:
ls /etc/mock/zmrepo*.cfg
You choose the config file based on the desired distro (e.g. el6, el7, f20, f21) and basearch (e.g. x86, x86_64, arhmhfp). Notice that, when specifying the Mock config as a commandline parameter, you should leave off the ”.cfg” filename extension.

If no have to do these steps please explaint for me what i have to do :

Once the build completes, you will be presented with a folder containing the RPM’s that were built. Copy the newly built ZoneMinder RPM to the desired system, enable zmrepo per the instruction on the Zmrepo website, and then install the rpm by issuing the appropriate yum install command. Finish the installation by following the zoneminder setup instructions in the distro specific readme file, named README.{distroname}, which will be installed into the /usr/share/doc/zoneminder* folder.

i tried 3 times to install zm with h264-videostorage but not sucess bc i do not know much about linux
thank you a lot
soidenmatdo
Posts: 10
Joined: Tue Jan 24, 2017 5:10 am

Re: Centos 7 Zoneminder 1.30 feature-h264-videostorage branch install

Post by soidenmatdo »

have anyone installed success pl help me
Locked