# Wowza to Cloudfront and Set-Top-Box?

**URL:** https://community.wowza.com/t/wowza-to-cloudfront-and-set-top-box/43854
**Category:** Wowza Streaming Engine
**Created:** [September 10, 2014, 3:23pm UTC](https://community.wowza.com/t/wowza-to-cloudfront-and-set-top-box/43854 "2014-09-10T15:23:48Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Joseph\_Nova](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@Joseph\_Nova](https://community.wowza.com/u/Joseph_Nova)
#### Post date: [September 10, 2014, 3:23pm UTC](https://community.wowza.com/t/wowza-to-cloudfront-and-set-top-box/43854/1 "2014-09-10T15:23:48Z")

</div>

Hey all, I setup live streaming in AWS using a Cloudformation template. Works great. I’m trying to figure out how to have Wowza also send this stream to a set-top-box without going thru Cloudfront. I will use the Cloudfront HLS stream for my embedded player. Playing the HLS steam in my set-top-box has huge latency. I’m hoping to bypass Cloudfront to lower the latency. My set-top-box plays HLS, RTP, TS or RTMP formats.

I’m open to ideas on how to make this work. Thanks.

---

<div class="post-metadata">

### Author: ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)
#### Post date: [September 10, 2014, 10:49pm UTC](https://community.wowza.com/t/wowza-to-cloudfront-and-set-top-box/43854/2 "2014-09-10T22:49:27Z")

</div>

Hi,

You can certainly play direct from the origin server using the protocols mentioned.

RTMP playback is quite simple to implement.

Here’s a guide for [RTMP playback.](https://www.wowza.com/docs/how-to-playback-with-the-example-adobe-flash-players-rtmp%28RTMP%29)

Daren

---

<div class="post-metadata">

### Author: ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)
#### Post date: [September 14, 2014, 10:32pm UTC](https://community.wowza.com/t/wowza-to-cloudfront-and-set-top-box/43854/3 "2014-09-14T22:32:23Z")

</div>

Hi,

If you need to push the stream to the set-top box that’s listening on a multicast IP then you’ll need the [Push Publishing function described here.](https://www.wowza.com/docs/how-to-push-streams-to-cdns-and-other-services-push-publishing%28Push-Publishing%29).

The function is built-in and supports pushing of RTP and MPEG-TS to supporting multicast networks.

Daren

---

<div class="post-metadata">

### Author: ![Joseph\_Nova](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@Joseph\_Nova](https://community.wowza.com/u/Joseph_Nova)
#### Post date: [September 12, 2014, 7:23am UTC](https://community.wowza.com/t/wowza-to-cloudfront-and-set-top-box/43854/4 "2014-09-12T07:23:05Z")

</div>

Daren, I agree. Playback is quite simple. I need help telling Wowza how to stream to a set-top-box listening on a static IP on port 4001.

Here’s what I’m doing:

Sending a live RTMP stream to Wowza which then goes to Cloudfront and eventually ends up as a HLS stream in my embedded player.

Here’s what I need:

Sending a live RTMP stream to Wowza. Wowza sends one stream to Cloudfront and another stream to a set-top-box listening on IP xxx.xxx.xxx.x:4001

I’m on Wowza Media Server 4. I’ve gone through the documentation. I’m confused on what is the best solution.

---

<div class="post-metadata">

### Author: ![Joseph\_Nova](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@Joseph\_Nova](https://community.wowza.com/u/Joseph_Nova)
#### Post date: [September 14, 2014, 7:54am UTC](https://community.wowza.com/t/wowza-to-cloudfront-and-set-top-box/43854/5 "2014-09-14T07:54:06Z")

</div>

Anyone??

---

<div class="post-metadata">

### Author: ![Joseph\_Nova](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@Joseph\_Nova](https://community.wowza.com/u/Joseph_Nova)
#### Post date: [October 2, 2014, 7:08pm UTC](https://community.wowza.com/t/wowza-to-cloudfront-and-set-top-box/43854/6 "2014-10-02T19:08:29Z")

</div>

Here’s an update so folks know how I got this to work. As I said in my original post, I use a Cloudformation template in Amazon Web Serivices(AWS) to create a Wowza livestream to Cloudfront. The template is great because it quickly creates the necessary resources. The Bad: livestreaming had a 20-30 second delay thru Cloudfront and there was no rtmp or rtsp output stream for my set-top-box.

To quickly fix this, I logged into the Wowza instance after creating it using the Cloudformation template. I then deleted the the livecf application and created another application with the same name using the streams I needed (HLS, RTMP). I made sure my encoder was transmitting to Wowza then used the ‘Test Player’ button to get the rtmp link for my set-top-box. This worked great! Now my set-top-box was reading the feed directly from Wowza and bypassing Cloudfront. The live delay was reduced to less than 4 seconds. I still had the delay in Cloudfront which didn’t matter for my needs.
