# Reduce time to begin playing HTTP streamed mp4 file?

**URL:** <https://community.wowza.com/t/reduce-time-to-begin-playing-http-streamed-mp4-file/39090>\
**Category:** Wowza Streaming Engine\
**Created:** [July 30, 2012, 7:18pm UTC](https://community.wowza.com/t/reduce-time-to-begin-playing-http-streamed-mp4-file/39090 "2012-07-30T19:18:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_Quested](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@Martin\_Quested](https://community.wowza.com/u/Martin_Quested)\
**Post date:** [July 30, 2012, 7:18pm UTC](https://community.wowza.com/t/reduce-time-to-begin-playing-http-streamed-mp4-file/39090/1 "2012-07-30T19:18:06Z")

</div>

We are noticing that serving iPhone streaming media (not live) is taking a long time to begin playing, either on the iPhone or on a mediaplayer such as vlc on a computer. For example, [http://176.34.178.1:1935/vod/mp4:1434-26223.mov/playlist.m3u8](http://176.34.178.1:1935/vod/mp4:1434-26223.mov/playlist.m3u8) currently takes around 20 seconds to start playing. This has been encoded using the ipod320 preset (as described [here](https://www.wowza.com/docs/how-to-encode-video-on-demand-content)). When I encoded it using the ipod640 preset, the file took even longer (around 35 seconds or more) to start playing.

My colleagues report to me that this did not used to be the case, so something has changed. Are we somehow using a non-optimal format for uploading the file? Is there some way for it to be streamed that starts much faster? I note that the sample files provided by wowza begin in 6-9 seconds. This still seems a little too slow for our liking. Those links are structured differently from this, though, without the playlist.m3u8 - I haven’t been able to find out how to make our media stream match this approach, nor work out what exactly is different.

My understanding is that the EC2 build for Wowza is already tuned and optimized so I can’t work out what else we could do, unless I’m missing something! Any advice very gratefully received.

---

<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 30, 2012, 8:04pm UTC](https://community.wowza.com/t/reduce-time-to-begin-playing-http-streamed-mp4-file/39090/2 "2012-07-30T20:04:49Z")

</div>

You can improve this with short key frame frequency and cupertinoChunkDurationTarget. Take a look at this guide:

[https://www.wowza.com/docs/how-to-configure-apple-hls-packetization-cupertinostreaming](https://www.wowza.com/docs/how-to-configure-apple-hls-packetization-cupertinostreaming)

Richard

---

<div class="post-metadata">

**Author:** ![Marco\_Zucchi](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@Marco\_Zucchi](https://community.wowza.com/u/Marco_Zucchi)\
**Post date:** [September 16, 2012, 10:16am UTC](https://community.wowza.com/t/reduce-time-to-begin-playing-http-streamed-mp4-file/39090/3 "2012-09-16T10:16:00Z")

</div>

Did changing the chunk count have any effect on the delay? I found to have little difference in the start time over 3G network. Wifi works fine.

> We are noticing that serving iPhone streaming media (not live) is taking a long time to begin playing, either on the iPhone or on a mediaplayer such as vlc on a computer. For example, [http://176.34.178.1:1935/vod/mp4:1434-26223.mov/playlist.m3u8](http://176.34.178.1:1935/vod/mp4:1434-26223.mov/playlist.m3u8) currently takes around 20 seconds to start playing. This has been encoded using the ipod320 preset (as described [here](https://www.wowza.com/docs/how-to-encode-video-on-demand-content)). When I encoded it using the ipod640 preset, the file took even longer (around 35 seconds or more) to start playing.
> 
> My colleagues report to me that this did not used to be the case, so something has changed. Are we somehow using a non-optimal format for uploading the file? Is there some way for it to be streamed that starts much faster? I note that the sample files provided by wowza begin in 6-9 seconds. This still seems a little too slow for our liking. Those links are structured differently from this, though, without the playlist.m3u8 - I haven’t been able to find out how to make our media stream match this approach, nor work out what exactly is different.
> 
> My understanding is that the EC2 build for Wowza is already tuned and optimized so I can’t work out what else we could do, unless I’m missing something! Any advice very gratefully received.

---

<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, 2012, 1:08pm UTC](https://community.wowza.com/t/reduce-time-to-begin-playing-http-streamed-mp4-file/39090/4 "2012-09-17T13:08:28Z")

</div>

I don’t think chunk count has any affect on latency. Focus on cupertinoChunkDurationTarget and the stream’s key frame frequency.

Richard
