Wowza Community

Re-Streaming an HLS from wowza to wowza

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

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

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

where smil file contains

<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

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 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.

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

Richard

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

Richard

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)

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

Richard

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

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)

 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

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.

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… :slight_smile:

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

Thanks.