Matroska (.mkv) Event Storage + Axis RTSP/H264 fixes

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
warmcat
Posts: 4
Joined: Tue Sep 28, 2010 11:45 am

Matroska (.mkv) Event Storage + Axis RTSP/H264 fixes

Post by warmcat » Tue Sep 28, 2010 12:41 pm

Hi, all!

I released support for Matroska (.mkv) Events storage.

By the way all works fine, exept Timeline and single Image view ( I'm not expert in web, and so it is difficult for me to understand how to do this)
New option, ZM_USE_MKV_STORAGE, which enables this feature is added You will not loose any old images when this option is enabled (when no .mkv file is found Eventstream will fall back to previous method of view)
Plus there is some patches for proper handling RTSP protocol (fragmentation fixes and so on...)

But !!! Patch is about 130k (unzipped) in size and I'm interesting where to place it... :)

If there is interest in it tell me...

User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya » Wed Sep 29, 2010 1:44 am

box.net is a good choice.

warmcat
Posts: 4
Joined: Tue Sep 28, 2010 11:45 am

Patch

Post by warmcat » Wed Sep 29, 2010 7:54 am

Here is the patch:

http://www.box.net/shared/cquevqnorf

Patch is against original Zoneminder 1.24.2 taken from Debian repository

User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya » Wed Sep 29, 2010 6:32 pm

I will have to give this a try this week end.

warmcat
Posts: 4
Joined: Tue Sep 28, 2010 11:45 am

Post by warmcat » Thu Sep 30, 2010 7:48 am

kingofkya wrote:I will have to give this a try this week end.
After patch applying you must update your mysql Zoneminder database by running
mysql zm < zm_update-1.24.2.sql
from db directory

User avatar
zoneminder
Site Admin
Posts: 5220
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder » Fri Oct 08, 2010 10:40 pm

Hi,

I have downloaded the patch and will check and apply it over the weekend.

Thanks
Phil

Pada
Posts: 69
Joined: Fri Jul 30, 2010 12:29 am

Post by Pada » Fri Oct 22, 2010 4:45 pm

Impressive work warmcat.

Unfortunately I don't have an x264 capable camera connected to my servers atm so I can't test the patch, but the modifications in the patch did impress me.

I've tried to get x264 streaming going with ZM last night, but I was unsuccessful to get anything more than the first frame to play in vlc/mplayer.
I've tried to add the x264 medium + main ffmpeg presets to the VideoStream::SetupCodec function in zm_mpeg.cpp - see the values that I've used: http://stackoverflow.com/questions/3553 ... codec-x264

What I did manage to do was to pipe zms output to ffmpeg, which then encoded it into x264, which worked 100% in VLC but the CPU usage was quite high.

grmela
Posts: 7
Joined: Thu Dec 31, 2009 3:05 pm
Location: Brno, Czechia (EU)
Contact:

Post by grmela » Tue Nov 09, 2010 9:07 am

Any news regarding this patch? We're really looking forward to implementing this because some of our clients got SVGA or even 720p Axis cameras and saving the images in MJPEG uses a lot of disk space...not mentioning high network load with higher frame rates.

Stability and functionality is our major concern so we cannot apply the patch before the issues are fixed (some of our clients use the Timeline view).

warmcat
Posts: 4
Joined: Tue Sep 28, 2010 11:45 am

Post by warmcat » Wed Nov 10, 2010 8:45 am

grmela wrote:Any news regarding this patch? We're really looking forward to implementing this because some of our clients got SVGA or even 720p Axis cameras and saving the images in MJPEG uses a lot of disk space...not mentioning high network load with higher frame rates.

Stability and functionality is our major concern so we cannot apply the patch before the issues are fixed (some of our clients use the Timeline view).
I add some modifications in code of zm to handle timeline and single image view, but find some problems in viewing this pages with Chromium browser
Problem is with assignment initial values to variables in javascripts (only in Chromium)
Now I don't know how to solve this problem and though I deside to make a pause in work on this project

grmela
Posts: 7
Joined: Thu Dec 31, 2009 3:05 pm
Location: Brno, Czechia (EU)
Contact:

Post by grmela » Wed Nov 10, 2010 9:34 am

Chromium doesn't bother me much...maybe except the iPhone functionality. Have you tried it in Safari?

Most of our users use IE or Firefox so if this is the only problem with the patch, I would try it on our test install to see how well it works with our Axis Q6032-E. Could you please upload the updated version somewhere so I can test it out?

chriswiggins
Posts: 18
Joined: Fri Sep 28, 2012 2:52 am

Re: Matroska (.mkv) Event Storage + Axis RTSP/H264 fixes

Post by chriswiggins » Fri Sep 28, 2012 2:53 am

Has anyone looked at patching this for 1.25.0? Very interesting addition and am very keen to get it to work.

(Sorry for digging up an old thread)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest