Password protected RTSP streams

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
jockyw2001
Blank Cone
Blank Cone
Posts: 54
Joined: 24 Jun 2006 10:18

Password protected RTSP streams

Postby jockyw2001 » 16 Jul 2007 21:35

With VLC 0.8.4a it was possible to open password protected RTSP streams using this type of url:

Code: Select all

rtsp://username:password@ip_address:port
This is no longer possible. Is there a workaround?

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Password protected RTSP streams

Postby dionoea » 17 Jul 2007 17:00

What VLC version are you using? Do you have an example stream (public ... although I'd need the login and password) which I could try it on?
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

jockyw2001
Blank Cone
Blank Cone
Posts: 54
Joined: 24 Jun 2006 10:18

Re: Password protected RTSP streams

Postby jockyw2001 » 17 Jul 2007 18:45

Thx, I'll set up a site for you to test. Will drop you a PM with a URL in 1-2 days

It works with release 0.8.4a and doesn't work with later versions such as the current release 0.8.6c

jockyw2001
Blank Cone
Blank Cone
Posts: 54
Joined: 24 Jun 2006 10:18

Re: Password protected RTSP streams

Postby jockyw2001 » 20 Jul 2007 21:55

I think the problem is that live555 does no longer support an optional username and password inside a RTSP url.

In 0.8.4a it was still called "livedotcom" and it works fine:

Code: Select all

main debug: adding playlist item `rtsp://Admin:123456@192.168.1.26:7070' ( rtsp://Admin:123456@192.168.1.26:7070 ) main debug: creating new input thread main debug: waiting for thread completion main debug: thread 4020 (input) created at priority 1 (src/input/input.c:230) main debug: `rtsp://Admin:123456@192.168.1.26:7070' gives access `rtsp' demux `' path `Admin:123456@192.168.1.26:7070' main debug: creating demux: access='rtsp' demux='' path='Admin:123456@192.168.1.26:7070' main debug: looking for access_demux module: 1 candidate livedotcom debug: sdp=v=0 o=- 107291565300650000 1 IN IP4 192.168.1.26 s=Session streamed by RTP/RTSP server [...]
In 0.8.6 it doesn't work:

Code: Select all

main debug: adding playlist item `rtsp://Admin:123456@192.168.1.26:7070' ( rtsp://Admin:123456@192.168.1.26:7070 ) main debug: creating new input thread main debug: waiting for thread completion main debug: creating statistics handler main debug: thread 3968 (input) created at priority 1 (input/input.c:265) main debug: `rtsp://Admin:123456@192.168.1.26:7070' gives access `rtsp' demux `' path `Admin:123456@192.168.1.26:7070' main debug: creating demux: access='rtsp' demux='' path='Admin:123456@192.168.1.26:7070' main debug: looking for access_demux module: 1 candidate live555 debug: DESCRIBE failed with 0: cannot handle DESCRIBE response: RTSP/1.0 401 Unauthorized live555 debug: we will now try HTTP tunneling mode [...]
I try to fix the problem in modules/demux/live555.cpp

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Password protected RTSP streams

Postby dionoea » 23 Jul 2007 14:46

Ok, thanks. Please provide the patch once it's fixed :)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 14 guests