Can I Stream ZM video?

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
Rayj00
Posts: 39
Joined: Mon Jan 09, 2023 3:56 pm

Can I Stream ZM video?

Post by Rayj00 »

Can I send the camera output to a remote internet webpage?
User avatar
burger
Posts: 433
Joined: Mon May 11, 2020 4:32 pm

Re: Can I Stream ZM video?

Post by burger »

See: https://wiki.zoneminder.com/External_Live_Stream for one way to do this.

The API method is recommended for security purposes. I'd say if it's a public webpage you might want to proxy it,, and or rewrite the URL to hide any token.
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
Rayj00
Posts: 39
Joined: Mon Jan 09, 2023 3:56 pm

Re: Can I Stream ZM video?

Post by Rayj00 »

Thanks for responding.

I'll be using Apache2 for serving up webpages.

Some of the other things in the link you provided are kinda strange. I'm not a website developer, per-se. I'm more a dabbler.
My Ring service just hiked their price. It's not a game stopper, but I am experimenting to host my own infrastructure using ZM.

I have a single IP camera to experiment with. Hopefully I'll get a couple more.

Can i use you for questions about the External_Live_Stream document.

Thanks,
Ray
User avatar
burger
Posts: 433
Joined: Mon May 11, 2020 4:32 pm

Re: Can I Stream ZM video?

Post by burger »

No worries, ask away. I put that together although it is adapted from the official docs (with some changes).
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
Rayj00
Posts: 39
Joined: Mon Jan 09, 2023 3:56 pm

Re: Can I Stream ZM video?

Post by Rayj00 »

What are the "official documents" you mention?
User avatar
burger
Posts: 433
Joined: Mon May 11, 2020 4:32 pm

Re: Can I Stream ZM video?

Post by burger »

I'm referring to the instructions for getting a token, which are from: https://zoneminder.readthedocs.io/en/stable/api.html

What needs to be done is some work on setting up a proper proxy or rewrite so that you can put these streams on an internet website without the token being exposed. I haven't needed to do this, so I haven't looked into it.

The internet has something like this:
https://stackoverflow.com/questions/230 ... -ip-camera
You have to use the right search terms, I found "stream video webpage ip camera" was better than just "restream video on webpage".
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
Rayj00
Posts: 39
Joined: Mon Jan 09, 2023 3:56 pm

Re: Can I Stream ZM video?

Post by Rayj00 »

In the External Live Stream wiki, there is reference to a link: <img src='https://yourserverwanipordns/zm/cgi-bin......

What is the yourserverwanipordns? I assume it's just the ZM server "localhost", or IP?

Thanks,

Ray
dougmccrary
Posts: 1319
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Can I Stream ZM video?

Post by dougmccrary »

It's the internet IP address or DNS that someone could use to get to your zm server's local address.
Post Reply