Page 3 of 4

Posted: Thu Oct 16, 2008 10:11 pm
by rdmelin
With ZoneMinder-1.24.0-rc1-2668 compiling fails.

Code: Select all

g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline  -frepo -march=i686 -mtune=generic -O2 -pipe -MT zm_monitor.o -MD -MP -MF .deps/zm_monitor.Tpo -c -o zm_monitor.o zm_monitor.cpp
In file included from zm_rtsp.h:30,
                 from zm_remote_camera_rtsp.h:27,
                 from zm_monitor.cpp:34:
zm_sdp.h:222: error: use of enum ‘RTSPLowerTransport’ without previous declaration
make[2]: *** [zm_monitor.o] Error 1
make[2]: Leaving directory `/home/ross/build/zoneminder-1.24.0/src/ZoneMinder-1.24.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ross/build/zoneminder-1.24.0/src/ZoneMinder-1.24.0'
make: *** [all] Error 2

Posted: Fri Oct 17, 2008 10:41 am
by zoneminder
Yes, this is the symptom of compiling 2668 with a slightly older ffmpeg. You will need to get the latest svn one to use here (unless they have changed it all again since yesterday :roll: )

I don't really know how to support multiple svn versions especiallly as that bit of code is lifted from the ffmpeg library itself as it is not exposed by the normal api. I could just end up with lots of different code snippets in there and it would look horrible!

Posted: Fri Oct 17, 2008 7:54 pm
by rdmelin
Yes, this is the symptom of compiling 2668 with a slightly older ffmpeg. You will need to get the latest svn one
OK, I'm up to speed on that now :)

With 2668 I get about the same results as above using montage view, streaming mpeg (swf) with the different browsers except for a bit more detailed error message in syslog. This example is with seamonkey (mozilla)

Code: Select all

Oct 17 12:47:25 archbox httpd: socket_sendto() failed: No such file or directory
Oct 17 12:47:25 archbox httpd: array (   0 =>    array (     'file' => '/home/httpd/html/zm/ajax/stream.php',     'line' => 47,     'function' => 'ajaxError',     'args' =>      array (       0 => 'socket_sendto() failed: No such file or directory',     ),   ),   1 =>    array (     'file' => '/home/httpd/html/zm/index.php',     'line' => 116,     'args' =>      array (       0 => '/home/httpd/html/zm/ajax/stream.php',     ),     'function' => 'require_once',   ), )
Oct 17 12:47:25 archbox zms[31465]: ERR [Can't open /tmp/zmswap-m1/zmswap-q955406/zmswap-i00003.jpg: No such file or directory]
Oct 17 12:47:25 archbox zms[31466]: ERR [Can't open /tmp/zmswap-m2/zmswap-q939074/zmswap-i00004.jpg: No such file or directory]
Oct 17 12:47:26 archbox zms[31465]: ERR [Can't open /tmp/zmswap-m1/zmswap-q955406/zmswap-i00004.jpg: No such file or directory]
Oct 17 12:47:26 archbox zms[31466]: ERR [Can't open /tmp/zmswap-m2/zmswap-q939074/zmswap-i00005.jpg: No such file or directory]
Again only with opera do I get no error message in syslog and streams continue on both monitors.

Posted: Mon Oct 20, 2008 1:46 pm
by zoneminder
I wonder if it's some limitation in FireFox that you might be able to tweak using about:config. It's odd that it works for Opera. Perhaps there's something that limits the number of embedded media sessions.

I will try to reproduce properly later. I got a bit sidetracked with other issues last time.

Posted: Mon Oct 20, 2008 11:31 pm
by rdmelin
I wonder if it's some limitation in FireFox that you might be able to tweak using about:config
I tried toggling some javascript settings in about config with no different result. I'm not sure what else to try.

I also tested with IE6 under wine and it also works properly with no errors in syslog.

Posted: Tue Oct 21, 2008 1:32 am
by cordel
Ross you might try the max server connection settings, I put them in the FAQ a few years back. possible that problem has crept in again.

Posted: Tue Oct 21, 2008 1:03 pm
by rdmelin
you might try the max server connection settings
Yes, I should have said. Those are already set. Just SOP for us, eh? :)

Posted: Sun Oct 26, 2008 3:43 am
by elusive
Hello mates,

I have the same socket errors with build 2668 and it only opens one of my 8 monitors in the montage view (asf stream with cambozola 0.22) :

socket_sendto() failed: No such file or directory
socket_sendto() failed: Connection refused

And that line appears for the working monitor :

[msmpeg4 @ 0xf62dbb0]warning, clipping 1 dct coefficients to -127..127

I have big problems with the swf streams too, sometimes it shows 6 monitors on 8 and sometimes none without doing any changes in the settings, with single views I have the same monitors working than in the montage view (some never working with exactly the same settings than the working ones).

I done what is explained for the firefox max connexions and have the same results with IE7, with the swf stream my firefox is crashing after a few seconds in the montage view (download never finishing) and then apache stops answering, I need to kill firefox from the processes and then apache answers again.

In /tmp/ I can see the .sock files and the zmswap folders.

My ffmpeg infos :

FFmpeg version SVN-r15708, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --disable-debug --enable-gpl --enable-libdc1394 --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-x11grab --prefix=/usr/local
libavutil 49.12. 0 / 49.12. 0
libavcodec 52. 1. 0 / 52. 1. 0
libavformat 52.23. 1 / 52.23. 1
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Oct 25 2008 18:17:56, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
FFmpeg SVN-r15708
libavutil 49.12. 0 / 49.12. 0
libavcodec 52. 1. 0 / 52. 1. 0
libavformat 52.23. 1 / 52.23. 1
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
libpostproc 51. 2. 0 / 51. 2. 0

Please let me know if I can help tracing more infos about this or if you have any suggestions about a way to resolve it, then I'll report my results.

Thank a lot for your great job, I wish all the best to ZoneMinder ! :D

Posted: Tue Oct 28, 2008 2:40 pm
by zoneminder
Does it work if you use just jpeg streaming? Does it work for you with swf format in previous versions?

Also, do you have compact montage option checked? If not then try that, it should cut down on the overhead of trying to work capture rates etc.

Posted: Tue Oct 28, 2008 7:39 pm
by rdmelin
Does it work if you use just jpeg streaming?
Yes mjpeg streaming works. I haven't found any issues there.
Does it work for you with swf format in previous versions?
Yes, no problems streaming swf with 1.23.3
Also, do you have compact montage option checked?
I didn't but having tried that now it doesn't make any difference. Still the same errors.

Phil, I like using swf because the system, running both the server and the browser shows significantly less load than using mjpeg. mjpeg streaming is problematic with current firefox, and nearly everyone has flash plugin installed. I hacked my 1.23.3 system to javascript reload the watch and montage views every 5 minutes to resolve the problem with the stream falling behind real time and eventually crashing the system. Maybe you could consider this as a selectable feature?

Posted: Wed Oct 29, 2008 11:16 pm
by zoneminder
I have put up a test 2679 version which you might want to try. It does not try and create stream buffers in montage views so starts up much quicker and has less overhead. The socket code is also a bit more robust and reports better (if you have firebird installed). The is also a fix to the cycle view.

Here it works a lot better but I still have an issue with one out of six cameras rarely streaming. It's always the same one and the apache log show the zms process being terminated which really only apache can do. I don't know why it would kill the cgi though.

Anyway have a go and let me know. Please check you httpd error log and your messages log as the error usually relate to each other if they occur.

Posted: Thu Oct 30, 2008 1:45 am
by elusive
Hello Phil,

I done a lot more tests today with the 2678 release, I will try to give you as much details as possible :


Pentium D 2.00 GHz with 2 Go RAM
PV-149 (8 ports 120 FPS) with 8 CCTV Cameras (*)

(*) Despite the card specifications from Bluecherry the cameras are working at maximum 4 FPS (8 when connecting only 4).


Ubuntu Server Hardy x86 - All upgrades done.

ZoneMinder 1.24.0.2678
Jpeg SIMD for MMX
Cambozola 0.22
FFmpeg SVN-r15742

Firefox 2.0.0.17 (config for max connexions done) and Internet Explorer 7 for the remote client tests -> Windows XP


/etc/sysctl.conf :

kernel.shmall = 134217728
kernel.shmmax = 134217728


---

jpeg stream (cambozola enabled) :

- Invividual stream view -> ok with Firefox and IE7.
- Montage view -> position bug in Default layout with IE7 / all cameras correcty displayed with both Firefox and IE7 / the window freezes after 10 seconds with both Firefox and IE7 (*).

(*) When it freezes I have to completly close Firefox or IE7, without doing this I don't have any answers from the ZoneMinder web interface ... With Firefox I have to kill it from the process list after having closed it.


asf stream (cambozola disabled) :

- Invividual stream view -> ok with IE7 and Firefox but it crashes with Firefox when I close the window (*).
- Montage view -> position bug in Default layout with IE7 / only one camera is displayed with both Firefox and IE7 (**) / Firefox crashes after closing the window (no more answers until I kill Firefox from the process list).

(*) I receive that error : Windows Media Player Plug-in Dynamic Link Library done an illegal operation.
(**) I can see that error in the bottom left of the page with IE7 (nothing with Firefox but same problem) : "'GetElement(...)' is null or not an object / Line 43".


swf stream (cambozola disabled) :

- Invividual stream view -> strangly there is only some random cameras working with Firefox and IE7 (*).
- Montage view -> position bug in Default layout with IE7 / exactly the same problem than for the individual view.

(*) sometimes none working, sometimes only one, sometimes 3 and sometimes 6 ... all this in the exact same conditions.


Another small error I saw in the filters section : When you create a new filter and go to save it, it displays "Notice: Undefined variable: filterData in /srv/www/zm/skins/classic/views/filtersave.php on line 77 />".

Moreover I tried to configure "OR" conditions in a filter which would need "(" and "((" but after saving it, the ")" and "))" have disapeared and so the conditions I tried can't work.


The jpeg streams where all working very fine (individual and montage view) with zoneMinder 1.23.3 but didn't tried with mpeg streams ... I will try it as soon as possible.


I tried to enable the "compact montage view" case but unfortunaly no differences.

For all these tests I configured the 8 CCTV cameras wih Max FPS @ 1 and Resolution @ 352x288 because the intenet upload bandwidth at the server side is only 512K (about 40 ko/sec).


I would like to add a last comment which is really not a critic but could maybe give new ideas : the location where is that test server was using an old and poor DVR server before, despite their small upload bandwidth the 8 cameras where working quite fast (about the same speed than when the swf streams are working with ZoneMinder) from the web side with an unknown ActiveX video stream plugin just named "WebClient 1.0".

I think the server owner would agree if you would like to make some remote debug tests for the Beta 1.24.0 ... if it helps and interests you I'll ask him and could create you the needed logins.


Thanks again for all your great work ! :)

Elusive

PS: Just saw your new 2679 release, I will try it before the 1.23.3 and I'll let you know the differences I saw about the problems I exposed.

I hope that my English is not too bad, I'm French and done my best :roll:

Posted: Fri Oct 31, 2008 1:46 pm
by rdmelin
I have put up a test 2679 version which you might want to try.
I can't find 2679. Is there a link? Or was this a typo? I tested with 2678 and still have the same socket errors with firefox and seamonkey. Konqueror, Opera, IE6 are working with no errors streaming 2 cameras using swf.
The socket code is also a bit more robust and reports better (if you have firebird installed)
I don't know what firebird is. If it's a debug tool or extention I should get it. Can you give me a link?

Delete filter bug

Posted: Sun Nov 02, 2008 4:14 am
by rdmelin
Using 2678 I found that the delete button in the ZM - Event Filter view doesn't actually delete the selected filter. The confirm "Delete saved filter '******' popup appears but after selecting "OK" the filter is not deleted.

Posted: Fri Nov 07, 2008 12:06 pm
by zoneminder
Yikes, sorry about that :oops:

Forgot to upload, should be there now.