Page 1 of 2

Now hear this: Please test 1.26-beta.2!

Posted: Fri Aug 16, 2013 4:40 pm
by kylejohnson
1.26-beta.2 can be found here: https://github.com/ZoneMinder/ZoneMinde ... a.2.tar.gz

Please report issues in this thread.

What we need is:
  • Testing on Gentoo and Arch, and on other popular distros
  • Testing of ffmpeg sources
  • Testing of local (/dev/...) sources

Re: Now hear this: Please test 1.26-beta.2!

Posted: Thu Aug 22, 2013 7:12 pm
by windracer
Trying to compile on Ubuntu 13.04 with a fresh build of ffmpeg from source, I get this error during the make:

Code: Select all

g++ -D__STDC_CONSTANT_MACROS -g -O2  -L/usr/local/lib -L/usr/lib/mysql   -o zmc zmc.o zm_box.o zm_buffer.o zm_camera.o zm_comms.o zm_config.o zm_coord.o zm.o zm_db.o zm_logger.o zm_event.o zm_exception.o zm_file_camera.o zm_ffmpeg_camera.o zm_image.o zm_jpeg.o zm_local_camera.o zm_monitor.o zm_ffmpeg.o zm_mpeg.o zm_poly.o zm_regexp.o zm_remote_camera.o zm_remote_camera_http.o zm_remote_camera_rtsp.o zm_rtp.o zm_rtp_ctrl.o zm_rtp_data.o zm_rtp_source.o zm_rtsp.o zm_sdp.o zm_signal.o zm_stream.o zm_thread.o zm_time.o zm_timer.o zm_user.o zm_utils.o zm_zone.o  -lz -lbz2 -lswscale -lavdevice -lavformat -lavcodec -lavutil -lx264 -lz -lpcre -lgnutls-openssl -lgnutls -lgcrypt -ldl -lpthread -ljpeg -lmysqlclient
zm_ffmpeg_camera.o: In function `FfmpegCamera::~FfmpegCamera()':
/usr/src/ZoneMinder-1.26-beta.2/src/zm_ffmpeg_camera.cpp:85: undefined reference to `avformat_close_input'
zm_mpeg.o: In function `encode_frame':
/usr/src/ZoneMinder-1.26-beta.2/src/zm_mpeg.cpp:40: undefined reference to `avcodec_encode_video2'
collect2: error: ld returned 1 exit status
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/usr/src/ZoneMinder-1.26-beta.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/ZoneMinder-1.26-beta.2'
make: *** [all] Error 2
Any hints on what I might be missing?

Re: Now hear this: Please test 1.26-beta.2!

Posted: Thu Aug 22, 2013 7:26 pm
by knight-of-ni
The release notes say to use ffmpeg version N-55540-g93f4277. Try that.

For Ubuntu platforms, you also have the option of using Kyle's puppet module:
https://github.com/ZoneMinder/ZoneMinde ... der-Module

Re: Now hear this: Please test 1.26-beta.2!

Posted: Fri Aug 23, 2013 9:28 am
by basketcase
Hey knnniggett & Kyle,

Just a quick bit of feedback, I used the RPM 1.26 link on this topic

http://www.zoneminder.com/forums/viewto ... =9&t=19119


Not sure if the RPM is the same posted here, but I installed on CentOS 6.4 and it works tremendously well.

I had to remove the existing ffmpeg that was on the build, but that was the only thing that slowed the install which was sorted in about 30 seconds.

My dedicated box an Intel i5-2400, Running 7 Cameras:
2x -2MP at 1600x1200 @16 FPS each
5x -640x480 @8 FPS each Analogue cheapo old cameras I'm swapping out as they fail on a Kodicom like 8800 card

Formerly on Ubuntu 12.04, with ZM 1.25 I ran at 2.5 - 3.0 load 24/7, with this CentOS and 1.26 beta setup its now 0.8 -1.2!

I haven't seen any errors apart from ones caused by me testing, it's all humming along nicely, I'll let you know if I see anything.

Thanks for all your work!
Cheers!

Re: Now hear this: Please test 1.26-beta.2!

Posted: Sat Aug 24, 2013 11:00 am
by mastertheknife
I'm also very glad to hear (I worked on the performance improvements).

For best performance you should try using a 32bit capture palette (BGRA) and 32bit target colorspace.

Also, you can now deinterlace your analog cameras by enabling deinterlacing for each monitor. The four field ones will work best.

mastertheknife

Re: Now hear this: Please test 1.26-beta.2!

Posted: Sun Aug 25, 2013 2:40 pm
by jancolle
Thank you for a fantastic piece of software :-)
I Have just compiled 1.26 beta2 on my Ubuntu 12.04. And upgraded my old 1.25 db to 1.26 without problems.
But after the upgrade I can no longer watch live stream, or recorded streams in the web interface.

I have no problem watching the recorded videos, if I download them to my PC.

I'm getting these lines in the log.:

2013-08-25 16:37:04.099324 zms[24951].ERR-zm_signal.cpp/91 [Signal address is 0x206, no eip]
2013-08-25 16:37:04.103193 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0) [0x7fe6bda9dcb0]]
2013-08-25 16:37:04.103446 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7fe6bc75d425]]
2013-08-25 16:37:04.103707 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libc.so.6(abort+0x17b) [0x7fe6bc760b8b]]
2013-08-25 16:37:04.103939 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libc.so.6(+0x7439e) [0x7fe6bc79b39e]]
2013-08-25 16:37:04.104141 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37) [0x7fe6bc831817]]
2013-08-25 16:37:04.104342 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0) [0x7fe6bc8317e0]]
2013-08-25 16:37:04.104541 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /usr/lib/cgi-bin/nph-zms() [0x4d5cf5]]
2013-08-25 16:37:04.104817 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /usr/lib/cgi-bin/nph-zms() [0x406f08]]
2013-08-25 16:37:04.105107 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7fe6bc74876d]]
2013-08-25 16:37:04.105383 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /usr/lib/cgi-bin/nph-zms() [0x4073f1]]

Any ideas ?

Re: Now hear this: Please test 1.26-beta.2!

Posted: Sun Aug 25, 2013 5:39 pm
by knight-of-ni
jancolle wrote:Thank you for a fantastic piece of software :-)
I Have just compiled 1.26 beta2 on my Ubuntu 12.04. And upgraded my old 1.25 db to 1.26 without problems.
But after the upgrade I can no longer watch live stream, or recorded streams in the web interface.

I have no problem watching the recorded videos, if I download them to my PC.

I'm getting these lines in the log.:

2013-08-25 16:37:04.099324 zms[24951].ERR-zm_signal.cpp/91 [Signal address is 0x206, no eip]
2013-08-25 16:37:04.103193 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0) [0x7fe6bda9dcb0]]
2013-08-25 16:37:04.103446 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7fe6bc75d425]]
2013-08-25 16:37:04.103707 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libc.so.6(abort+0x17b) [0x7fe6bc760b8b]]
2013-08-25 16:37:04.103939 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libc.so.6(+0x7439e) [0x7fe6bc79b39e]]
2013-08-25 16:37:04.104141 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37) [0x7fe6bc831817]]
2013-08-25 16:37:04.104342 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0) [0x7fe6bc8317e0]]
2013-08-25 16:37:04.104541 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /usr/lib/cgi-bin/nph-zms() [0x4d5cf5]]
2013-08-25 16:37:04.104817 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /usr/lib/cgi-bin/nph-zms() [0x406f08]]
2013-08-25 16:37:04.105107 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7fe6bc74876d]]
2013-08-25 16:37:04.105383 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /usr/lib/cgi-bin/nph-zms() [0x4073f1]]

Any ideas ?
I may have had a similar issue when I was building the 1.26 rpms. Before I get into what the issue was, try and temporarily turn off authentication and report back wether or not that resolves the issue.

Re: Now hear this: Please test 1.26-beta.2!

Posted: Sun Aug 25, 2013 7:49 pm
by AllenTuttle
Do you happen to have a configure script that might work for Fedora?
I tried autoconf, automake, and autoreconf but none could create a usable configure.
For example:
--------------------------------
autoconf
configure.ac:3: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:5: error: possibly undefined macro: AM_CONFIG_HEADER
configure.ac:349: error: possibly undefined macro: AC_PROG_PERL_VERSION
configure.ac:352: error: possibly undefined macro: AC_PROG_PERL_MODULES
configure.ac:377: error: possibly undefined macro: AC_DEFINE_DIR

Re: Now hear this: Please test 1.26-beta.2!

Posted: Sun Aug 25, 2013 8:08 pm
by knight-of-ni
AllenTuttle wrote:Do you happen to have a configure script that might work for Fedora?
I tried autoconf, automake, and autoreconf but none could create a usable configure.
For example:
--------------------------------
autoconf
configure.ac:3: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:5: error: possibly undefined macro: AM_CONFIG_HEADER
configure.ac:349: error: possibly undefined macro: AC_PROG_PERL_VERSION
configure.ac:352: error: possibly undefined macro: AC_PROG_PERL_MODULES
configure.ac:377: error: possibly undefined macro: AC_DEFINE_DIR
My srpm may help you. Download it from this thread:
http://www.zoneminder.com/forums/viewto ... 19&p=75020

The spec file was based off a Fedora spec. However, you will likely have to edit the spec file and tweak the names of the dependancies and the version of gcc & ffmpeg to something newer.

Re: Now hear this: Please test 1.26-beta.2!

Posted: Sun Aug 25, 2013 8:21 pm
by AllenTuttle
Solution includes being familiar with automake, which I am not...
---
libtoolizee
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: You should add the contents of the following files to `aclocal.m4':
libtoolize: `/usr/share/aclocal/libtool.m4'
libtoolize: `/usr/share/aclocal/ltoptions.m4'
libtoolize: `/usr/share/aclocal/ltversion.m4'
libtoolize: `/usr/share/aclocal/ltsugar.m4'
libtoolize: `/usr/share/aclocal/lt~obsolete.m4'
libtoolize: Remember to add `LT_INIT' to configure.ac.
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
libtoolize: `AC_PROG_RANLIB' is rendered obsolete by `LT_INIT'
----
I made those edits, then:
----
libtoolize
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: linking file `m4/libtool.m4'
libtoolize: You should add the contents of `m4/libtool.m4' to `aclocal.m4'.
libtoolize: linking file `m4/ltoptions.m4'
libtoolize: You should add the contents of `m4/ltoptions.m4' to `aclocal.m4'.
libtoolize: linking file `m4/ltsugar.m4'
libtoolize: You should add the contents of `m4/ltsugar.m4' to `aclocal.m4'.
libtoolize: linking file `m4/ltversion.m4'
libtoolize: You should add the contents of `m4/ltversion.m4' to `aclocal.m4'.
libtoolize: linking file `m4/lt~obsolete.m4'
libtoolize: You should add the contents of `m4/lt~obsolete.m4' to `aclocal.m4'.
libtoolize: `AC_PROG_RANLIB' is rendered obsolete by `LT_INIT'
----
aclocal ; autoheader ; automake --force-missing --add-missing ; autoconf
-----
Result was a working configure file.
-----
Unfortunately make fails.
-------------------------

Entering directory `ZoneMinder-1.26-beta.2/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -D__STDC_CONSTANT_MACROS -Wall -finline-functions -fomit-frame-pointer -I/usr/include -D__STDC_CONSTANT_MACROS -D__STDC_CONSTANT_MACROS -g -O2 -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
In file included from zm_mpeg.h:23:0,
from zm_stream.h:27,
from zm_event.h:39,
from zm_zone.h:27,
from zm_monitor.h:30,
from zmc.cpp:28:
zm_ffmpeg.h:47:45: error: missing binary operator before token "("
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(53, 4, 0)
^
In file included from zm_stream.h:27:0,
from zm_event.h:39,
from zm_zone.h:27,
from zm_monitor.h:30,
from zmc.cpp:28:
zm_mpeg.h:43:7: error: use of enum ‘PixelFormat’ without previous declaration
enum PixelFormat pf;
^
zm_mpeg.h:44:2: error: ‘AVOutputFormat’ does not name a type
AVOutputFormat *of;
^
zm_mpeg.h:45:2: error: ‘AVFormatContext’ does not name a type
AVFormatContext *ofc;
^
zm_mpeg.h:46:2: error: ‘AVStream’ does not name a type
AVStream *ost;
^
zm_mpeg.h:47:2: error: ‘AVFrame’ does not name a type
AVFrame *opicture;
^
zm_mpeg.h:48:2: error: ‘AVFrame’ does not name a type
AVFrame *tmp_opicture;
^
make[2]: *** [zmc.o] Error 1

Re: Now hear this: Please test 1.26-beta.2!

Posted: Sun Aug 25, 2013 8:49 pm
by windracer
knnniggett wrote:The release notes say to use ffmpeg version N-55540-g93f4277. Try that.
Not sure how I would get that specific version for Ubuntu 13.04. I just compiled from git, so I've got ffmpeg version git-2013-08-20-d9b0b54.
knnniggett wrote:For Ubuntu platforms, you also have the option of using Kyle's puppet module:
https://github.com/ZoneMinder/ZoneMinde ... der-Module
How will that affect an existing 1.25 installation? Upgrade? Or side-by-side install?

Re: Now hear this: Please test 1.26-beta.2!

Posted: Mon Aug 26, 2013 1:28 am
by knight-of-ni
windracer wrote:
knnniggett wrote:The release notes say to use ffmpeg version N-55540-g93f4277. Try that.
Not sure how I would get that specific version for Ubuntu 13.04. I just compiled from git, so I've got ffmpeg version git-2013-08-20-d9b0b54.
knnniggett wrote:For Ubuntu platforms, you also have the option of using Kyle's puppet module:
https://github.com/ZoneMinder/ZoneMinde ... der-Module
How will that affect an existing 1.25 installation? Upgrade? Or side-by-side install?
Both good questions, and you know I need to ask kylejohnson how to get that specific version of ffmpeg. I thought I knew until I tried. I looked at Kyle's puppet module, and his module is just git clone-ing the latest version. That's not what I expected.

Speaking of the puppet module, I don't see any checks for an existing database so I'm not sure what will happen if there already is a zm database. Sounds like a good thing to test in a vm. I'll give it a shot when I have a moment.

For now, what I recommend you do is take a look at files that make up his module:
https://github.com/kylejohnson/puppet-zoneminder

The files are well organized and easy to read. From it, you can see how he is downloading ffmpeg and which configure options are used during compile. You can also get the same info for the zoneminder source. Make sure and first grab all the prerequisites stated in the zoneminder README.md file.

Re: Now hear this: Please test 1.26-beta.2!

Posted: Tue Aug 27, 2013 8:01 am
by jancolle
knnniggett wrote:
jancolle wrote:Thank you for a fantastic piece of software :-)
I Have just compiled 1.26 beta2 on my Ubuntu 12.04. And upgraded my old 1.25 db to 1.26 without problems.
But after the upgrade I can no longer watch live stream, or recorded streams in the web interface.

I have no problem watching the recorded videos, if I download them to my PC.

I'm getting these lines in the log.:

2013-08-25 16:37:04.099324 zms[24951].ERR-zm_signal.cpp/91 [Signal address is 0x206, no eip]
2013-08-25 16:37:04.103193 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0) [0x7fe6bda9dcb0]]
2013-08-25 16:37:04.103446 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7fe6bc75d425]]
2013-08-25 16:37:04.103707 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libc.so.6(abort+0x17b) [0x7fe6bc760b8b]]
2013-08-25 16:37:04.103939 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libc.so.6(+0x7439e) [0x7fe6bc79b39e]]
2013-08-25 16:37:04.104141 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37) [0x7fe6bc831817]]
2013-08-25 16:37:04.104342 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0) [0x7fe6bc8317e0]]
2013-08-25 16:37:04.104541 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /usr/lib/cgi-bin/nph-zms() [0x4d5cf5]]
2013-08-25 16:37:04.104817 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /usr/lib/cgi-bin/nph-zms() [0x406f08]]
2013-08-25 16:37:04.105107 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7fe6bc74876d]]
2013-08-25 16:37:04.105383 zms[24951].ERR-zm_signal.cpp/123 [Backtrace: /usr/lib/cgi-bin/nph-zms() [0x4073f1]]

Any ideas ?
I may have had a similar issue when I was building the 1.26 rpms. Before I get into what the issue was, try and temporarily turn off authentication and report back wether or not that resolves the issue.

Yes turning off authentication did it. Now streaming is working again.

Re: Now hear this: Please test 1.26-beta.2!

Posted: Tue Aug 27, 2013 12:00 pm
by knight-of-ni
jancolle wrote: Yes turning off authentication did it. Now streaming is working again.
Thanks for the feedback. You helped identify a bug.

I've documented the issue here:
https://github.com/ZoneMinder/ZoneMinder/issues/88

Re: Now hear this: Please test 1.26-beta.2!

Posted: Fri Aug 30, 2013 1:32 pm
by river100
I used the puppet module and it's working but doesn't look like
it has H.264 support.
Will that be added to the puppet module in the future?
As far as the rest of the build I haven't tested much of it yet, but have
mjpeg IP cams, H264 cams and a BTTV capture card so I can check it out.
BTW the puppet module is nice, need to look into that.