# RTSP Authentication

**URL:** <https://community.wowza.com/t/rtsp-authentication/34886>\
**Category:** Wowza Streaming Engine\
**Created:** [March 9, 2011, 2:39pm UTC](https://community.wowza.com/t/rtsp-authentication/34886 "2011-03-09T14:39:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rick\_Hall](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@Rick\_Hall](https://community.wowza.com/u/Rick_Hall)\
**Post date:** [March 9, 2011, 2:39pm UTC](https://community.wowza.com/t/rtsp-authentication/34886/1 "2011-03-09T14:39:34Z")

</div>

I may be writing this incorrectly, but here’s what I am trying to do. I’m using:

Wowza Media Server 2.2.3.08 build27169

I’m using Wowza to access an IP camera through an RTSP stream. The IP camera I’m accessing supports both Basic and Digest authentication. If I set the IP camera to “Digest”, how do I configure Wowza to pull an RTSP stream from it? Thanks!

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [March 9, 2011, 8:48pm UTC](https://community.wowza.com/t/rtsp-authentication/34886/2 "2011-03-09T20:48:21Z")

</div>

I don’t think there is a way. Use basic and embed in url like this:

```auto
rtsp://user:password@[axis-camera-address]:554/axis-media/media.amp?streamprofile=profile1

```

Richard

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [March 11, 2011, 5:15am UTC](https://community.wowza.com/t/rtsp-authentication/34886/3 "2011-03-11T05:15:37Z")

</div>

Yes, that is correct.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [March 15, 2011, 3:44am UTC](https://community.wowza.com/t/rtsp-authentication/34886/4 "2011-03-15T03:44:47Z")

</div>

If you can put a camera on the Internet with digest auth turned on and send us the RTSP URL that should work (with username/password) to support@wowza.com then we can take a look at it.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [June 1, 2011, 4:31am UTC](https://community.wowza.com/t/rtsp-authentication/34886/5 "2011-06-01T04:31:54Z")

</div>

This does seem to be a problem. Can you put this camera/encoder on the Internet and send us the RTSP URL so we can take a look at it? Send the RTSP URL and authentication information to support@wowza.com.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [June 1, 2011, 6:26am UTC](https://community.wowza.com/t/rtsp-authentication/34886/6 "2011-06-01T06:26:04Z")

</div>

I will see what I can do without it.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [June 1, 2011, 8:48am UTC](https://community.wowza.com/t/rtsp-authentication/34886/7 "2011-06-01T08:48:30Z")

</div>

This patch should do the trick:

[WowzaMediaServer2.2.4-patch2.zip](https://www.wowza.com/downloads/WowzaMediaServer-2-2-4/WowzaMediaServer2.2.4-patch2.zip)

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [June 7, 2011, 3:25am UTC](https://community.wowza.com/t/rtsp-authentication/34886/8 "2011-06-07T03:25:42Z")

</div>

At this time it is not configurable.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [June 8, 2011, 7:38am UTC](https://community.wowza.com/t/rtsp-authentication/34886/9 "2011-06-08T07:38:15Z")

</div>

Redownload and install this patch to see if it fixes it:

[WowzaMediaServer2.2.4-patch2.zip](https://www.wowza.com/downloads/WowzaMediaServer-2-2-4/WowzaMediaServer2.2.4-patch2.zip)

I made one small change that might help. I don’t have a good way to setup a quick test.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [June 8, 2011, 8:03am UTC](https://community.wowza.com/t/rtsp-authentication/34886/10 "2011-06-08T08:03:28Z")

</div>

Yoiu are not running the correct version. The version being reported is:

User-Agent: Wowza Media Server Pro (Wowza Media Server 2 Perpetual 2.2.3.09 build27256)

It should be 2.2.4.02.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [June 8, 2011, 1:18pm UTC](https://community.wowza.com/t/rtsp-authentication/34886/11 "2011-06-08T13:18:41Z")

</div>

UDP traffic is not reaching Wowza. I might try using the forceInterleave property as suggested in the guide to avoid UDP and rather use RTSP/RTP over TCP. If this is not an option, then debug why UDP traffic is being blocked. It could be a firewall issue.

Charlie

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [March 9, 2011, 11:42pm UTC](https://community.wowza.com/t/rtsp-authentication/34886/12 "2011-03-09T23:42:18Z")

</div>

For IP camera, I don’t think so. I tested: added username password to /conf/publish.password and tried to connect to axis cam without username:pwd in the url, and it didn’t work

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [March 10, 2011, 1:13am UTC](https://community.wowza.com/t/rtsp-authentication/34886/13 "2011-03-10T01:13:54Z")

</div>

Update: If the camera is set for digest authentication, you do need the username and password in the URL as we’ve been doing, but Wowza is not sending this back to the camera in clear text.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [March 10, 2011, 1:18am UTC](https://community.wowza.com/t/rtsp-authentication/34886/14 "2011-03-10T01:18:51Z")

</div>

You might need patch 9 tho

[https://www.wowza.com/downloads/WowzaMediaServer-2-2-3/WowzaMediaServer2.2.3-patch9.zip](https://www.wowza.com/downloads/WowzaMediaServer-2-2-3/WowzaMediaServer2.2.3-patch9.zip)

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 31, 2011, 7:53pm UTC](https://community.wowza.com/t/rtsp-authentication/34886/15 "2011-05-31T19:53:33Z")

</div>

You will have to provide more detail for us to help.

Richard

---

<div class="post-metadata">

**Author:** ![Rick\_Hall](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@Rick\_Hall](https://community.wowza.com/u/Rick_Hall)\
**Post date:** [March 9, 2011, 2:57pm UTC](https://community.wowza.com/t/rtsp-authentication/34886/16 "2011-03-09T14:57:58Z")

</div>

That’s what I am currently doing, but isn’t it passing it in plain text? There is nothing in Wowza that supports Digest Authentication?

---

<div class="post-metadata">

**Author:** ![Rick\_Hall](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@Rick\_Hall](https://community.wowza.com/u/Rick_Hall)\
**Post date:** [March 11, 2011, 7:10am UTC](https://community.wowza.com/t/rtsp-authentication/34886/17 "2011-03-11T07:10:14Z")

</div>

You are correct, patch 9 is required to make this work. I installed patch 9, changed the camera to digest and it works perfectly. Since I was originally told that this functionality doesn’t exist in Wowza, I’d like to be 100% assured that the username/password is no longer being sent to the camera in plain text through RTSP when the camera is set to digest mode. Is this correct? Thanks!

---

<div class="post-metadata">

**Author:** ![Rick\_Hall](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@Rick\_Hall](https://community.wowza.com/u/Rick_Hall)\
**Post date:** [March 14, 2011, 9:45pm UTC](https://community.wowza.com/t/rtsp-authentication/34886/18 "2011-03-14T21:45:45Z")

</div>

I tested this incorrectly. Wowza was connected to a camera through RTSP using basic authentication. I then switched the camera to Digest Authentication. There were no errors, so I assumed it was working fine. However, as soon as I killed the stream and then started it up again, I got the errors:

RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: Authentication required[401]: Authorization failed.

If the stream is already connected and the authentication method is changed to “Digest”, it will still work just fine since it doesn’t need to authenticate. Please let me know how to get this to work. Thanks!

---

<div class="post-metadata">

**Author:** ![a\_Dorn](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@a\_Dorn](https://community.wowza.com/u/a_Dorn)\
**Post date:** [May 31, 2011, 5:56pm UTC](https://community.wowza.com/t/rtsp-authentication/34886/19 "2011-05-31T17:56:03Z")

</div>

I have patched the Server and have still problems to receive an RTSP-Stream with basic Auth via Wowza. The VLC-Player is working,

I compared both RTSP communications via Wireshark, and noticed, that Wowza sends the RTSP authorization only once and not like VLC with every RTSP-Request.

How is it possible to fix this problem?

adorn

---

<div class="post-metadata">

**Author:** ![a\_Dorn](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@a\_Dorn](https://community.wowza.com/u/a_Dorn)\
**Post date:** [June 1, 2011, 12:41pm UTC](https://community.wowza.com/t/rtsp-authentication/34886/20 "2011-06-01T12:41:25Z")

</div>

Hi,

Here are more detailed information about my issue.

We try to receive RTSP Video streams from an external managed Server.

The Server needs a Basic Authentication, and works perfect with the VLC-Player.

If Wowza tries to get the streams, it fails on the Authentication.

Regards

adorn

The TCP-Dumps of both RTSP-Sessions:

Wowza(fails):

* * *

DESCRIBE rtsp://10.0.0.20/channel01 RTSP/1.0

CSeq: 1

Accept: application/sdp

User-Agent: Wowza Media Server Pro (Wowza Media Server 2 Perpetual 2.2.4 build27452)

RTSP/1.0 401 Unauthorized

CSeq: 1

WWW-Authenticate: Basic realm="/"

DESCRIBE rtsp://10.0.0.20/channel01 RTSP/1.0

CSeq: 2

Accept: application/sdp

User-Agent: Wowza Media Server Pro (Wowza Media Server 2 Perpetual 2.2.4 build27452)

Authorization: Basic ABCDEFGHIJKlomop=

RTSP/1.0 200 OK

CSeq: 2

Content-Base: rtsp://10.0.0.20/channel01

Content-Type: application/sdp

Content-Length: 307

v=0

o=- 1659267273 1908559390 IN IP4 10.0.0.30

s=H264 Stream 1

c=IN IP4 0.0.0.0

t=0 0

a=range:npt=now-

m=video 0 RTP/AVP 96

a=control:rtsp://10.0.0.20/channel01/livevideo

a=rtpmap:96 H264/90000

a=fmtp:96 profile-level-id=42E01E;sprop-parameter-sets=Z0LgHtoC0Em/8AEAAPEAAA4QAAK/IIQ=,aM4zyA==

SETUP rtsp://10.0.0.20/channel01/livevideo RTSP/1.0

Transport: RTP/AVP/UDP;unicast;client\_port=7016-7017;

CSeq: 3

User-Agent: Wowza Media Server Pro (Wowza Media Server 2 Perpetual 2.2.4 build27452)

**RTSP/1.0 401 Unauthorized**

**CSeq: 0**

**WWW-Authenticate: Basic realm="/"**

TEARDOWN rtsp://10.0.0.20/channel01 RTSP/1.0

CSeq: 4

User-Agent: Wowza Media Server Pro (Wowza Media Server 2 Perpetual 2.2.4 build27452)

RTSP/1.0 401 Unauthorized

CSeq: 4

WWW-Authenticate: Basic realm="/"

VLC-Player (working)

* * *

RTSP/1.0 401 Unauthorized

CSeq: 2

WWW-Authenticate: Basic realm="/"

OPTIONS rtsp://10.0.0.20:554/channel02 RTSP/1.0

CSeq: 3

Authorization: Basic ABCDEFGHIJKlomop=

User-Agent: LibVLC/1.1.8 (LIVE555 Streaming Media v2011.01.24)

RTSP/1.0 200 OK

CSeq: 3

Public: DESCRIBE, PLAY, PAUSE, SETUP, TEARDOWN

DESCRIBE rtsp://10.0.0.20:554/channel02 RTSP/1.0

CSeq: 4

User-Agent: LibVLC/1.1.8 (LIVE555 Streaming Media v2011.01.24)

Accept: application/sdp

RTSP/1.0 401 Unauthorized

CSeq: 4

WWW-Authenticate: Basic realm="/"

DESCRIBE rtsp://10.0.0.20:554/channel02 RTSP/1.0

CSeq: 5

Authorization: Basic ABCDEFGHIJKlomop=

User-Agent: LibVLC/1.1.8 (LIVE555 Streaming Media v2011.01.24)

Accept: application/sdp

RTSP/1.0 200 OK

CSeq: 5

Content-Base: rtsp://10.0.0.20:554/channel02

Content-Type: application/sdp

Content-Length: 311

v=0

o=- 1647741088 1260738908 IN IP4 10.0.0.30

s=H264 Stream 1

c=IN IP4 0.0.0.0

t=0 0

a=range:npt=now-

m=video 0 RTP/AVP 96

a=control:rtsp://10.0.0.20:554/channel02/livevideo

a=rtpmap:96 H264/90000

a=fmtp:96 profile-level-id=42E01E;sprop-parameter-sets=Z0LgHtoC0Em/8AEAAPEAAA4QAAK/IIQ=,aM4zyA==

SETUP rtsp://10.0.0.20:554/channel02/livevideo RTSP/1.0

CSeq: 6

**Authorization: Basic ABCDEFGHIJKlomop=**

User-Agent: LibVLC/1.1.8 (LIVE555 Streaming Media v2011.01.24)

Transport: RTP/AVP;unicast;client\_port=55162-55163;

RTSP/1.0 200 OK

CSeq: 6

Session: 00020000; timeout=30

Transport: RTP/AVP;unicast;client\_port=55162-55163

PLAY rtsp://10.0.0.20:554/channel02 RTSP/1.0

CSeq: 7

**Authorization: Basic ABCDEFGHIJKlomop=**

User-Agent: LibVLC/1.1.8 (LIVE555 Streaming Media v2011.01.24)

Session: 00020000

Range: npt=0.000-

RTSP/1.0 200 OK

CSeq: 7

Session: 00020000

Range: npt=now-

[Next page](https://community.wowza.com/t/rtsp-authentication/34886.md?page=2)
