Dahua RTSP stream working

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 » Monday 03 April 2017 22:04

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 » Monday 03 April 2017 22:09

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: 33
Joined: Sunday 29 September 2013 7:36
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dahua RTSP stream working

Post by Oxyd » Tuesday 04 April 2017 14:08

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 » Wednesday 05 April 2017 3:59

So sorry!

I completely missed that this was a Windows only program.

If a mod can change the title to mention windows only?

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests