Page 1 of 1

how to add remote rtsp server to zonminder?

Posted: Thu Jun 18, 2020 12:32 pm
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,

Re: how to add remote rtsp server to zonminder?

Posted: Sat Jun 20, 2020 2:32 am
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.

Re: how to add remote rtsp server to zonminder?

Posted: Sun Jun 21, 2020 6:31 am
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 !

Re: how to add remote rtsp server to zonminder?

Posted: Sun Jun 21, 2020 3:27 pm
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.

Re: how to add remote rtsp server to zonminder?

Posted: Mon Jun 22, 2020 5:53 am
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 !

Re: how to add remote rtsp server to zonminder?

Posted: Tue Jul 14, 2020 1:43 am
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

Re: how to add remote rtsp server to zonminder?

Posted: Thu Jul 16, 2020 8:35 am
by david1234
OK ,
I will give it a try

Thansk you