Page 1 of 1

Using Zoneminder to restream rstp as mjpeg

Posted: Wed Jun 01, 2016 8:15 am
by hasiehasie
Hi Guys

I am running Zoneminder on Raspbian Jessie. WOrks very well.

I have another home automation system application that I want to embed the video to, but it only supports MJPEG streams.

Is there any way to use zoneminder to take the rstp stream its reading from and restream it as a MJPEG stream?

Or anybody have an idea of how I could accomplish this?

Many Thanks

Kind Regards

Re: Using Zoneminder to restream rstp as mjpeg

Posted: Wed Jun 01, 2016 12:39 pm
by iconnor
Yeah ZM could be used for this. Might not be the best tool for the job.

Basically you setup ZM with the rtsp monitor, and then use the stream provided by zm as your mjpeg source. Right click the image in ZM to get the exact url, but should be something like /zm/cgi-bin/zms?mode=jpeg

Re: Using Zoneminder to restream rstp as mjpeg

Posted: Wed Jun 01, 2016 3:41 pm
by hasiehasie
Thanks alot for the help. Will try that tonight.

What do you think would be the right tool for the job? I tried streaming through ffmpeg according to some online info but dont understand it so well so havent gotten it working yet, hence me asking about zm.

Any other methods you maybe can suggest?

Thanks

Re: Using Zoneminder to restream rstp as mjpeg

Posted: Sun Jun 05, 2016 10:28 pm
by hasiehasie
I tried using the method above but it does not work. Any other ideas maybe?

Many thanks

Re: Using Zoneminder to restream rstp as mjpeg

Posted: Sun Jun 05, 2016 11:28 pm
by bbunge
View a monitor
Right click in the image and select View Image
In the resulting browser pop up select the URL and use that. Should look like:

http://192.168.3.245/zm/cgi-bin/nph-zms ... 1465169069

If you have security set in ZM, create a non privileged user that can view streams, log in as that user and do the above procedure.

bb