Wowza Community

problem on RTSP Authentication

We are trying to setup the RTSP Authentication.

I’ve setup the public.password file for RTP authentication also we’ve configured the application RTP/Authentication/PlayMethod to digest in the application.xml. Everything goes well after configuration, the stream is protected with the username.

Except when I am trying to use VLC to connect, it ask me twice for username and password on every request. any idea? By the way, I am using the mediacache in this application.

The log in console shows the following, it seems that the VLC player is trying to connect twice…:-

INFO stream stop c1/1/iphone_sample.mp4 -

INFO stream destroy c1/1/iphone_sample.mp4 -

INFO rtsp disconnect 1152285236 -

INFO rtsp connect 316413612 -

INFO stream create - -

INFO rtsp describe 316413612 -

INFO server comment - RTPUDPTransport.bind[bbvdoapps/definst]: in:0.0.0.0/0.0.0.0:6974 out:/10.10.10.8:54720

INFO server comment - RTPUDPTransport.bind[bbvdoapps/definst]: in:0.0.0.0/0.0.0.0:6975 out:/10.10.10.8:54721

INFO server comment - RTPUDPTransport.bind[bbvdoapps/definst]: in:0.0.0.0/0.0.0.0:6976 out:/10.10.10.8:54722

INFO server comment - RTPUDPTransport.bind[bbvdoapps/definst]: in:0.0.0.0/0.0.0.0:6977 out:/10.10.10.8:54723

INFO stream play c1/1/iphone_sample.mp4 -

INFO rtsp play 316413612 -

INFO server comment - RTPUDPTransport.unbind[bbvdoapps/definst]: 0.0.0.0/0.0.0.0:6974 sent:180 recv:0

INFO server comment - RTPUDPTransport.unbind[bbvdoapps/definst]: 0.0.0.0/0.0.0.0:6975 sent:4 recv:0

INFO server comment - RTPUDPTransport.unbind[bbvdoapps/definst]: 0.0.0.0/0.0.0.0:6976 sent:598 recv:0

INFO server comment - RTPUDPTransport.unbind[bbvdoapps/definst]: 0.0.0.0/0.0.0.0:6977 sent:4 recv:0

INFO stream stop c1/1/iphone_sample.mp4 -

INFO stream destroy c1/1/iphone_sample.mp4 -

INFO rtsp disconnect 316413612 -

INFO rtsp connect 727524933 -

INFO stream create - -

INFO rtsp describe 727524933 -

INFO stream play c1/1/iphone_sample.mp4 -

INFO rtsp play 727524933 -

INFO stream stop c1/1/iphone_sample.mp4 -

INFO stream destroy c1/1/iphone_sample.mp4 -

INFO rtsp disconnect 727524933 -

What version of Wowza and VLC? Upgrading is always a good idea. Try playing the RTSP stream in VLC from a different computer.

I have tested this on Wowza 3.0.3.10 build995 with VLC 1.1.11 and it only asks for the password one time.

INFO rtsp connect 975027157 -
INFO stream create - -
INFO rtsp describe 975027157 -
INFO server comment - RTPUDPTransport.bind[live/_definst_]: in:0.0.0.0/0.0.0.0:6
970 out:/127.0.0.1:58550
INFO server comment - RTPUDPTransport.bind[live/_definst_]: in:0.0.0.0/0.0.0.0:6
971 out:/127.0.0.1:58551
INFO server comment - RTPUDPTransport.bind[live/_definst_]: in:0.0.0.0/0.0.0.0:6
972 out:/127.0.0.1:58558
INFO server comment - RTPUDPTransport.bind[live/_definst_]: in:0.0.0.0/0.0.0.0:6
973 out:/127.0.0.1:58559
INFO stream play myStream -
INFO rtsp play 975027157 -
INFO server comment - LiveStreamPacketizerSmoothStreaming.addFragment[live/_defi
nst_/myStream]: Add chunk: type:video id:9 count:30 duration:3675
INFO server comment - UDPTransport.firstPacket: bind:0.0.0.0/0.0.0.0:6971 msg:/1
27.0.0.1:58551
INFO server comment - UDPTransport.firstPacket: bind:0.0.0.0/0.0.0.0:6973 msg:/1
27.0.0.1:58559

Note: Haven’t tried it with MediaCache (yet).

VLC will failover to TCP if UDP is blocked. You can force it to use TCP initially:

https://www.wowza.com/docs/how-to-configure-vlc-media-player-for-rtsp-rtp-playback-rtsp-rtp-interleaved-and-tuning

Or you can unblock UDP ports (0-65535) possibly in your firewall, or other point in your network.

Richard

my version is Wowza Media Server 3 Perpetual Edition 3.0.3 build882 and VLC is 1.1.11. also, wowza server and vlc are different computer

it is okay with

rtsp://username:password@ip:port/mediacache/_definst_/mp4:http/path1/filename.mp4

but still twice without username:password in URL.

the performance on video start time is degrading on the twice handshaking… :frowning: need helps!

my rtsp url of camera is rtsp://admin:Ab12345@.+@182.191.69.152:555/Streaming/Channels/1 and i play the stream on vlc but wowza cant open the stream i dont understand why