how to add remote rtsp server to zonminder?

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
david1234
Posts: 96
Joined: Wed Jun 26, 2019 12:24 pm

how to add remote rtsp server to zonminder?

Post by david1234 »

Hello ,
I'm trying to add a remote device , the device is a rtsp-server.
I want the zonmidner will be a client of it
I don't know how to connect the zonminder to the server
I only mange to open the video using a browser

the server is a simple nodejs rtsp stream

Code: Select all

Stream = require('node-rtsp-stream')
stream = new Stream({
  name: 'name',
  streamUrl: 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov',
  wsPort: 9999,
  ffmpegOptions: { // options ffmpeg flags
    '-stats': '', // an option with no neccessary value uses a blank string
    '-r': 30 // options with required values specify the value after the key
  }
})


and the server run on the same computer the zonminder run

so the WebSocket to connect should be :

Code: Select all

 ws://localhost:9999/; 
I thought maybe the add

Code: Select all

remote
source 
protocol rtsp
method rsp/rtsp/http
host name: ws://lcoalhost(try also the computer ip - 10.0.0.105)
pos 9999
but it doesn't work

when I connect from another computer to the server using html page
I can see the video playing (so eveything is working )

how to add it?
is it even possiable ?

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

Re: how to add remote rtsp server to zonminder?

Post by burger »

https://wiki.zoneminder.com/Finding_Camera_Stream_Paths

https://wiki.zoneminder.com/Hardware_Compatibility_List

Typically RTSP paths are put in source with a rtsp://<user>:<pass>@<ipaddress>:554/url
See other examples in HCL. Test in ffmpeg or VLC first before putting paths in ZM.

I don't recall if anything with ws:// will work or not.
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
david1234
Posts: 96
Joined: Wed Jun 26, 2019 12:24 pm

Re: how to add remote rtsp server to zonminder?

Post by david1234 »

I have try use ffmpeg - was unabe to enter and read the video

I thought maybe this way I will be able to get resualt from unsupported camera
because zonminder will read data from rtsp server and not from unknown camera

it was worth a try

Thank you !
User avatar
iconnor
Posts: 3280
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: how to add remote rtsp server to zonminder?

Post by iconnor »

ws:// is not rtsp. ws stands for Web Socket. So you can connect and talk javascript back and forth to the server.

Problem is you can talk any javascript to it. So we cannot support ws as a stream source in a general way.
david1234
Posts: 96
Joined: Wed Jun 26, 2019 12:24 pm

Re: how to add remote rtsp server to zonminder?

Post by david1234 »

no problem , great answer!

I had an idea and thought to try it
if you don't try , you don't learn things

I will see if there is another nodejs rtsp server and try with it (now that I know what I'm lokking )

Thanks !
girkers
Posts: 17
Joined: Wed Mar 22, 2017 12:08 am

Re: how to add remote rtsp server to zonminder?

Post by girkers »

I use Ubiquiti cameras and natively, afaik, don't support RTSP, so I have to run the Unifi Video Server and this provides the RTSP link for each of my cameras. In my ZM config I simply use FFMPEG and the RSTP link provided from the Unifi Video Server, my source path looks like this:

rtsp://192.168.72.33:7447/5dabf829d5def1d099761289_0
--

Girkers
david1234
Posts: 96
Joined: Wed Jun 26, 2019 12:24 pm

Re: how to add remote rtsp server to zonminder?

Post by david1234 »

OK ,
I will give it a try

Thansk you
Post Reply