Watchnet NVR connecting to Home Assistant problems

Joined
Sep 7, 2024
Messages
29
Reaction score
0
Location
Canada
Im new to this forum. I have a 8 channel Watchnet POE NVR system with MPIX cameras and I am trying to get this connected to Home Assistant using RTSP with the "Generic Camera" integration. I am using rtsp:/<Username>:<Password>@<IP Address>:<Port>/cam/realmonitor?channel=1&subtype=0
with my username and password with my NVR's IP and port. There is an option in HA for "RTSP transport protocol" "TCP,UDP,UDP Multicast,and HTTP" Ive tried them all and I cant get this to work. Message keeps popping up "Timeout while loading URL".

Any advice would be great as this is driving me crazy.

Thanks in advance
 
Joined
Aug 3, 2015
Messages
4,402
Reaction score
15,376
Location
Charlotte
Im new to this forum. I have a 8 channel Watchnet POE NVR system with MPIX cameras and I am trying to get this connected to Home Assistant using RTSP with the "Generic Camera" integration. I am using rtsp:/<Username>:<Password>@<IP Address>:<Port>/cam/realmonitor?channel=1&subtype=0
with my username and password with my NVR's IP and port. There is an option in HA for "RTSP transport protocol" "TCP,UDP,UDP Multicast,and HTTP" Ive tried them all and I cant get this to work. Message keeps popping up "Timeout while loading URL".

Any advice would be great as this is driving me crazy.

Thanks in advance
Whatever URL you use for your camera (and yours above appears to be somewhat generic) should be validated using a video stream player like VLC (Video LAN Client).
If VLC can successfully connect and play the stream, Home Assistant should be able to handle it. If not, there's some other issue.
VLC is very good for debugging this sort of networking/configuration issue.
 

TonyR

IPCT Contributor
Joined
Jul 15, 2014
Messages
18,542
Reaction score
43,616
Location
Alabama
Pretty sure it's a Dahua OEM.
+1 regarding using VLC to test. Have you tried with subtype=1, not 0 ?
And port is 554?

Dahua_OEM_2023.jpg
 
Joined
Sep 7, 2024
Messages
29
Reaction score
0
Location
Canada
Whatever URL you use for your camera (and yours above appears to be somewhat generic) should be validated using a video stream player like VLC (Video LAN Client).
If VLC can successfully connect and play the stream, Home Assistant should be able to handle it. If not, there's some other issue.
VLC is very good for debugging this sort of networking/configuration issue.
I tried VLC and couldnt get it to work but it did recognize a correct username and password vs a wrong one.
 
Joined
Apr 11, 2020
Messages
879
Reaction score
1,050
Location
Poland/Portugal
delete sticker with serial number (it can be used to hack by p2p)..

puts screens from menu (where You log to NVR, watch live view or configure cameras)..
 
Joined
Apr 11, 2020
Messages
879
Reaction score
1,050
Location
Poland/Portugal
As other people said You should use VLC to test stream first.. Use File -> Open network function...

if don't work, there is some error in it (wrong ip address, wrong user/pass, some missing slash)..

You can check in Network / Port settings, does RTSP port is 554 (default value)...
 
Joined
Sep 7, 2024
Messages
29
Reaction score
0
Location
Canada
rtsp:/user:password@192.168.0.000:554/cam/realmonitor?channel=1&subtype=0
This is what im using and yes in the camera settings it shows that port is set to 554. As I said, VLC does recognize when the username and password is correct (tested using wrong one and it said wrong user or password) So if it is detecting the correct user and password then there would be some type of connection. Right?
 
Joined
Apr 11, 2020
Messages
879
Reaction score
1,050
Location
Poland/Portugal
there is missing one / after rtsp: (should be two)...

you can change subtype=1 to get second stream (small resolution)...

sometimes players need to wait many seconds to start displaying stream (depending od encoder options on cameras)...

SmartCodec enabled in image -> encoder settings increase a start playing time for rtsp streams a few times..
worth try to disable (in first camera)..
 
Joined
Sep 7, 2024
Messages
29
Reaction score
0
Location
Canada
there is missing one / after rtsp: (should be two)...

you can change subtype=1 to get second stream (small resolution)...

sometimes players need to wait many seconds to start displaying stream (depending od encoder options on cameras)...

SmartCodec enabled in image -> encoder settings increase a start playing time for rtsp streams a few times..
worth try to disable (in first camera)..
Good catch on the missing / i have been using two i accidently deleted it when erasing my username.
 
Joined
Sep 7, 2024
Messages
29
Reaction score
0
Location
Canada
On VLC I see a yellow bar that moves left and right at the bottom then an error message pops up:

Your input can't be opened:
VLC is unable to open the MRL 'rtsp:/user:password@192.168.0.000:554/cam/realmonitor?channel=1&subtype=1'. Check the log for details.

This is the Log:
-- logger module started --
main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
main: playlist is empty
live555 error: Failed to connect with rtsp:/192.168.0.000:554/cam/realmonitor?channel=1&subtype=1
satip error: Failed to setup RTSP session
satip error: read error: No error
satip error: Failed to teardown RTSP session
-- logger module stopped --
 
Top