# Re-streaming an RTSP stream through Wowza Pro (RTSP/RTP)

**URL:** https://community.wowza.com/t/re-streaming-an-rtsp-stream-through-wowza-pro-rtsp-rtp/247
**Category:** Wowza Streaming Engine
**Created:** [June 3, 2010, 1:02pm UTC](https://community.wowza.com/t/re-streaming-an-rtsp-stream-through-wowza-pro-rtsp-rtp/247 "2010-06-03T13:02:08Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)
#### Post date: [June 3, 2010, 1:02pm UTC](https://community.wowza.com/t/re-streaming-an-rtsp-stream-through-wowza-pro-rtsp-rtp/247/1 "2010-06-03T13:02:08Z")

</div>

Step by step instructions for Re-streaming and RTSP stream through Wowza Pro.

- Download and install **Wowza Media Server** from the [Wowza Store](https://www.wowza.com/store.html)

- Create a new Wowza Pro application for streaming (may already exist if examples installed)

- Create the folder **[install-dir]/applications/rtplive**

- Create the folder **[install-dir]/conf/rtplive**

- Copy the file **[install-dir]/conf/Application.xml** into this new folder **[install-dir]/conf/rtplive**

- Edit the newly copied **Application.xml** and make the following changes:

- Change **Streams/StreamType** to **rtp-live**

- Add following properties to **Streams/Properties** container (there are several containers, be sure to add to correct container)

- Add following properties to **MediaCaster/Properties** container (there are several containers, be sure to add to correct container)

- _(for iPhone/iPod touch/Silverlight playback):_ Set the **LiveStreamPacketizers** to **cupertinostreamingpacketizer, smoothstreamingpacketizer** :

- _(for RTSP/RTP playback):_ Set the **RTP/Authentication/PlayMethod** to **none**

- _Smooth Streaming only:_ Add the following property to the application level container at the bottom of the **Application.xml** file (be sure to get the correct container - there are several in the **Application.xml** file)

- _Smooth Streaming only:_ Using a text editor create the file **[install-dir]/conf/clientaccesspolicy.xml** with the following content (For more information see the article [Network Security Access Restrictions in Silverlight](http://msdn.microsoft.com/en-us/library/cc645032%28VS.95%29.aspx)):

- _(for iPhone/iPod touch playback):_ In some cases it might be necessary to follow this guide to [Force a non-compliant H.264 live stream to use Baseline level 3 profile](http://community.wowza.com/t/-/85)

- Startup the Wowza Pro server

- **To play using Adobe Flash player:**

- **For IPhone, IPod Touch, IPad, Silverlight and RTSP/RTP players and devices** follow these steps first:

- Use the built-in alias method: Add a text file to the applications’s content folder with a .stream extension, “myRTSPStream.stream”, make its contents the RTSP url. Or, you can use the [StreamName Alias](http://community.wowza.com/t/-/47) package to create an alias. The following steps will assume you are using a .stream file in the content folder named “myRTSPStream.stream”

- _ **Optionally** _ Change the Application.xml StreamType from “rtp-live” to “live”. (This allows you to be in full control of the stream using the StreamManager in the next step. Otherwise, Flash players that play the stream will start it.)

- Start the stream in the StreamManager.

- Open http://[wowza-address]:8086/streammanager (You have to add a username and password to the /conf/admin.password file for access to the StreamManager).

- Click “Start Receiving Streaming” under the “rtplive” application.

- Select MediaCaster type “rtp” (default) or “rtp-record” (if you also want to record the stream on the server).

- Enter “myRTSPStream.stream” in the Stream Name box

- Click OK

- **To play using iPhone or iPod touch:**

- **To play using Microsoft Silverlight:**

- Download the Smooth Streaming player from here: [IIS\_Smooth\_Streaming\_Player\_Development\_Kit\_1.0\_Beta\_2.exe](http://www.microsoft.com/downloads/details.aspx?FamilyID=2b1ce605-3b99-49ad-8a26-1250f2acbbf6)

- Double click **IIS\_Smooth\_Streaming\_Player\_Development\_Kit\_1.0\_Beta\_2.exe** to extract the player

- Edit **Default.html** and change the **mediaSource** property (line 85) to:

- Double click **Default.html** and the video will begin to play.

- **To play using RTSP/RTP player or device:**

---

<div class="post-metadata">

### Author: ![steffina\_divya](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@steffina\_divya](https://community.wowza.com/u/steffina_divya)
#### Post date: [April 26, 2012, 2:14am UTC](https://community.wowza.com/t/re-streaming-an-rtsp-stream-through-wowza-pro-rtsp-rtp/247/2 "2012-04-26T02:14:10Z")

</div>

How to play in RTSP/RTP player?

or

What is RTSP/RTP player?

Where to paste that rtsp://address/live/stream url

---

<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: [April 26, 2012, 10:46am UTC](https://community.wowza.com/t/re-streaming-an-rtsp-stream-through-wowza-pro-rtsp-rtp/247/3 "2012-04-26T10:46:51Z")

</div>

Try VLC

[http://www.videolan.org/vlc/](http://www.videolan.org/vlc/)

But for general streaming to the desktop, Flash RTMP or Silverlight smooth client is recommended. RTSP is usually for mobile devices and some STBs.

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: [April 26, 2012, 12:08pm UTC](https://community.wowza.com/t/re-streaming-an-rtsp-stream-through-wowza-pro-rtsp-rtp/247/4 "2012-04-26T12:08:43Z")

</div>

In the VLC menu: Media \> Open Network Stream. Then enter the RTSP url

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 22, 2012, 11:08am UTC](https://community.wowza.com/t/re-streaming-an-rtsp-stream-through-wowza-pro-rtsp-rtp/247/5 "2012-05-22T11:08:15Z")

</div>

Change the /conf/live/Application.xml /StreamType to “live”, then start the stream in StreamManager. Take a look at this guide:

[https://www.wowza.com/docs/how-to-re-stream-video-from-an-ip-camera-rtsp-rtp-re-streaming](https://www.wowza.com/docs/how-to-re-stream-video-from-an-ip-camera-rtsp-rtp-re-streaming)

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: [February 23, 2013, 2:03pm UTC](https://community.wowza.com/t/re-streaming-an-rtsp-stream-through-wowza-pro-rtsp-rtp/247/6 "2013-02-23T14:03:12Z")

</div>

Sander,

Yes, take a look at IRTSPActionNotify:

[https://www.wowza.com/docs/how-to-use-the-irtspactionnotify-interface-to-listen-for-rtsp-stream-events](https://www.wowza.com/docs/how-to-use-the-irtspactionnotify-interface-to-listen-for-rtsp-stream-events)

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: [February 24, 2013, 12:41am UTC](https://community.wowza.com/t/re-streaming-an-rtsp-stream-through-wowza-pro-rtsp-rtp/247/7 "2013-02-24T00:41:11Z")

</div>

Sorry, that was the link I thought I was sharing, glad you found it

Richard

---

<div class="post-metadata">

### Author: ![Sander\_Kruger](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Sander\_Kruger](https://community.wowza.com/u/Sander_Kruger)
#### Post date: [February 23, 2013, 2:46pm UTC](https://community.wowza.com/t/re-streaming-an-rtsp-stream-through-wowza-pro-rtsp-rtp/247/8 "2013-02-23T14:46:16Z")

</div>

I have a working application that restreams an RTSP stream from an AXIS IP Camera. I set the StreamType to rtp-live so that Wowza automatically starts the stream when the first client requests it. Now what I need is some error handling. When the IP camera is not connected (or inaccessible), the Wowza logs show the following errors:

MediaCasterConnection.connect: Failed to connect[cam-ip:cam-port]: org.apache.mina.common.RuntimeIOException: Failed to get the session[ConnectException: null]

RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming. Cannot connect to server: rtsp://:@/axis-media/media.amp?videocodec=h264&streamprofile=low

Is there a way to register a handler to catch one of these 2 events?

Sander.

---

<div class="post-metadata">

### Author: ![Sander\_Kruger](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Sander\_Kruger](https://community.wowza.com/u/Sander_Kruger)
#### Post date: [February 23, 2013, 11:14pm UTC](https://community.wowza.com/t/re-streaming-an-rtsp-stream-through-wowza-pro-rtsp-rtp/247/9 "2013-02-23T23:14:27Z")

</div>

Richard, thank you for your quick reply. I was unable to get this working with the guide you linked. onRTPSessionCreate just never gets called. I tried to add implements-clauses to my class, but I could not get it working. I’m not sure if it’s a problem with my Application.xml or whether I need to do something else.

I had more luck with this guide:

[https://www.wowza.com/docs/imediacasternotify2-example](https://www.wowza.com/docs/imediacasternotify2-example)

If I add a mediacasterlistener on app start, I can handle the problems in onConnectFailure. The stream name is found in mediaCaster.getMediaCasterId() so I can match it to the requested stream.

Sander.

---

<div class="post-metadata">

### Author: ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)
#### Post date: [May 21, 2012, 2:46am UTC](https://community.wowza.com/t/re-streaming-an-rtsp-stream-through-wowza-pro-rtsp-rtp/247/10 "2012-05-21T02:46:14Z")

</div>

King,

Most likely the stream has not yet been published to Wowza. Have you started the stream in the stream manager? If so, what do you see in the Wowza console/logs when you start the stream? And, what are the contents of the .stream file?

---

<div class="post-metadata">

### Author: ![varun\_chowdary](https://avatars.discourse-cdn.com/v4/letter/v/49beb7/32.png) [@varun\_chowdary](https://community.wowza.com/u/varun_chowdary)
#### Post date: [May 21, 2012, 11:07am UTC](https://community.wowza.com/t/re-streaming-an-rtsp-stream-through-wowza-pro-rtsp-rtp/247/11 "2012-05-21T11:07:23Z")

</div>

> In the VLC menu: Media \> Open Network Stream. Then enter the RTSP url
> 
> Richard

Hi

I Made the configurations as per the instructions, But when i try to play the link it is throwing error as “open of `rtsp://[wiwza - ip]:1935/live/myRTSPStream.stream’ failed”

please help.

Thanks in Advance

---

<div class="post-metadata">

### Author: ![varun\_chowdary](https://avatars.discourse-cdn.com/v4/letter/v/49beb7/32.png) [@varun\_chowdary](https://community.wowza.com/u/varun_chowdary)
#### Post date: [May 22, 2012, 7:21am UTC](https://community.wowza.com/t/re-streaming-an-rtsp-stream-through-wowza-pro-rtsp-rtp/247/12 "2012-05-22T07:21:33Z")

</div>

> King,
> 
> Most likely the stream has not yet been published to Wowza. Have you started the stream in the stream manager? If so, what do you see in the Wowza console/logs when you start the stream? And, what are the contents of the .stream file?

Hi Randall,

The stream is published in the rtplive application, The stream is published automatically, i didn’t published it manually, in the .stream file rtsp link of the other server.(rtsp://[IP]:554/Channel.sdp)

Please suggest the configurations i need to change.

Thanks in Advance

---

<div class="post-metadata">

### Author: ![varun\_chowdary](https://avatars.discourse-cdn.com/v4/letter/v/49beb7/32.png) [@varun\_chowdary](https://community.wowza.com/u/varun_chowdary)
#### Post date: [May 22, 2012, 7:57am UTC](https://community.wowza.com/t/re-streaming-an-rtsp-stream-through-wowza-pro-rtsp-rtp/247/13 "2012-05-22T07:57:25Z")

</div>

I Got Errors as,

WARN server comment 2012-05-22 07:39:20 1511828828 192.168.60.212 - 0 0 76198.391 - - – - - - myRTSPStream.stream MediaReaderH264.open[2]: java.lang.Exception: QTUtils.parseQTMediaContainer: File is missing ‘moov’ atom.

WARN server comment 2012-05-22 07:46:29 - - - - - 76630.261 - - - - – - - MediaReaderFLV.open: Metadata appears to be bad: myRTSPStream.stream

WARN server comment 2012-05-22 07:46:54 1586826132 192.168.60.212 - 0 0 26.064 - - - – - - myRTSPStream.stream MediaReaderH264.open[2]: java.lang.Exception: QTUtils.parseQTMediaContainer: File is missing ‘moov’ atom.

WARN server comment 2012-05-22 07:47:06 1959361338 192.168.60.212 - 0 0 37.738 - - - – - - myRTSPStream.stream MediaReaderH264.open[2]: java.lang.Exception: QTUtils.parseQTMediaContainer: File is missing ‘moov’ atom.

WARN server comment 2012-05-22 07:47:16 1195137529 192.168.60.212 - 0 0 47.58 - - - – - - myRTSPStream.stream MediaReaderH264.open[2]: java.lang.Exception: QTUtils.parseQTMediaContainer: File is missing ‘moov’ atom.

---

<div class="post-metadata">

### Author: ![steffina\_divya](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@steffina\_divya](https://community.wowza.com/u/steffina_divya)
#### Post date: [April 26, 2012, 3:49am UTC](https://community.wowza.com/t/re-streaming-an-rtsp-stream-through-wowza-pro-rtsp-rtp/247/14 "2012-04-26T03:49:29Z")

</div>

Thanks Richard,

How to view output in vlc…

FMLE-\>wowza-\>vlc

I Want to play the stream in vlc

Help plz…
