Using Zoneminder to restream rstp as mjpeg

Forum for questions and support relating to the 1.29.x releases only.
Locked
hasiehasie
Posts: 5
Joined: Tue Apr 19, 2016 11:12 am

Using Zoneminder to restream rstp as mjpeg

Post 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
User avatar
iconnor
Posts: 3276
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Using Zoneminder to restream rstp as mjpeg

Post 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
hasiehasie
Posts: 5
Joined: Tue Apr 19, 2016 11:12 am

Re: Using Zoneminder to restream rstp as mjpeg

Post 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
hasiehasie
Posts: 5
Joined: Tue Apr 19, 2016 11:12 am

Re: Using Zoneminder to restream rstp as mjpeg

Post by hasiehasie »

I tried using the method above but it does not work. Any other ideas maybe?

Many thanks
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Using Zoneminder to restream rstp as mjpeg

Post 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
Locked