Page 1 of 1

Password protected RTSP streams

Posted: 16 Jul 2007 21:35
by jockyw2001
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?

Re: Password protected RTSP streams

Posted: 17 Jul 2007 17:00
by dionoea
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?

Re: Password protected RTSP streams

Posted: 17 Jul 2007 18:45
by jockyw2001
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

Re: Password protected RTSP streams

Posted: 20 Jul 2007 21:55
by jockyw2001
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

Re: Password protected RTSP streams

Posted: 23 Jul 2007 14:46
by dionoea
Ok, thanks. Please provide the patch once it's fixed :)