# HLS Segmentation Issues.

**URL:** <https://community.transloadit.com/t/hls-segmentation-issues/18204>\
**Category:** Transloadit\
**Tags:** tender-archive\
**Created:** [October 30, 2013, 7:57pm UTC](https://community.transloadit.com/t/hls-segmentation-issues/18204 "2013-10-30T19:57:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason.brunken](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/jason.brunken/32/1634_2.png) [@jason.brunken](https://community.transloadit.com/u/jason.brunken)\
**Post date:** [October 30, 2013, 7:57pm UTC](https://community.transloadit.com/t/hls-segmentation-issues/18204/1 "2013-10-30T19:57:00Z")

</div>

> Archived from the Transloadit support forum. Originally posted on October 30, 2013; details may be outdated, see [our docs](https://transloadit.com/docs/) for current behavior. [Original thread](https://web.archive.org/web/20140519030954/http://support.transloadit.com/discussions/problems/11198-hls-segmentation-issues)

We’re trying to create a template for to transcode and segment multiple variants of a file for HLS streaming and we’re having a hard time getting the segments to be an average size. It appears that the key frames are being generated at scene changes rather than on regular intervals. This results in segment sizes that are all over the map because segments always start on a key frame.

Here is an example of an FFMpeg command that we have used to transcode a file with a key frame every second.

ffmpeg -i source.mov -vcodec libx264 -vb 900k -s 640x360 -r 29.97 -g 30 -profile:v main -acodec aac -ab 96k -ar 48000 -ac 2 -strict -2 -f mpegts hls-main.ts

I’ve tried to duplicate this by passing parameters via to the ffmpeg object in my template, but I can’t seem to get it to respect the “-g 30” parameter.

Any suggestions on how to get this to work?

Thanks!

---

<div class="post-metadata">

**Author:** ![jason.brunken](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/jason.brunken/32/1634_2.png) [@jason.brunken](https://community.transloadit.com/u/jason.brunken)\
**Post date:** [January 28, 2014, 2:14pm UTC](https://community.transloadit.com/t/hls-segmentation-issues/18204/2 "2014-01-28T14:14:00Z")

</div>

Kevin,

I’m not sure how soon it will be, but we’ll certainly give it a try.

I’ve included Scott Hain on this thread. He’s doing more of the  
TransloadIt related work on our side right now.

Thanks!

-Jason

---

<div class="post-metadata">

**Author:** ![tim-kos](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tim-kos](https://community.transloadit.com/u/tim-kos)\
**Post date:** [March 14, 2014, 7:41am UTC](https://community.transloadit.com/t/hls-segmentation-issues/18204/3 "2014-03-14T07:41:00Z")

</div>

Going to close this ticket now.

If you’d still like to let us know how it went, please feel free to reopen the ticket, Jason.

Kind regards,  
Tim

Co-Founder Transloadit  
@tim\_kos

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/04ee57da0cb7ac8728a9ac5965c288164f4ce280.svg) [@system](https://community.transloadit.com/u/system)\
**Post date:** [October 7, 2026, 10:32am UTC](https://community.transloadit.com/t/hls-segmentation-issues/18204/4 "2026-10-07T10:32:48Z")

</div>

Closed on October 7, 2026, 10:32am UTC


