Gert-Jan’s ramblings

A weblog with musings from the daily live of Gert-Jan.

Archive for the ‘Ramblings’ Category

Update on using my zm_remote_camera.cpp replacement

Tuesday, December 2nd, 2008

At this moment i see some problems with the rtsp code as used in ffmpeg.

best solution to use rtsp camera’s at the moment is the openRTSP work around:
1. create a pipe ( f.e. mkpipe /tmp/pipes/achterterrein.pipe )
2. change owner of pipe to the user you use for running zoneminder (f.e. chown nobody /tmp/pipes/achterterrein.pipe )
3. use the path to the pipe as input path for the camer, enter camera ip en port number dummy values.
4. start openRTSP to stream video to the pipe

I put my openRTSP commands in the inittab, so they are automatically restarted, check your own camera’s so your buffer is large enough:
g1:3:respawn:/usr/bin/openRTSP -t -b 40000 -v rtsp://x.x.x.x/mpeg4/media.amp > /tmp/pipes/achterterrein.pipe
g2:3:respawn:/usr/bin/openRTSP -t -b 100000 -v rtsp://x.x.x.x/live.sdp > /tmp/pipes/mpeg4.pipe
g3:3:respawn:/usr/bin/openRTSP -t -b 100000 -v rtsp://x.x.x.x/live.sdp > /tmp/pipes/lesruimte.pipe

With this work around I have al my rtsp cameras working like a charm. With openRTSP you can also add username and password  [-u <username> <password>].

camera’s working for me at the moment:
axis 2120,  http://x.x.x.x/mjpg/video.mjpg?resolution=704×576&req_fps=5&.mjpg
axis 2110, http://x.x.x.x/mjpg/video.mjpg?resolution=640×480&req_fps=5&fmt=.mjpg
axis 2100, http://x.x.x.x/mjpg/video.mjpg?resolution=640×480&.mjpg
axis 210,  rtsp://x.x.x.x/mpeg4/media.amp best via openRTSP workaround
Mobotix M1, http://x.x.x.x/cgi-bin/faststream.jpg?.mjpg
Abus T7204 & T7203, rtsp://x.x.x.x/live.sdp best via openRTSP workaround
Sony SNC-M3W, http://x.x.x.x/img/video.asf
AVTECH AVI203 h264 cam, rtsp://x.x.x.x/live/h264 best via openRTSP workaround

Hope this helps
regards,
Gert-Jan

ffmpeg based replacement for zm_remote_camera.cpp in ZoneMinder

Thursday, November 13th, 2008

There are a lot of changes coming in the next release especialy with support for other camera’s in ZoneMinder. But as i am currently using 1.23.3  and i wanted support for mpeg4 camera’s and also less overhead in mjpeg camera’s, I have put together a replacement version of zm_remote_camera.cpp.

With this version i can support 8 ip camera’s with a load of 0.6 where in the previous version i only had 6 camera’s pushing op to a load of 1.5.

You may look at this build as a brute hack, you need to enter the complete camera url in the path setting of the remote camera.The following examples are working for me:

  • rtsp://x.x.x.x/mpeg4/media.amp  (axis,mpeg)
  • http://x.x.x.x/mjpg/video.mjpg (axis,mjpeg)
  • rtsp://x.x.x.x/live.sdp
  • http://x.x.x.x/cgi-bin/faststream.jpg?.mjpg (mobotix,mjpg)

ubuntu gnome nimbus theme for amd64 architecture

Thursday, November 1st, 2007

Today i  tried the opensolaris developer release (project Indiana). It looks very promising, i especially liked the used nimbus theme. I wanted to install this theme in my gutsy, but could not find amd64 packages for it. So i build these packages using the guidelines from Make your ubuntu more beautiful. If you need the packages you can find them here  :

I hope they work for you :)

Yawic

Monday, October 15th, 2007

A lot of my time is currently going to Yawic (Yet another web interface class ). Why ? because i can, and it is a lot of fun !

Site update

Tuesday, May 29th, 2007

Oh, I almost forgot :)

I have upgraded to the latest wordpress, and to test out the widget feature, I switched to another theme. Enjoy !

Nice mobile PC

Tuesday, May 29th, 2007

We finaly got ourselves a mobile PC, and it’s Linux based !

www.pepperpad.com

I cannot really compare it with one of the UMPC’s mentioned below, but it’s really a great device.

phpwebgallery 1.7

Tuesday, May 29th, 2007

Update my phpwebgallery to 1.7, started playing around with the different plugins that are available. RV maps & earth for google maps and google earth integration are really great !.

Also installed Stats_IP_excluder, but only got it to work after changeing the real callback function ( using * in stead of % as wildcard in the config ):

if ($this->my_config['ip_activated'])
{
if( preg_match(“/$Exclusion/”,$_SERVER['REMOTE_ADDR']) ) $do_log = false;
}

UMPC, UltraMobile PC’s overview/compared ? ( Origami project )

Friday, January 12th, 2007

Looking around the web, trying to find a Ultramobile PC, we have a hard time trying to find local reseller, or even some information about what is (or should be) available. Until now we know of the following 5 machines, which are more or less available :

Asus R2H ( intel celereon )
tabletkiosk:

  • eo UMPC i7209 ( intel celeron )
  • eo UMPC i7210 ( intel pentium M )

samsung Q1 (intel celeron ) review

medion Via C7 based umpc announced

utramobilepcs.com has a nice feature list comparison of existing umpc hardware.

Until now i have not found a nice review where the main hardware is compared in such a way you can make a good desision on which one to buy.

phpwebgallery 1.6.0

Sunday, July 9th, 2006

phpwebgallery 1.6.0 is out with some great new features ! I have updated my stats speed patch and removed my bot check, which i plan to implement in another way.

phpwebgallery stats

Sunday, May 14th, 2006

Of course as it happens i should have a typo in my patch :) changed it, cleaned my own code, and now the main stat’s page is also much faster ! I also found different bots changeing the stats of the real viewers (not so many ;) ). Therefore i added a simple check on most seen IP’s from different search bots.
new patch: patch-stats-1.5.2.diff-v2