# Choppy HLS Video

**URL:** https://community.wowza.com/t/choppy-hls-video/34335
**Category:** Wowza Streaming Engine
**Created:** [October 27, 2011, 1:16am UTC](https://community.wowza.com/t/choppy-hls-video/34335 "2011-10-27T01:16:13Z")
**Posts on this page:** 2
**Page:** 2

<div class="post-metadata">

### Author: ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)
#### Post date: [October 31, 2011, 11:39am UTC](https://community.wowza.com/t/choppy-hls-video/34335/21 "2011-10-31T11:39:13Z")

</div>

Hi

Yes the CupertinoXXX is correct for version 3 (I know you have seen this already) but you should have this,

cupertinoChunkDurationTarget

10000

Integer

cupertinoMaxChunkCount

10

Integer

cupertinoPlaylistChunkCount

3

Integer

cupertinoRepeaterChunkCount

3

Integer

Root/LiveStreamPacketizer/Properties is also Correct.

Obviously you can change the Values as required for you.

Jason

---

<div class="post-metadata">

### Author: ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)
#### Post date: [January 21, 2014, 3:18pm UTC](https://community.wowza.com/t/choppy-hls-video/34335/22 "2014-01-21T15:18:48Z")

</div>

Jake, you can check whether keyframes are aligned properly by following this guide:

[How to debug encoder multi-bitrate key frame alignment](https://www.wowza.com/docs/how-to-debug-encoder-multi-bitrate-keyframe-alignment)

Encoding keyframe aligned renditions with ffmpeg has been known to be problematic and unreliable.

However, I did come across a forum contribution that showed a successful approach for generating keyframe aligned multi-bitrate rendition for VOD with ffmpeg by doing multiple passes. This was done on Linux and I have not tested. It may not work on other platforms.

```auto
ffmpeg -y -i bigbuckbunny_1500.mp4 -c:a libfaac -ac 2 -ab 64k -c:v libx264 -preset:v veryfast -threads 0 -r 24 -g 48 -keyint_min 48 -sc_threshold 0 -x264opts no-mbtree:bframes=1 -pass 1 -b:v 286k -s 384x216 bigbuck-350k.mp4
ffmpeg -y -i bigbuckbunny_1500.mp4 -c:a libfaac -ac 2 -ab 64k -c:v libx264 -preset:v fast -threads 0 -r 24 -g 48 -keyint_min 48 -sc_threshold 0 -x264opts no-mbtree:bframes=1 -pass 2 -b:v 286k -s 384x216 bigbuck-350k.mp4
ffmpeg -y -i bigbuckbunny_1500.mp4 -c:a libfaac -ac 2 -ab 64k -c:v libx264 -preset:v fast -threads 0 -r 24 -g 48 -keyint_min 48 -sc_threshold 0 -x264opts no-mbtree:bframes=1 -pass 2 -b:v 836k -s 640x360 bigbuck-900k.mp4

```

You may also find this guide helpful:

[How to encode video on demand content](https://www.wowza.com/docs/how-to-encode-video-on-demand-content)

Salvadore

[Previous page](https://community.wowza.com/t/choppy-hls-video/34335.md?page=1)
