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
  Only flushed 0 bytes from the output stream cache znelbok 0 486 01-13-2022, 11:24 AM
Last Post: znelbok
  SMTP Password limitations? SenorShaun 20 4,514 04-09-2020, 12:25 PM
Last Post: Dean Roddey
  Getting "Tried to read at the logical end of the stream" when importing a package ghurty 2 1,582 12-28-2018, 08:56 AM
Last Post: ghurty
  WebRIVA password special character issue? batwater 10 5,503 09-30-2018, 02:07 PM
Last Post: batwater
  Username not working? jkmonroe 2 2,683 10-27-2017, 11:09 AM
Last Post: jkmonroe
  SOLVED -- RTSP --> HTTP (NVR on iOS Devices) agarden 5 5,156 05-30-2017, 08:32 PM
Last Post: agarden
  Embed RTSP stream in a popup window? ghurty 7 4,824 07-06-2016, 04:13 PM
Last Post: Dean Roddey
  SMTP without a username ghurty 7 3,396 01-18-2015, 04:11 PM
Last Post: Dean Roddey
  Windows 8 Web Browser Widget Won't Load Camera Stream TurboSam 4 4,571 01-08-2014, 03:57 PM
Last Post: kblagron
  Posting username and password in JSON standon 29 11,512 01-15-2012, 01:01 PM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)