[vlc-devel] vlc and RTSP authentication

Ross Finlayson finlayson at live555.com
Sat Mar 8 00:36:18 CET 2008

>Le Friday 07 March 2008 05:50:09 Jean-Paul Saman, vous avez écrit :
>>  Ratin wrote:
>>  > Anybody here know if vlc support digest authentication for RTSP? I set
>>  > username and password in demuxer->rtsp options but that
>>  > doesnt seem to send any authentication information to the rtsp server
>>  > when authorization is required.
>>  >
>>  > Thanks
>>  > Ratin
>>  vlc rtsp://user:pass@server.mine/my/movie
>Are you sure this is using Digest authentication, not plain-text, though? I
>thought VLC did not support Digest - though I don't know about Live555.

The LIVE555 RTSP client implementation (used in 
VLC) handles this type of RTSP URL by parsing the 
username and password from the URL, and using 
this for Digest authentication, *if* the server 
requests Digest authentication in its response to 
the first "DESCRIBE".  Note that if the server 
askes for *Basic* authentication, then the 
LIVE555 RTSP client code will do that instead. 
(In any case, though, the username and password 
are left in the URL that gets sent to the server.)

It is also possible to do Digest authentication 
without sending the username and password over 
the network.  If the server requests Digest 
authentication (in its response to the first 
"DESCRIBE"), the the VLC interface code 
("live555.cpp") is supposed to then pop up a 
dialog box asking for the user to enter a 
username and password.  These are then used in 
Digest authentication.

At least, this is what VLC is *supposed* to do in 
this case; I haven't tested it myself :-)

Ross Finlayson
Live Networks, Inc.

More information about the vlc-devel mailing list