Dahua RTSP stream working
Posted: 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.
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.