Posts: 720
Threads: 124
Joined: May 2019
05-22-2019, 09:58 AM
(This post was last modified: 05-22-2019, 10:02 AM by gReatAutomation.)
I am able to access RTSP streams with VLC using my stream URL with or without the Username and Password:
Code:
rtsp://Username:Password@IP_ADDRESS:554/Streaming/Channels/501
or
Code:
rtsp://IP_ADDRESS:554/Streaming/Channels/501
In VLC, if I do not enter the Username or Password I am promoted for them, after which, I enter them and the stream starts.
I added the camera to a test interface:
I've tried multiple combinations, even cycling between the Main Stream and the Sub-Stream, as well as entering the Username and Password as part of the URL, and cannot get the stream to load:
Any suggestions? Is there a way to enter the Username and Password?
Posts: 40,483
Threads: 491
Joined: Aug 2002
You would either have to configure as part of the URL, or set in the system environment and use that to set it into the URL in the OnPreload. Or, you'd have to do a popup to prompt the user for it and then use that to set the URL on the widget with the password in it.
Dean Roddey
Explorans limites defectum
Posts: 720
Threads: 124
Joined: May 2019
(05-22-2019, 10:19 AM)Dean Roddey Wrote: You would either have to configure as part of the URL, or set in the system environment and use that to set it into the URL in the OnPreload. Or, you'd have to do a popup to prompt the user for it and then use that to set the URL on the widget with the password in it.
So this:
Code:
rtsp://Username:Password@IP_ADDRESS:554/Streaming/Channels/501
Does not work with CQC?
Posts: 40,483
Threads: 491
Joined: Aug 2002
Oh, I thought you just didn't want to embed it. If the camera accepts that, then it should work. It's possible that it's not just passing those values but pulling them out and using them to do some other login type operation. Can you enter that URL in a browser and get anything?
Dean Roddey
Explorans limites defectum
Posts: 40,483
Threads: 491
Joined: Aug 2002
Doing some reading, the consensus seems to be that that is the correct way to do it. Can you use some other tool to verify that URL works as is, and that VLC isn't doing something else with that info? Maybe CURL or the browser?
Dean Roddey
Explorans limites defectum
Posts: 720
Threads: 124
Joined: May 2019
Thanks. Now that I have things on Windows 7 I will try it again and let you all know.
Posts: 599
Threads: 31
Joined: May 2009
The syntax of what you have above should work if the camera accepts it.  I have a Reolink ip camera and use the web camera widget like this for URL: rtsp://user:password@192.168.1.127/h264Preview_01_sub
If I put that url in either VLC or CQC's web camera widget and it works.  That's on Windows 10.  Hope you get things figured out.
Posts: 720
Threads: 124
Joined: May 2019
(05-22-2019, 06:54 PM)Shaky Wrote: The syntax of what you have above should work if the camera accepts it.  I have a Reolink ip camera and use the web camera widget like this for URL: rtsp://user:password@192.168.1.127/h264Preview_01_sub
If I put that url in either VLC or CQC's web camera widget and it works.  That's on Windows 10.  Hope you get things figured out.
Thanks!