LibVLC Support For ZoneMinder

Update 20072014 – There are quite a number hits on this page. I’m just wondering if there are specific problems that people are facing and leading to this page. If there is, please leave a comment and discuss. I’m interested to help if I can.

My encounter with ZoneMinder started many years back in 2008/2009 period. I was a poor engineer with little money, so I had to DIY a home surveillance solutions. 😛 ZoneMinder has served me well since. ZoneMinder at that time supported MJPEG and RTSP. Performance was excellent, especially for RTSP. It worked darn well for my Foscam (cheap China camera).

Fast forward to 2014. My Foscam has a resolution of 640 x 480. By today’s standard, it’s seriously outdated. And with that resolution, it’s sucking up 4Mbps of my upstream bandwidth. Not that I didn’t have enough bandwidth, but it would help to be more efficient. After hunting around, I found another brand of cheap China camera (Hisung). Sub-100 bucks for a 720p camera, can’t get a better deal.

So the camera arrived. Manual says it supports RTSP and H.264. Cool…Not. The problem with China products is that, they are good, but they always have to leave out this little bit and become incomplete. The RTSP server on the camera was not sending out proper RTP headers. Found this out after sniffing the traffic with Wireshark. Painful.

And so I’m stuck. ZoneMinder wouldn’t play with this camera. But of course, I’m creative in this aspect. VLC could play the RTSP stream, so I setup VLC as a stream server taking the input from the camera and transcoding it to proper RTSP. Did it work? Of course! But then now comes the most important part. After all the work, I discovered that the 1.27 release for ZoneMinder supports LibVLC, which means that ZoneMinder can make use of LibVLC to read from the camera directly. This release has be to downloaded from the ZoneMinder GIT repository though since it’s not an official release yet. (https://github.com/ZoneMinder/ZoneMinder/tree/v1.27.0). There’s compilation instructions there for different distributions and I compiled mine for Debian.

And viola! LibVLC support!

LibVLC Suport For ZoneMinder

Author: yibi

YiBi's numb :) YiBi writes about anything. Technology, Gossips, Rubbish YiBi's a half f%#k geek :P

2 Replies to “LibVLC Support For ZoneMinder”

  1. Nice Blog I’m embarking on ZM project similar to your… got some chineese camera and had a similar problem to you with frames breaking up so will try your suggestion re frames blank etc. Re vlclib can you advise the settings on the source tab when attempting to use ZM vlclib? Remote method and source path just want to check I’m on right path.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.