cctv-viewer
cctv-viewer copied to clipboard
Cannot enter stream URL with parameters
Dahua DVRs follow the pattern as follows:
https://[USER]:[PASSWORD]@[IP]:[PORT]/cam/realmonitor?channel=[NUMBER]&subtype=[STREAM]
the parameters at the end do not seem to work with this software.
I have numerous Dahua cameras running in this software using the following stream url:
rtsp://user:password@IP/cam/realmonitor?channel=1&subtype=1
In any cases where you cannot play a stream in the CCTV Viewer, I recommend using ffplay to check if the URL is correct.
The fix for me with dahua cameras is to add "rtsp_transport tcp" to avformat options. Hope that fixes yours too.