Watchnet NVR connecting to Home Assistant problems

Sep 7, 2024
29
0
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
 
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.
 
  • Like
Reactions: looney2ns and TonyR
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
 
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.
 
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)...
 
rtsp:/user:p[email protected]: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?
 
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)..
 
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.
 
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:p[email protected]: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 --