Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RTSP Stream / Username and Password
#1
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:

[Image: Screen-Shot-2019-05-22-at-13-37-38.jpg]

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:

[Image: Screen-Shot-2019-05-22-at-13-25-26.jpg]

Any suggestions? Is there a way to enter the Username and Password?
Reply
#2
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
Reply
#3
(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?
Reply
#4
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
Reply
#5
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
Reply
#6
Thanks. Now that I have things on Windows 7 I will try it again and let you all know.
Reply
#7
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.
Reply
#8
(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!
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Getting "Tried to read at the logical end of the stream" when importing a package ghurty 2 365 12-28-2018, 08:56 AM
Last Post: ghurty
  WebRIVA password special character issue? batwater 10 1,483 09-30-2018, 02:07 PM
Last Post: batwater
  Username not working? jkmonroe 2 1,400 10-27-2017, 11:09 AM
Last Post: jkmonroe
  SOLVED -- RTSP --> HTTP (NVR on iOS Devices) agarden 5 3,147 05-30-2017, 08:32 PM
Last Post: agarden
  Embed RTSP stream in a popup window? ghurty 7 2,810 07-06-2016, 04:13 PM
Last Post: Dean Roddey
  SMTP without a username ghurty 7 1,721 01-18-2015, 04:11 PM
Last Post: Dean Roddey
  Windows 8 Web Browser Widget Won't Load Camera Stream TurboSam 4 3,131 01-08-2014, 03:57 PM
Last Post: kblagron
  Posting username and password in JSON standon 29 7,018 01-15-2012, 01:01 PM
Last Post: Dean Roddey
  Forgot Admin Password optix 1 1,058 10-27-2011, 10:09 AM
Last Post: Dean Roddey
  initial login name and password frijoli 3 1,871 12-21-2010, 06:39 PM
Last Post: frijoli

Forum Jump:


Users browsing this thread: 1 Guest(s)