[SOLVED] zoneminder Event view broken in Eyezm

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[SOLVED] zoneminder Event view broken in Eyezm

Postby freetibet » Jun 15th, '12, 15:43

Event view broken on eyezm iPhone app.
Works in a web browser…
Anyone seen this ?

Thanks...
Last edited by freetibet on Jun 17th, '12, 19:39, edited 2 times in total.
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: zoneminder Event view broken

Postby barjac » Jun 15th, '12, 23:25

Are you using the version from tainted repo?
If not try upgrading to it by enabling the tainted repo and installing it.
No idea if this will help, but it may be video codec related.
Add this icon to your KDE desktop - save as "About.desktop" http://pastebin.com/raw.php?i=X10X1Ype
User avatar
barjac
 
Posts: 193
Joined: Apr 4th, '11, 10:26
Location: Rossendale UK

Re: zoneminder Event view broken

Postby freetibet » Jun 15th, '12, 23:27

barjac wrote:Are you using the version from tainted repo?
If not try upgrading to it by enabling the tainted repo and installing it.
No idea if this will help, but it may be video codec related.

Tainted Repro ?
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: zoneminder Event view broken

Postby barjac » Jun 15th, '12, 23:50

MCC > configure media sources for install and update.
Check the boxes against 'Tainted Release' and 'Tainted Updates'
The version of ZoneMinder in that repository has more codecs available as it is built against the Tainted version of ffmpeg.
http://www.mageia.org/en/1/notes/#install
Add this icon to your KDE desktop - save as "About.desktop" http://pastebin.com/raw.php?i=X10X1Ype
User avatar
barjac
 
Posts: 193
Joined: Apr 4th, '11, 10:26
Location: Rossendale UK

Re: zoneminder Event view broken

Postby freetibet » Jun 16th, '12, 15:10

barjac wrote:MCC > configure media sources for install and update.
Check the boxes against 'Tainted Release' and 'Tainted Updates'
The version of ZoneMinder in that repository has more codecs available as it is built against the Tainted version of ffmpeg.
http://www.mageia.org/en/1/notes/#install

Oh does this also install the infamous ffmpeg with x264 etc that was so difficult to do on Debian ?
Can I reuse my database ?
Will this create an issue with symlinks to my chosen html / zm partition

see this thread….

viewtopic.php?f=8&t=2763&p=21043#p21043

Thanks...
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: zoneminder Event view broken

Postby barjac » Jun 16th, '12, 17:52

freetibet wrote:Oh does this also install the infamous ffmpeg with x264 etc that was so difficult to do on Debian ?
Yes libx264 is linked into the tainted ffmpeg.
Can I reuse my database ?
Yes it should not be touched.
Will this create an issue with symlinks to my chosen html / zm partition
I doubt it, but check that the symlink has not been overwritten after updating. Using:-
Code: Select all
ls -l /var/www/html/

If it is a directory and not a link then re-name it and re-create the symlink as previously.
Only create the symlink - don't copy the new /zm to your home or you will overwrite your saved events.
If there is nothing of value saved, then just do as before and copy over the new directory (if there is one ;)
Add this icon to your KDE desktop - save as "About.desktop" http://pastebin.com/raw.php?i=X10X1Ype
User avatar
barjac
 
Posts: 193
Joined: Apr 4th, '11, 10:26
Location: Rossendale UK

Re: zoneminder Event view broken

Postby freetibet » Jun 16th, '12, 17:56

barjac wrote:
freetibet wrote:Oh does this also install the infamous ffmpeg with x264 etc that was so difficult to do on Debian ?
Yes libx264 is linked into the tainted ffmpeg.
Can I reuse my database ?
Yes it should not be touched.
Will this create an issue with symlinks to my chosen html / zm partition
I doubt it, but check that the symlink has not been overwritten after updating. Using:-
Code: Select all
ls -l /var/www/html/

If it is a directory and not a link then re-name it and re-create the symlink as previously.
Only create the symlink - don't copy the new /zm to your home or you will overwrite your saved events.
If there is nothing of value saved, then just do as before and copy over the new directory (if there is one ;)


OK Thanks.
So to update this copy of Zoneminder I simply enable the other repository + reinstall zone minder ?
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: zoneminder Event view broken

Postby barjac » Jun 16th, '12, 23:51

Just select the tainted version for install - it will automatically replace the current version as tainted takes priority over core if the package versions are the same and tainted is enabled.
Add this icon to your KDE desktop - save as "About.desktop" http://pastebin.com/raw.php?i=X10X1Ype
User avatar
barjac
 
Posts: 193
Joined: Apr 4th, '11, 10:26
Location: Rossendale UK

Re: zoneminder Event view broken

Postby freetibet » Jun 17th, '12, 00:40

barjac wrote:Just select the tainted version for install - it will automatically replace the current version as tainted takes priority over core if the package versions are the same and tainted is enabled.

Ok One last problem…
VNC or Firefox seem to be frozen…
The server is fine I can see the camera's but when I VNC in it's frozen… how can I quit Firefox using SSH ?
I don't want to restart the machine as I will lose my VNC connection…
Thanks...
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: zoneminder Event view broken

Postby barjac » Jun 17th, '12, 00:45

Code: Select all
su
pkill firefox
Add this icon to your KDE desktop - save as "About.desktop" http://pastebin.com/raw.php?i=X10X1Ype
User avatar
barjac
 
Posts: 193
Joined: Apr 4th, '11, 10:26
Location: Rossendale UK

Re: zoneminder Event view broken

Postby freetibet » Jun 17th, '12, 00:51

barjac wrote:
Code: Select all
su
pkill firefox

Wow that was easy…
Odd though I logged in and it was trying to shutdown so I stopped that…
Thanks…
Easy kill there.
Will now download zoneminder and report back...
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: zoneminder Event view broken

Postby freetibet » Jun 17th, '12, 01:19

barjac wrote:MCC > configure media sources for install and update.
Check the boxes against 'Tainted Release' and 'Tainted Updates'
The version of ZoneMinder in that repository has more codecs available as it is built against the Tainted version of ffmpeg.
http://www.mageia.org/en/1/notes/#install

Hi,
I installed the Myth TV plugin with codecs and the Tainted zone minder.
All went well the new system was up and running in seconds.
However event view is still broken in eyeZM and the server does not stream h264 video… (tools not available eyeZM says) so I guess ffmpeg is not the way it likes it, I can compile that myself I guess but that does not explain the broken event feed in eyeZM that does not require ffmpeg or anything really possibly httpsegmenter ? is that installed, I did not see it listed and if I go…


Code: Select all
[root@localhost ~]# which httpsegmenter
which: no httpsegmenter in (/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin)


it does not show up.. I thought that was a pre-requisite of Zoneminder…

Also any attempt at changing the " V4L2_CAPTURE_FIELDS " to anything other than 0 crashes the camera feeds but not zoneminder.
So nothing has changed.

Thanks for the help not sure if these are general issues or just me… however I've installed this about 6 times and it seems like this every time…
Really happy to quietly work through this stuff if it helps iron out any distro bugs…

If it's just me would love some continued help...
Last edited by doktor5000 on Jun 17th, '12, 14:35, edited 1 time in total.
Reason: added code tags, to improve on clarity
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: zoneminder Event view broken

Postby barjac » Jun 17th, '12, 01:29

Is it that the images don't display - or is there an issue with the rest of the page?
Have you looked at the logs?
EDIT ...and enabled EYEZM_DEBUG

EDIT 2 I never heard of httpsegmenter, but Googling it, the references to it seem to be related to 1.24.x, so maybe it is not required now that eyeZM is part of zm?
Add this icon to your KDE desktop - save as "About.desktop" http://pastebin.com/raw.php?i=X10X1Ype
User avatar
barjac
 
Posts: 193
Joined: Apr 4th, '11, 10:26
Location: Rossendale UK

Re: zoneminder Event view broken

Postby freetibet » Jun 17th, '12, 03:06

the event stream does not play.
live events do…

doing cat /var/log/zm/zm_xml.log

you can see the error… mpeg4 codec is not compiled into zoneminder with the script as is (i Guess) since that is where the functionality would come from I think…so you can view stream as they come in on mjpeg but events need mpeg4 or h264 as compiled using instructions from eyezm web site. However mpeg4 usually works fine no extra installs needed ….
It would be really nice to get this resolved and possibly get the FFMPEG side working as well (but that is not so important).
Thanks...

Code: Select all
[Sun, 17 Jun 2012 02:00:22 +0100] XML_LOG (NOTICE): (88.***.***.***) GET: /zm//?skin=xml&protoVer=2&action=none&numEvents=10&pageOff2=0&pageOff3=0&pageOff4=0&pageOff6=0&pageOff7=0&pageOff8=0 - eyeZm 1.3
[Sun, 17 Jun 2012 02:00:23 +0100] XML_LOG (NOTICE): (88.***.***.***)  GET: /zm//?skin=xml&view=actions&action=vframe&eid=1396&frame=38&protoVer=2 - eyeZm 1.3
[Sun, 17 Jun 2012 02:00:26 +0100] XML_LOG (NOTICE): (88.***.***.***)  GET: /zm//?skin=xml&view=actions&action=vevent&eid=1396&protoVer=2 - eyeZm 1.3
[Sun, 17 Jun 2012 02:00:26 +0100] XML_LOG (ERROR): FFMPEG not installed, accessible in path/ZM_PATH_FFMPEG, or doesn't support mpeg4
Last edited by doktor5000 on Jun 17th, '12, 14:37, edited 1 time in total.
Reason: added code tags, to improve on clarity, removed fullquote
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: zoneminder Event view broken

Postby barjac » Jun 17th, '12, 11:23

ffmpeg is certainly linked into the tainted version, unless we have a major problem.
See the conditional in the configure here:-
http://svnweb.mageia.org/packages/cauld ... iew=markup

Just to be sure you are running the tainted version:-
Code: Select all
rpm -q zoneminder

This should return "zoneminder-1.25.0-10.mga2.tainted"

Now look in console -> options -> image
Is PATH_FFMPEG set? It should be /usr/bin/ffmpeg

I'm guessing here but maybe you need to add mpeg4 to the list in FFMPEG_FORMATS ?
Add this icon to your KDE desktop - save as "About.desktop" http://pastebin.com/raw.php?i=X10X1Ype
User avatar
barjac
 
Posts: 193
Joined: Apr 4th, '11, 10:26
Location: Rossendale UK

Re: zoneminder Event view broken

Postby freetibet » Jun 17th, '12, 11:50

:oops:

thanks…

a couple of extra things…

probably should move them to other threads…

1/ de interleaving causes the server to crash the camera feed… anything but 0 in V4L2_CAPTURE_FIELDS fails.

2/ x264 is not compiled into ffmpeg...


it is showing as

[root@localhost ~]# ffmpeg -codecs | egrep 'libx264'
ffmpeg version 0.10.3 Copyright (c) 2000-2012 the FFmpeg developers
built on May 9 2012 21:17:52 with gcc 4.6.3
configuration: --prefix=/usr --enable-shared --libdir=/usr/lib64 --shlibdir=/usr/lib64 --incdir=/usr/include --disable-stripping --enable-postproc --enable-gpl --enable-pthreads --enable-libtheora --enable-libvorbis --disable-encoder=vorbis --enable-libvpx --enable-x11grab --enable-runtime-cpudetect --enable-libdc1394 --enable-libschroedinger --enable-librtmp --enable-libspeex --enable-libfreetype --enable-libnut --enable-libgsm --enable-libcelt --enable-libopencv --enable-libopenjpeg --enable-libxavs --enable-frei0r --enable-libmodplug --enable-libass --enable-gnutls --enable-libcdio --enable-libpulse --enable-libdirac --enable-libv4l2 --disable-decoder=aac --disable-encoder=aac
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100


but ideally for eyezm it should be…

FFmpeg version git-svn-r25886, Copyright (c) 2000-2010 the FFmpeg developers

configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab --enable-shared
libavutil 50.34. 0 / 50.34. 0
libavcore 0.15. 0 / 0.15. 0
libavcodec 52.98. 0 / 52.98. 0
libavformat 52.87. 1 / 52.87. 1
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.68. 0 / 1.68. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
EV libx264 libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
Last edited by doktor5000 on Jun 17th, '12, 14:31, edited 1 time in total.
Reason: added code tags, to improve on clarity
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: zoneminder Event view broken

Postby barjac » Jun 17th, '12, 12:39

What's your output of
Code: Select all
rpm -q ffmpeg

it should be tainted and it should have been pulled in with the update - if not it may be a packaging problem.

I suspect you are using ffmpeg from core, my system currently shows:-
Code: Select all
ffmpeg version 0.10.3 Copyright (c) 2000-2012 the FFmpeg developers
  built on May  9 2012 21:26:35 with gcc 4.6.3
  configuration: --prefix=/usr --enable-shared --libdir=/usr/lib64 --shlibdir=/usr/lib64 --incdir=/usr/include --disable-stripping --enable-postproc --enable-gpl --enable-pthreads --enable-libtheora --enable-libvorbis --disable-encoder=vorbis --enable-libvpx --enable-x11grab --enable-runtime-cpudetect --enable-libdc1394 --enable-libschroedinger --enable-librtmp --enable-libspeex --enable-libfreetype --enable-libnut --enable-libgsm --enable-libcelt --enable-libopencv --enable-libopenjpeg --enable-libxavs --enable-frei0r --enable-libmodplug --enable-libass --enable-gnutls --enable-libcdio --enable-libpulse --enable-libdirac --enable-libv4l2 --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 [color=#FF4040]--enable-libx264[/color] --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libxvid
  libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
Hyper fast Audio and Video encoder


EDIT Please don't quote the whole of my post as it makes following the thread difficult ;)
Last edited by doktor5000 on Jun 17th, '12, 14:34, edited 2 times in total.
Reason: added code tags, to improve on clarity
Add this icon to your KDE desktop - save as "About.desktop" http://pastebin.com/raw.php?i=X10X1Ype
User avatar
barjac
 
Posts: 193
Joined: Apr 4th, '11, 10:26
Location: Rossendale UK

Re: zoneminder Event view broken

Postby freetibet » Jun 17th, '12, 12:44

barjac wrote:EDIT Please don't quote the whole of my post as it makes following the thread difficult ;)


That is really great.
Is there anything I can do to pull this in ?
Also The developer of eyezm should know about this Mageia distro, it would cut their support by 99%
Thanks.
Last edited by doktor5000 on Jun 17th, '12, 14:33, edited 1 time in total.
Reason: removed fullquote
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: zoneminder Event view broken

Postby barjac » Jun 17th, '12, 12:52

With tainted repos enabled - just
Code: Select all
urpmi ffmpeg

should do it.
How exactly did you install the tainted version of zoneminder, as this should have been installed with it unless I have missed something in the package?
Add this icon to your KDE desktop - save as "About.desktop" http://pastebin.com/raw.php?i=X10X1Ype
User avatar
barjac
 
Posts: 193
Joined: Apr 4th, '11, 10:26
Location: Rossendale UK

Re: zoneminder Event view broken

Postby freetibet » Jun 17th, '12, 13:09

barjac wrote:EDIT Please don't quote the whole of my post as it makes following the thread difficult ;)


That is really great.
Is there anything I can do to pull this in ?
Also The developer of eyezm should know about this Mageia distro, it would cut their support by 99%
Thanks.
Last edited by doktor5000 on Jun 17th, '12, 14:35, edited 2 times in total.
Reason: removed fullquote
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: zoneminder Event view broken

Postby freetibet » Jun 17th, '12, 13:12

barjac wrote:How exactly did you install the tainted version of zoneminder, as this should have been installed with it unless I have missed something in the package?


thanks that was easy..

Code: Select all
[root@localhost ~]# ffmpeg -codecs | egrep 'libx264'
ffmpeg version 0.10.3 Copyright (c) 2000-2012 the FFmpeg developers
  built on May  9 2012 21:26:35 with gcc 4.6.3
  configuration: --prefix=/usr --enable-shared --libdir=/usr/lib64 --shlibdir=/usr/lib64 --incdir=/usr/include --disable-stripping --enable-postproc --enable-gpl --enable-pthreads --enable-libtheora --enable-libvorbis --disable-encoder=vorbis --enable-libvpx --enable-x11grab --enable-runtime-cpudetect --enable-libdc1394 --enable-libschroedinger --enable-librtmp --enable-libspeex --enable-libfreetype --enable-libnut --enable-libgsm --enable-libcelt --enable-libopencv --enable-libopenjpeg --enable-libxavs --enable-frei0r --enable-libmodplug --enable-libass --enable-gnutls --enable-libcdio --enable-libpulse --enable-libdirac --enable-libv4l2 --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libx264 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libxvid
  libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
  EV    libx264         libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10

h264 still not working doesn't ffmpeg need --enable-nonfree for eyezm ?

ref zone minder install I just used the package manager and installed it… in the gui …

it says it installed possibly I could check is there an easy way to check the zone minder distro ?
Last edited by doktor5000 on Jun 17th, '12, 14:37, edited 1 time in total.
Reason: added code tags, to improve on clarity
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: zoneminder Event view broken

Postby barjac » Jun 17th, '12, 13:36

EDIT to check that you have the tainted zoneminder
Code: Select all
rpm -q zoneminder

As posted earlier - should return zoneminder-1.25.0-10.mga2.tainted

h264 still not working doesn't ffmpeg need --enable-nonfree for eyezm ?

Hmm.. I have no idea about the requirements of eyeZM.
We can possibly do some testing - I will try to build a package of tainted ffmpeg with --enable-nonfree for you to test.
Are you using x86_64 or i586 ?
Last edited by barjac on Jun 17th, '12, 13:45, edited 1 time in total.
Add this icon to your KDE desktop - save as "About.desktop" http://pastebin.com/raw.php?i=X10X1Ype
User avatar
barjac
 
Posts: 193
Joined: Apr 4th, '11, 10:26
Location: Rossendale UK

Re: zoneminder Event view broken

Postby freetibet » Jun 17th, '12, 13:40

x86_64
http://eyezm.com/help/
It's a great App works like magic on iPhone and iPad.
Thanks.
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: zoneminder Event view broken

Postby barjac » Jun 17th, '12, 13:48

Great - glad it's x86_64 makes life easier ;)
Note my edit above.

I'll try to do it sometime later today.
Add this icon to your KDE desktop - save as "About.desktop" http://pastebin.com/raw.php?i=X10X1Ype
User avatar
barjac
 
Posts: 193
Joined: Apr 4th, '11, 10:26
Location: Rossendale UK

Re: zoneminder Event view broken

Postby freetibet » Jun 17th, '12, 13:55

barjac wrote:Great - glad it's x86_64 makes life easier ;)
Note my edit above.

I'll try to do it sometime later today.


Great…
also it requires…

3. HTTPSEGMENTER

Required for live-streaming to your device, the HTTP segmenter is used to split the live feed into HTML-5 comforming video chunks.
To install, download the latest eyeZm Plugin (Files Page), and extract. Also extract the httpsegmenter.tar.bz2 archive.
HTTP Segmenter requires that FFMPEG be built with shared libraries. Providing this was done in step 1, to install, simple run a make; make install in the httpsegmenter directory.

By default, the httpsegmenter is intalled in /usr/local/bin. Edit the makefile to change this location. Whichever location it is installed in must be accessible by Apache.

having trouble with make…

Code: Select all
[root@localhost zm_xml_p2fs3]# urpmq -a gcc
gcc
gcc
[root@localhost zm_xml_p2fs3]# make; make install
-bash: make: command not found
-bash: make: command not found
[root@localhost zm_xml_p2fs3]# rpm -qa | grep gcc
libgcc1-4.6.3-2.mga2
[root@localhost zm_xml_p2fs3]# urpmq -a gcc
gcc
gcc
[root@localhost zm_xml_p2fs3]# gcc
-bash: gcc: command not found
[root@localhost zm_xml_p2fs3]# urpmq -a gcc-c++
gcc-c++
gcc-c++
[root@localhost zm_xml_p2fs3]# make; make install
-bash: make: command not found
-bash: make: command not found
[root@localhost zm_xml_p2fs3]# make
-bash: make: command not found
[root@localhost zm_xml_p2fs3]#

and yes I have the tainted distro..

Code: Select all
[root@localhost zm_xml_p2fs3]# rpm -q zoneminder
zoneminder-1.25.0-10.mga2.tainted
Last edited by doktor5000 on Jun 17th, '12, 14:38, edited 1 time in total.
Reason: added code tags, to improve on clarity
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Next

Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest

cron