# video on demand chunk size

**URL:** <https://community.wowza.com/t/video-on-demand-chunk-size/34171>\
**Category:** Wowza Streaming Engine\
**Created:** [December 10, 2012, 4:34pm UTC](https://community.wowza.com/t/video-on-demand-chunk-size/34171 "2012-12-10T16:34:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lewei\_yan](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@Lewei\_yan](https://community.wowza.com/u/Lewei_yan)\
**Post date:** [December 10, 2012, 4:34pm UTC](https://community.wowza.com/t/video-on-demand-chunk-size/34171/1 "2012-12-10T16:34:37Z")

</div>

Hi There,

I am using Http Streaming for Video On Demand. Everything works well.

Currently I got an issue that I wanna add a feature that can manually change bit rate.

This is done and works, however the time that starts taking effect is around 6 seconds.

I think this is determined by the chunk size. So I set the chunk size to 2 second, but it still doesn’t work.

I did change the property to this:

**sanjoseChunkDurationTarget**

**2000**

**Integer**

Can someone explain or direct me to the right path?

Thank you

---

<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:** [December 10, 2012, 1:25pm UTC](https://community.wowza.com/t/video-on-demand-chunk-size/34171/2 "2012-12-10T13:25:40Z")

</div>

You also have to adjust the key frame frequency. Take a look at this article:

[https://www.wowza.com/docs/how-to-configure-adobe-hds-packetization-sanjosestreaming](https://www.wowza.com/docs/how-to-configure-adobe-hds-packetization-sanjosestreaming)

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:** [December 10, 2012, 10:33pm UTC](https://community.wowza.com/t/video-on-demand-chunk-size/34171/3 "2012-12-10T22:33:15Z")

</div>

I don’t think you can do it per session or per stream, but you can do per application instance something like this:

```auto
appInstance().getLiveStreamPacketizerProperties().setProperty("cupertinoChunkDurationTarget", "10000");

```

Richard

---

<div class="post-metadata">

**Author:** ![Lewei\_yan](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@Lewei\_yan](https://community.wowza.com/u/Lewei_yan)\
**Post date:** [December 11, 2012, 9:51am UTC](https://community.wowza.com/t/video-on-demand-chunk-size/34171/4 "2012-12-11T09:51:38Z")

</div>

Thank you Richard,

What if I need to play different video files with different key frame frequencies, as the chuck size is set.

---

<div class="post-metadata">

**Author:** ![Lewei\_yan](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@Lewei\_yan](https://community.wowza.com/u/Lewei_yan)\
**Post date:** [December 11, 2012, 12:53pm UTC](https://community.wowza.com/t/video-on-demand-chunk-size/34171/5 "2012-12-11T12:53:21Z")

</div>

Thank you Richard, I think I will stick with this
