[vlc-devel] RTSP issues in latest vlc (0.9.0-svn-20061010-1313)

marlon at freemail.gr marlon at freemail.gr
Tue Oct 10 17:20:32 CEST 2006


Hello!

There seems to be a bug in VLC. It seems that rtsp username/password 
(issued via the respected command-line switches) are completely ignored 
by the application after a "401 Unauthorized" error is reported and
the client falls back to http.


More info follows:


Stream
======
rtsp://SERVER_IP/broadcast/path/to/file.rm


Players
=======
1. Media Player Classic (with Real Alternative Codec Pack)
2. vlc-0.9.0-svn-20061010-1313 (with Live.com libraries)


Information
===========

1. Using Media Player Classic a connection is established properly.
User has to input rtsp username/password in a pop-up window.


-------- BEGIN Media Player Classic log ---------------------------

T CLIENT_IP:2062 -> SERVER_IP:554 [AP]
OPTIONS rtsp://SERVER_IP:554 RTSP/1.0.
CSeq: 1.
User-Agent: RealMedia Player (HelixDNAClient)/10.0.0.0 (win32).
ClientChallenge: 68afabf87e3e9c4f931b9c25c27f84ba.
ClientID: WinNT_5.1_10.0.0.0_play32_RN01_EN_UNK.
CompanyID: eHuxqR2TpLhfJLr9d7i2uw==.
GUID: 00000000-0000-0000-0000-000000000000.
PlayerStarttime: [10/10/2006:16:46:07 02:00].
Pragma: initiate-session.
RegionData: 0.


T SERVER_IP:554 -> CLIENT_IP:2062 [AP]
RTSP/1.0 200 OK.
CSeq: 1.
Date: Tue, 10 Oct 2006 13:46:05 GMT.
Session: 33784529-1;timeout=80.
Server: Helix Server Version 11.0.2.2358 (linux-rhel4-i686) (RealServer compatible).
Public: OPTIONS, DESCRIBE, ANNOUNCE, PLAY, SETUP, GET_PARAMETER, SET_PARAMETER, TEARDOWN.
TurboPlay: 1.
RealChallenge1: 4c222040af61e12775358f0fbf5dea8f.
StatsMask: 8.


T CLIENT_IP:2062 -> SERVER_IP:554 [AP]
DESCRIBE rtsp://SERVER_IP:554/path/to/file.rm RTSP/1.0.
CSeq: 2.
User-Agent: RealMedia Player (HelixDNAClient)/10.0.0.0 (win32).
Accept: application/sdp.
Session: 33784529-1;timeout=80.
Bandwidth: 786432.
ClientID: WinNT_5.1_10.0.0.0_play32_RN01_EN_UNK.
Cookie: cbid=hkfgjmjlejhklldmeonohplqkojrktlufkgjkieligdfdlplpslogpkqroqsmqopdkqgchgi.
GUID: 00000000-0000-0000-0000-000000000000.
Language: .
PlayerCookie: cbid.
RegionData: 0.
Require: com.real.retain-entity-for-setup.
SupportsMaximumASMBandwidth: 1.


T SERVER_IP:554 -> CLIENT_IP:2062 [AP]
RTSP/1.0 401 Unauthorized.
CSeq: 2.
Date: Tue, 10 Oct 2006 13:46:05 GMT.
Session: 33784529-1;timeout=80.
WWW-Authenticate: RN5 realm="SERVER_IP.ContentRealm", nonce="1160487965929341".


[ Pop-up window requesting username/password ]


T CLIENT_IP:2062 -> SERVER_IP:554 [AP]
DESCRIBE rtsp://SERVER_IP:554/path/to/file.rm RTSP/1.0.
CSeq: 3.
User-Agent: RealMedia Player (HelixDNAClient)/10.0.0.0 (win32).
Accept: application/sdp.
Session: 33784529-1;timeout=80.
Authorization: RN5 username="login_name", GUID="53f5f420-56c5-431d-b4e3-c0d160018cf1",realm="SERVER_IP.ContentRealm",nonce="1160487965929341",response="cf08d20e559352a6568b9104714d93e3".
Bandwidth: 786432.
ClientID: WinNT_5.1_10.0.0.0_play32_RN01_EN_UNK.
Cookie: cbid=hkfgjmjlejhklldmeonohplqkojrktlufkgjkieligdfdlplpslogpkqroqsmqopdkqgchgi.
GUID: 00000000-0000-0000-0000-000000000000.
Language: .
PlayerCookie: cbid.
RegionData: 0.
Require: com.real.retain-entity-for-setup.
SupportsMaximumASMBandwidth: 1.


T SERVER_IP:554 -> CLIENT_IP:2062 [A]
RTSP/1.0 200 OK.
CSeq: 3.
Date: Tue, 10 Oct 2006 13:46:10 GMT.
Session: 33784529-1;timeout=80.
WWW-Authenticate: RN5 realm="SERVER_IP.ContentRealm", nonce="1160487965929341".
Content-base: rtsp://SERVER_IP:554/path/to/file.rm/.
ETag: 33784529-1.
Session: 33784529-1;timeout=80.
Vary: User-Agent, ClientID.
Content-type: application/sdp.
x-real-usestrackid: 1.
Content-length: 3720.
.
v=0.
o=- 222190 222190 IN IP4 SERVER_IP.
s=<No title>.
i=<No author> (C) 2002.

[ A connection is established and everything works as it should... ]

-------- END Media Player Classic log ---------------------------



2. Using VLC (0.9.0-swn as well as 0.8.6, latest nightly builds) the credentials
are never used and the client falls back to http.
Command-line used:
vlc --rtsp-user login_name --rtsp-pwd secret_pass rtsp://SERVER_IP/path/to/file.rm


----------------------- BEGIN vlc log ---------------------------

T CLIENT_IP:2092 -> SERVER_IP:554 [AP]
OPTIONS rtsp://SERVER_IP/path/to/file.rm RTSP/1.0.
CSeq: 1.
User-Agent: VLC media player (LIVE555 Streaming Media v2006.05.17).


T SERVER_IP:554 -> CLIENT_IP:2092 [AP]
RTSP/1.0 200 OK.
CSeq: 1.
Date: Tue, 10 Oct 2006 13:51:58 GMT.
Server: Helix Server Version 11.0.2.2358 (linux-rhel4-i686) (RealServer compatible).
Public: OPTIONS, DESCRIBE, ANNOUNCE, PLAY, SETUP, GET_PARAMETER, SET_PARAMETER, TEARDOWN.
TurboPlay: 1.
RealChallenge1: 8371464f14f9603aaca68c4516dc5a4b.
StatsMask: 8.


T CLIENT_IP:2092 -> SERVER_IP:554 [AP]
DESCRIBE rtsp://SERVER_IP/path/to/file.rm RTSP/1.0.
CSeq: 2.
Accept: application/sdp.
User-Agent: VLC media player (LIVE555 Streaming Media v2006.05.17).


T SERVER_IP:554 -> CLIENT_IP:2092 [AP]
RTSP/1.0 401 Unauthorized.
CSeq: 2.
Date: Tue, 10 Oct 2006 13:51:58 GMT.
Set-Cookie: cbid=cfcjfhjiejjkeldmeonohpmqprjrktlufkgjkielcjikjiplqnmroultqonnltrujfhgehei;path=/;expires=Thu,31-Dec-2037 23:59:59 GMT.
WWW-Authenticate: RN5 realm="SERVER_IP.ContentRealm", nonce="1160488318462245".


[ From here on vlc falls back to http. ]


T CLIENT_IP:2093 -> SERVER_IP:80 [AP]
GET /path/to/file.rm HTTP/1.0.
User-Agent: VLC media player (LIVE555 Streaming Media v2006.05.17).
x-sessioncookie: 0b3dc905e818310cf1c8ac8.
Accept: application/x-rtsp-tunnelled.
Pragma: no-cache.
Cache-Control: no-cache.


T SERVER_IP:80 -> CLIENT_IP:2093 [AP]
HTTP/1.1 404 Not Found.
Date: Tue, 10 Oct 2006 13:51:58 GMT.
Server: Apache.
Content-Length: 228.
Connection: close.
Content-Type: text/html; charset=iso-8859-1.

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /path/to/file.rm was not found on this server.</p>
</body></html>

----------------------- END vlc log ---------------------------



-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list