# Re-Streaming an HLS from wowza to wowza

**URL:** <https://community.wowza.com/t/re-streaming-an-hls-from-wowza-to-wowza/34953>\
**Category:** Wowza Streaming Engine\
**Created:** [June 23, 2011, 9:17pm UTC](https://community.wowza.com/t/re-streaming-an-hls-from-wowza-to-wowza/34953 "2011-06-23T21:17:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shekar\_KCB](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@shekar\_KCB](https://community.wowza.com/u/shekar_KCB)\
**Post date:** [June 23, 2011, 9:17pm UTC](https://community.wowza.com/t/re-streaming-an-hls-from-wowza-to-wowza/34953/1 "2011-06-23T21:17:30Z")

</div>

Hi All,

I am looking at restreaming an HLS url from 1 wowza server to another. My encoder would send RTMP to perticluar application under wowza , it is well recevied by wowza and playing fine.

It has 3 multibitrate streams, and sends using

```auto
livestream%i

```

, i could play them respectively for livestream1, livestream2, livestream3. And i created an smil file w.r.to sstreams targetting bitrates on it, even the smil file setup works great.

Finally an HLS url

```auto
 http://192.168.1.123:1935/live/smil:livestream.smil/playlist.m3u8 

```

where smil file contains

```auto
<smil>
        <head>
        </head>
        <body>
                <switch>
                        <video src="livestream1" system-bitrate="800000"/>
                        <video src="livestream2" system-bitrate="1200000"/>
                        <video src="livestream3" system-bitrate="2000000"/>
                </switch>
        </body>
</smil>

```

also works great. my ipod is able to switch between the streams.

and rtmp urls

```auto
rtmp://192.168.1.123:1935/live/livestream1
rtmp://192.168.1.123:1935/live/livestream2
rtmp://192.168.1.123:1935/live/livestream3

```

also works great.

Now, i need to use some other wowza and restream this stream. I was able to restream rtmp streams using [this](https://www.wowza.com/docs/how-to-re-stream-video-from-an-ip-camera-rtsp-rtp-re-streaming) thread, and with live repeater origin - edge configurations. That case i use to give the rtmp url in one of the /content/name.stream files, and it use to work.

But currently i am trying to restream an HLS url (or 3 different rtmp urls for same application) , what should be the setup to push/pull from/to HLS? is it possible? i can’t do rtmp restreaming because in my case rtmp has 3 different streamnames for single application…

Any pointers are greatly helpful.

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:** [June 23, 2011, 6:40pm UTC](https://community.wowza.com/t/re-streaming-an-hls-from-wowza-to-wowza/34953/2 "2011-06-23T18:40:47Z")

</div>

Take a look at this guide, the bottom section shows the LiveStreamingPacketizers to use on origin and edge. In this setup, the origin does the work of packetizing:

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

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:** [June 24, 2011, 11:50am UTC](https://community.wowza.com/t/re-streaming-an-hls-from-wowza-to-wowza/34953/3 "2011-06-24T11:50:40Z")

</div>

Each .stream file can only contain one stream. Create /content/channel2.stream, etc.

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:** [June 27, 2011, 12:06pm UTC](https://community.wowza.com/t/re-streaming-an-hls-from-wowza-to-wowza/34953/4 "2011-06-27T12:06:12Z")

</div>

It can help to pre-start the edge stream with StreamManager or StartUpStreams.xml using MediaCaster type “liverepeater”. Start the stream using the .steam file names.

You can also set up the ModuleMediaCasterStreamMonitorAdvanced on the edge:

[https://www.wowza.com/docs/how-to-enable-advanced-monitoring-and-resetting-of-mediacaster-streams](https://www.wowza.com/docs/how-to-enable-advanced-monitoring-and-resetting-of-mediacaster-streams))

This will reset unhealthy streams, and would also show if if there is network problems between the edge and origin.

Richard

---

<div class="post-metadata">

**Author:** ![shekar\_KCB](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@shekar\_KCB](https://community.wowza.com/u/shekar_KCB)\
**Post date:** [June 24, 2011, 9:46am UTC](https://community.wowza.com/t/re-streaming-an-hls-from-wowza-to-wowza/34953/5 "2011-06-24T09:46:23Z")

</div>

I still have origin-edge configurations on the 2 wowza servers. Question is what do i put in /content/channel.stream file? earlier it was only one stream

```auto
rtmp://192.168.1.123:1935/live/livestream

```

where as now i am receiving 3 streams from the encoder for single application (similar to FMLE)

```auto
 rtmp://192.168.1.123:1935/live/livestream1
rtmp://192.168.1.123:1935/live/livestream2
rtmp://192.168.1.123:1935/live/livestream3

```

Thanks,

Shekar

---

<div class="post-metadata">

**Author:** ![shekar\_KCB](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@shekar\_KCB](https://community.wowza.com/u/shekar_KCB)\
**Post date:** [June 27, 2011, 1:05pm UTC](https://community.wowza.com/t/re-streaming-an-hls-from-wowza-to-wowza/34953/6 "2011-06-27T13:05:28Z")

</div>

Thanks for the reply Richard.

Looks like something is working.

Below is my setup -

Encoder - rtmp push (for 1 applications with 3 streams) - wowza .

Now i made origin wowza as “liverepeater-origin”, wowza sitting on amazon as “liverepeater-edge”. Added origin url on the edge - and it is able to pull from origin server.

```auto
rtmp://ORIGIN_PUBLIC_IP:1935/live/

```

(i think this made the difference).

No .stream files on the origin as well as edge… !!! but its working.

Copied the smil file w.r.to bitrates to the edge server,

then i played the edge server smil, and it played… 🙂

But i see lot of difference between the quality on the edge and origin ☹ also edge is more buffering than origin… any idea?

Thanks.
