# How to re-stream an unprotected stream from FMS or a CDN such as Akamai

**URL:** https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87
**Category:** Wowza Streaming Engine
**Created:** [January 26, 2010, 12:31pm UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87 "2010-01-26T12:31:54Z")
**Posts on this page:** 20
**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: [January 26, 2010, 12:31pm UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/1 "2010-01-26T12:31:54Z")

</div>

[https://www.wowza.com/docs/how-to-re-stream-an-unprotected-stream-from-adobe-media-server-or-a-cdn](https://www.wowza.com/docs/how-to-re-stream-an-unprotected-stream-from-adobe-media-server-or-a-cdn)

---

<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 12, 2010, 5:03pm UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/2 "2010-03-12T17:03:16Z")

</div>

No, we currently do not have a way to support query parameters through the live stream repeater process. I believe they will get stripped off. We may look at this in a future release but at this time it is not possible.

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: [May 13, 2010, 12:23pm UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/3 "2010-05-13T12:23:55Z")

</div>

If you are using StartupStreams.xml or the stream manager to start the streams and you don’t stop the stream it will continue to run. With iPhone and Silverlight packetization we need to keep packetizing the stream. If you have some event you can queue off of to start and stop the streams then you can use the IApplicationInstance.startMediaCasterStream and IApplicationInstance.stopMediaCasterStream to trigger the start and stop using the server-side API. The trick if to find an event from which to trigger the start/stop of the stream. You can certainly write your own scheduler that does it based on time of day.

Charlie

---

<div class="post-metadata">

### Author: ![Guillermo\_Revuelta](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@Guillermo\_Revuelta](https://community.wowza.com/u/Guillermo_Revuelta)
#### Post date: [February 1, 2010, 12:01pm UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/4 "2010-02-01T12:01:05Z")

</div>

I haven’t worked deep on the code but could this be used to re-stream from a FMS (in a local installation not in Akamai) ?

**Edit: Yes, it’s possible 🙂**

Thanks Charlie

---

<div class="post-metadata">

### Author: ![Guillermo\_Revuelta](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@Guillermo\_Revuelta](https://community.wowza.com/u/Guillermo_Revuelta)
#### Post date: [September 17, 2010, 12:57pm UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/5 "2010-09-17T12:57:27Z")

</div>

Hi Charlie, I need help. I want to use this method, but instead of using a single rtmp stream, I want to use two different rtmp origins. I want each one to be a different quality in a smil for iphone.

Do you think is possible (and how I do it if is)?

Thanks

---

<div class="post-metadata">

### Author: ![vass\_vassilev](https://avatars.discourse-cdn.com/v4/letter/v/73ab20/32.png) [@vass\_vassilev](https://community.wowza.com/u/vass_vassilev)
#### Post date: [September 3, 2010, 1:07pm UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/6 "2010-09-03T13:07:04Z")

</div>

it looks alike for every stream I have to modify the file manually , is it any way to do that automatically ?

---

<div class="post-metadata">

### Author: ![Sean\_Berner](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@Sean\_Berner](https://community.wowza.com/u/Sean_Berner)
#### Post date: [August 25, 2010, 6:03pm UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/7 "2010-08-25T18:03:43Z")

</div>

Is it possible to use one server to do more than one re-stream? I have one stream working with the above settings just fine but I’m trying to add another one that has a different source feed and it doesn’t seem to be working. Of course I need to change the name of the stream but in the config what should be adjusted to to use a different name? Thanks for any help you can provide.

Sean

---

<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 12, 2010, 1:01pm UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/8 "2010-03-12T13:01:18Z")

</div>

What do you mean by “token based streaming”?

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: [February 1, 2010, 11:25pm UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/9 "2010-02-01T23:25:56Z")

</div>

You can use /conf/StartupStreams.xml to start MediaCaster streams when the Server starts.

I think you can leave the Applicaiton.xml /StreamType “live”, set the MediaCaster type to “liverepeater” in the StartupStreams.xml file, and set Application.xml /LiveStreamPacketizer = “cupertinostreamingpacketizer”, and will work on IPhone.

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 13, 2010, 4:19pm UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/10 "2010-03-13T16:19:58Z")

</div>

You still can’t subscribe as such from server to server, and I don’t think the source for livestream repeater is available to modify, but, if it helps, you can use a live stream(s) as a source for a Stream class stream. You make the “start” parameter “-2”

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: [August 20, 2010, 1:02pm UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/11 "2010-08-20T13:02:04Z")

</div>

This either means Wowza is already started or another program is running and using port 1935. You might be starting the server in stand alone mode when Wowza is running as a service. If you are using putty or cmd window, control-c should get you back to a prompt.

You can open another console and run [wowza-install-dir]/bin/shutdown.sh (shutdown.bat)

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: [August 26, 2010, 12:38am UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/12 "2010-08-26T00:38:36Z")

</div>

Yes, of course, you can have many streams with different sources and different names.

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: [September 3, 2010, 9:07pm UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/13 "2010-09-03T21:07:45Z")

</div>

If you are referring to StreamManager, you can automate using /conf/StartUpStreams.xml

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: [September 3, 2010, 9:36pm UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/14 "2010-09-03T21:36:30Z")

</div>

> it looks alike for every stream I have to modify the file manually , is it any way to do that automatically ?

What were you referring to?

StreamManager is one way to start pulling a MediaCaster:

[http://community.wowza.com/t/-/82](http://community.wowza.com/t/-/82)

/conf/StartUpStream.xml is another way.

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: [September 4, 2010, 8:24pm UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/15 "2010-09-04T20:24:39Z")

</div>

You probably don’t need StreamManager in that case.

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: [September 17, 2010, 1:34pm UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/16 "2010-09-17T13:34:10Z")

</div>

You can repeat step #4 as many times as you want, creating different . stream files, and each one can be a different server + stream name or smil file.

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: [September 17, 2010, 2:49pm UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/17 "2010-09-17T14:49:31Z")

</div>

You can use the .stream file names in the smil. Put the smil file and the .stream files in the edge content folder:

edge server /content/myStream.smil:

```auto
<smil>
<head>
</head>
<body>
<switch>
<video src="streamname1.stream" system-bitrate="10480000"/>
<video src="streamname2.stream" system-bitrate="7480000"/>
<video src="streamname3.stream" system-bitrate="3480000"/>
</switch>
</body>
</smil>

```

edge server /content/streamname1.stream:

```auto
rtmp://[wowza-origin-address]/liverepeater/stream1

```

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: [September 20, 2010, 12:17pm UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/18 "2010-09-20T12:17:24Z")

</div>

You’re welcome. Glad you got it working. Thanks for the update.

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: [July 27, 2011, 5:04pm UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/19 "2011-07-27T17:04:19Z")

</div>

Either one of those is correct. The first one is usual in this case.

Make sure your text editor doesn’t add .txt extension

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: [July 29, 2011, 12:43am UTC](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87/20 "2011-07-29T00:43:36Z")

</div>

Have you seen this guide:

[https://www.wowza.com/docs/how-to-configure-a-live-stream-repeater](https://www.wowza.com/docs/how-to-configure-a-live-stream-repeater)

Go through that, follow the 1,2,3 setup, then the A,B,C test.

Richard

[Next page](https://community.wowza.com/t/how-to-re-stream-an-unprotected-stream-from-fms-or-a-cdn-such-as-akamai/87.md?page=2)
