# S3 + Wowza EC2 + HLS created on the fly

**URL:** <https://community.wowza.com/t/s3-wowza-ec2-hls-created-on-the-fly/41413>\
**Category:** Wowza Streaming Engine\
**Created:** [October 14, 2013, 2:23am UTC](https://community.wowza.com/t/s3-wowza-ec2-hls-created-on-the-fly/41413 "2013-10-14T02:23:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_King](https://avatars.discourse-cdn.com/v4/letter/t/f475e1/32.png) [@Tom\_King](https://community.wowza.com/u/Tom_King)\
**Post date:** [October 14, 2013, 2:23am UTC](https://community.wowza.com/t/s3-wowza-ec2-hls-created-on-the-fly/41413/1 "2013-10-14T02:23:10Z")

</div>

Hi All,

I’m trying to get HLS Streaming working properly:

I’ve got an S3 Bucket which contains 100K of mp3s, mp4s: (audio only!) of varying bitrates, encoding etc… which my Wowza EC2 instance reads (i.e vods3);

Cloudfront is providing RTMP already from the S3 bucket, but I want to dynamically create HLS from the mp3/mp4s in the S3 bucket via Wowza

When I connect JW player to the following url:

[http://ec2-xx-xxx-xxx-xxx.eu-west-1.compute.amazonaws.com:1935/vods3/_definst_/mp4:amazons3/mybucket/folder1/folder2/file.mp4/playlist.m3u8](http://ec2-xx-xxx-xxx-xxx.eu-west-1.compute.amazonaws.com:1935/vods3/_definst_/mp4:amazons3/mybucket/folder1/folder2/file.mp4/playlist.m3u8)

or if mp3:

[http://ec2-xx-xxx-xxx-xxx.eu-west-1.compute.amazonaws.com:1935/vods3/_definst_/mp3:amazons3/mybucket/folder1/folder2/file.mp3/playlist.m3u8](http://ec2-xx-xxx-xxx-xxx.eu-west-1.compute.amazonaws.com:1935/vods3/_definst_/mp3:amazons3/mybucket/folder1/folder2/file.mp3/playlist.m3u8)

MP3s work relatively well, except a 10 second latency at the beginning.

MP4s/M4as etc have a different problem, each segment has a 10 second delay (and a small gap inbetween).

Its worth noting I’ve forced Wowza to serve .ts for audio, as it was trying to do .aac which JWPlayer doesn’t like.

Please see below:

MP3:

![](http://i.imgur.com/6jeRXA3.png)

MP4:

![](http://i.imgur.com/DMJ0d1I.png)

Is this just general latency, or overhead from conversion?

Can I improve this in anyway?

Ta

---

<div class="post-metadata">

**Author:** ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)\
**Post date:** [February 12, 2014, 4:36pm UTC](https://community.wowza.com/t/s3-wowza-ec2-hls-created-on-the-fly/41413/2 "2014-02-12T16:36:07Z")

</div>

Hi,

The 10 seconds delay seems consistent with the 10 seconds Apple HLS default duration.

You can control the video on demand (VOD) chunk size by adding the following property to the **HTTPStreamer/Properties** container:

```auto
<Property>
	<Name>cupertinoChunkDurationTarget</Name>
	<Value>10000</Value>
	<Type>Integer</Type>
</Property>

```

Let me know if that improves things.

Can you provide us with a sample MP3 file download link so I can test out in my setup?

Zoran

---

<div class="post-metadata">

**Author:** ![Tom\_King](https://avatars.discourse-cdn.com/v4/letter/t/f475e1/32.png) [@Tom\_King](https://community.wowza.com/u/Tom_King)\
**Post date:** [February 12, 2014, 6:40am UTC](https://community.wowza.com/t/s3-wowza-ec2-hls-created-on-the-fly/41413/3 "2014-02-12T06:40:34Z")

</div>

> Hi,
> 
> The 10 seconds delay seems consistent with the 10 seconds Apple HLS default duration.
> 
> You can control the video on demand (VOD) chunk size by adding the following property to the **HTTPStreamer/Properties** container:
> 
> ```auto
> <Property>
> <Name>cupertinoChunkDurationTarget</Name>
> <Value>10000</Value>
> <Type>Integer</Type>
> </Property>
> 
> ```
> 
> Let me know if that improves things.
> 
> Can you provide us with a sample MP3 file download link so I can test out in my setup?
> 
> Zoran

Thanks, but this was posted in October 2013. in the intervening 5 months we’ve written an entire new system.
