Dahua RTSP stream working

Moderator: leecollings

Post Reply
thugmasta
Posts: 4
Joined: Monday 03 April 2017 21:39
Target OS: Windows
Domoticz version:
Contact:

Dahua RTSP stream working

Post by thugmasta »

Hi, I'm new to the forums, loving domoticz.

Just wanted to share my experience with regards to getting RTSP streams working from a normal DVR, that is not an IP camera.

I have a QVIS Zeus, essentially a dahua 8ch DVR connected to 7 cameras.

I could not get an RTSP stream working, and had to read around a few threads, and eventually sorted it out. If there is an easier way, then please do enlighten me.

step 1:
Install netcam studio x.
As far as I can tell, this is free to use if for up to a maximum of 2 streams - which is sufficient for my needs.
http://www.netcamstudio.com/

Once installed, add a user, and a source.
Took some time experimenting to find the correct URL, so if you do not know your URL from your DVR, then you can use a program like URLsnooper to find the correct streaming url. Again free to use.

https://www.donationcoder.com/Software/ ... rlsnooper/

To add the source into netcam studio, I had to go to "Add Custom URL"
There I changed the stream type to RTSP_TCP
And added the URL in the following format:
rtsp://[user]:[password]@[IPADDRESSOFDVR]:554/cam/realmonitor?channel=[YOURCHANNEL]&subtype=0

Replace the square brackets with your appropriate information (there will be NO square brackets in the final url)

Click on the tab with two people and a key "Access Control"
Create a new user preferably without admin rights.
Double click on the user you just created, you will see at the bottom a permanent authtoken. Copy this to your clipboard.

This is pretty much it for this program. This will be a server running on your machine in the background. (I am not sure how stable it is as I only did this today)

Now in domoticz...

Add a camera.
Active : TICK
Name: Choose a name
IP Address: The IP address of the machine where you installed netcam studio
Port: 8100
Username: User name of the user you created in netcam studio (not the user of your DVR)
Password: Password of the user you created in netcam studio (not the user of your DVR)
URL: jpeg/0?authtoken=[PASTE YOUR USERS AUTHTOKEN HERE] (there will be no square brackets)

Hit TEST and Eureka! There you have a stream!

You can repeat the process for a second stream but obviously change the URL to jpeg/1?authtoken=[your auth token]

Like I said, if anyone has a better solution than this for adding a normal DVR, please do let me know.
thugmasta
Posts: 4
Joined: Monday 03 April 2017 21:39
Target OS: Windows
Domoticz version:
Contact:

Re: Dahua RTSP stream working

Post by thugmasta »

Apologies, I do not know how to edit my thread, but I wanted to give credit to Zak45 for pointing me in the right direction via his reply to meeki's thread.

https://www.domoticz.com/forum/viewtopic.php?t=15444
Oxyd
Posts: 2
Joined: Sunday 29 September 2013 7:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dahua RTSP stream working

Post by Oxyd »

Hi,
The only problem is that you must use windows PC for netcam studio.
I would have the same solution on linux :shock:

Anyway thank's for sharing ;)
thugmasta
Posts: 4
Joined: Monday 03 April 2017 21:39
Target OS: Windows
Domoticz version:
Contact:

Re: Dahua RTSP stream working

Post by thugmasta »

So sorry!

I completely missed that this was a Windows only program.

If a mod can change the title to mention windows only?
jpvaneijk
Posts: 76
Joined: Thursday 07 June 2018 21:57
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Noordwijk, Netherlands
Contact:

Re: Dahua RTSP stream working

Post by jpvaneijk »

Thanx!
This was the solution I was looking for.
I've got a Windows server running and installed NetCam.
My Raspberry Pi 3B+ is in the same Network and running Domoticz. Working great sofar but still some work to do...

Audio is not working for me, pan and tilt the same thing. Now trying to get a RTSP form my Asian webcam and see if this is a solution for my RING doorbell.
But verry, verry nice man. Thanx! Better then the solution provider in your comment, by the way.
k5nemch
Posts: 1
Joined: Monday 25 May 2020 8:23
Target OS: Linux
Domoticz version:
Contact:

Re: Dahua RTSP stream working

Post by k5nemch »

jpvaneijk wrote: Friday 11 January 2019 16:27 Thanx!
This was the solution I was looking for.
I've got a Windows server running and installed NetCam.
My Raspberry Pi 3B+ is in the same Network and running Domoticz. Working great sofar but still some work to do...

Audio is not working for me, pan and tilt the same thing. Now trying to get a RTSP form my Asian webcam and see if this is a solution for my RING doorbell.
But verry, verry nice man. Thanx! Better then the solution provider in your comment, by the way.
This blog is great check it out
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests