Thx, for your reply Remi.
Well i tried it now with
Basic Authentication and got the same results as before with Digest Authentication.
Still get 401Unauthorized.
Commands i tried.
Code: Select all
rtsp://127.0.0.1/video/sample_100kbit.mp4
and entering the parameters trough the input window.
Code: Select all
rtsp://admin:admin@127.0.0.1/video/sample_100kbit.mp4
Here is a capture with wireshark.
Code: Select all
OPTIONS rtsp://127.0.0.1/video/sample_100kbit.mp4 RTSP/1.0
CSeq: 3
Authorization: Basic YWRtaW46YWRtaW4=
User-Agent: VLC media player (LIVE555 Streaming Media v2008.02.08)
RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 3
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD
DESCRIBE rtsp://127.0.0.1/video/sample_100kbit.mp4 RTSP/1.0
CSeq: 4
Accept: application/sdp
Authorization: Basic YWRtaW46YWRtaW4=
User-Agent: VLC media player (LIVE555 Streaming Media v2008.02.08)
RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 4
Last-Modified: Wed, 05 Mar 2008 13:11:26 GMT
Cache-Control: must-revalidate
Content-length: 1209
Date: Sat, 08 Mar 2008 19:00:19 GMT
Expires: Sat, 08 Mar 2008 19:00:19 GMT
Content-Type: application/sdp
x-Accept-Retransmit: our-retransmit
x-Accept-Dynamic-Rate: 1
Content-Base: rtsp://127.0.0.1/video/sample_100kbit.mp4/
v=0
o=StreamingServer 3413991619 1204722686000 IN IP4 127.0.0.1
s=/video/sample_100kbit.mp4
u=http:///
e=admin@
c=IN IP4 0.0.0.0
b=AS:96
t=0 0
a=control:*
a=mpeg4-iod:"data:application/mpeg4-iod;base64,AoJrAE///w/z/wOBdgABQNhkYXRhOmFwcGxpY2F0aW9uL21wZWc0LW9kLWF1O2Jhc2U2NCxBWUVDQVV3Rkh3TklBTWtnQUdVRUx5QVJBRzNkQUFFaytBQUJKUGdGSUFBQUFiRHpBQUFCdFE3Z1FNRFBBQUFCQUFBQUFTQUFoRUQ2S0RBZzhxSWZCaEFBUkFBQUFsZ0FBQUFBSUFBQUFBQURBVElDbndNdUFHVUFCSUNBZ0JSQUZRQVlBQUFBVGlBQUFFNGdCWUNBZ0FJVmtBWVFBRVFBQUI5QUFBQWZRQ0FnQUFBQUF3PT0EDQEFAADIAAAAAAAAAAAGCQEAAAAAAAAAAANpAAJARmRhdGE6YXBwbGljYXRpb24vbXBlZzQtYmlmcy1hdTtiYXNlNjQsd0JBU2daTUNvRmNtRUVIOEFBQUIvQUFBQkVLQ0tDbjQEEgINAABkAAAAAAAAAAAFAwAAYAYJAQAAAAAAAAAA"
a=isma-compliance:1,1.0,1
a=range:npt=0- 70.00000
m=video 0 RTP/AVP 96
b=AS:76
a=rtpmap:96 MP4V-ES/90000
a=control:trackID=3
a=cliprect:0,0,242,192
a=framesize:96 192-242
a=fmtp:96 profile-level-id=1;config=000001B0F3000001B50EE040C0CF0000010000000120008440FA283020F2A21F
a=mpeg4-esid:201
m=audio 0 RTP/AVP 97
b=AS:20
a=rtpmap:97 mpeg4-generic/8000/2
a=control:trackID=4
a=fmtp:97 profile-level-id=15;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1590
a=mpeg4-esid:101
SETUP rtsp://127.0.0.1/video/sample_100kbit.mp4/trackID=3 RTSP/1.0
CSeq: 5
Transport: RTP/AVP;unicast;client_port=32778-32779
User-Agent: VLC media player (LIVE555 Streaming Media v2008.02.08)
RTSP/1.0 401 Unauthorized
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 5
WWW-Authenticate: Basic realm="Streaming Server"
SETUP rtsp://127.0.0.1/video/sample_100kbit.mp4/trackID=4 RTSP/1.0
CSeq: 6
Transport: RTP/AVP;unicast;client_port=32780-32781
User-Agent: VLC media player (LIVE555 Streaming Media v2008.02.08)
RTSP/1.0 401 Unauthorized
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/beta; )
Cseq: 6
WWW-Authenticate: Basic realm="Streaming Server"
And here is the Output from the Terminal window.
Code: Select all
:~$ vlc rtsp://admin:admin@127.0.0.1/video/sample_100kbit.mp4
VLC media player 0.8.6e Janus
[00000268] live555 demuxer error: SETUP of'video/MP4V-ES' failed SETUP: cannot handle response: RTSP/1.0 401 Unauthorized
[00000268] live555 demuxer error: SETUP of'audio/MPEG4-GENERIC' failed SETUP: cannot handle response: RTSP/1.0 401 Unauthorized
[00000268] live555 demuxer error: Nothing to play for rtsp://admin:admin@127.0.0.1/video/sample_100kbit.mp4
[00000269] main access error: cannot resolve admin port 80 : Name or service not known
[00000269] access_realrtsp access error: cannot connect to admin:0
[00000267] main input error: no suitable access module for `rtsp://admin:admin@127.0.0.1/video/sample_100kbit.mp4'
[00000257] main playlist: nothing to play
[00000257] main playlist: stopping playback
yves@dv6610-nb:~$ vlc rtsp://admin:admin@127.0.0.1/video/sample_100kbit.mp4
VLC media player 0.8.6e Janus
[00000268] live555 demuxer error: SETUP of'video/MP4V-ES' failed SETUP: cannot handle response: RTSP/1.0 401 Unauthorized
[00000268] live555 demuxer error: SETUP of'audio/MPEG4-GENERIC' failed SETUP: cannot handle response: RTSP/1.0 401 Unauthorized
[00000268] live555 demuxer error: Nothing to play for rtsp://admin:admin@127.0.0.1/video/sample_100kbit.mp4
[00000269] main access error: cannot resolve admin port 80 : Name or service not known
[00000269] access_realrtsp access error: cannot connect to admin:0
[00000267] main input error: no suitable access module for `rtsp://admin:admin@127.0.0.1/video/sample_100kbit.mp4'
[00000257] main playlist: nothing to play
[00000257] main playlist: stopping playback
yves@dv6610-nb:~$ vlc rtsp://admin:admin@127.0.0.1/video/sample_100kbit.mp4
VLC media player 0.8.6e Janus
[00000268] live555 demuxer error: SETUP of'video/MP4V-ES' failed SETUP: cannot handle response: RTSP/1.0 401 Unauthorized
[00000268] live555 demuxer error: SETUP of'audio/MPEG4-GENERIC' failed SETUP: cannot handle response: RTSP/1.0 401 Unauthorized
[00000268] live555 demuxer error: Nothing to play for rtsp://admin:admin@127.0.0.1/video/sample_100kbit.mp4
[00000269] main access error: cannot resolve admin port 80 : Name or service not known
[00000269] access_realrtsp access error: cannot connect to admin:0
[00000267] main input error: no suitable access module for `rtsp://admin:admin@127.0.0.1/video/sample_100kbit.mp4'
[00000257] main playlist: nothing to play
[00000257] main playlist: stopping playback
:~$
Between, keep up the good work.
Best wishes, Yves