# Splitmuxsink Chunk Size

**URL:** https://discourse.gstreamer.org/t/splitmuxsink-chunk-size/5536
**Category:** General Discussion
**Created:** [November 24, 2025, 2:07pm UTC](https://discourse.gstreamer.org/t/splitmuxsink-chunk-size/5536 "2025-11-24T14:07:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![danijel00](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/danijel00/32/1127_2.png) [@danijel00](https://discourse.gstreamer.org/u/danijel00)
#### Post date: [November 24, 2025, 2:07pm UTC](https://discourse.gstreamer.org/t/splitmuxsink-chunk-size/5536/1 "2025-11-24T14:07:31Z")

</div>

Hello, I’m using the **splitmuxsink** element to create an MP4 video.  
If I set the property **max-size-bytes=8,000,000** , I get video chunks with a size of **6.3–6.5 MB**. Why is this happening?

According to the documentation, **1 MB should be 1,000,000 bytes** :  
([https://gstreamer.freedesktop.org/documentation/multifile/splitmuxsink.html?gi-language=c#:~:text=10%20seconds%20and-,1MB%20maximum%20size.,-gst%2Dlaunch%2D1.0](https://gstreamer.freedesktop.org/documentation/multifile/splitmuxsink.html?gi-language=c#:~:text=10%20seconds%20and-,1MB%20maximum%20size.,-gst%2Dlaunch%2D1.0))

---

<div class="post-metadata">

### Author: ![tpm](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@tpm](https://discourse.gstreamer.org/u/tpm)
#### Post date: [November 24, 2025, 2:30pm UTC](https://discourse.gstreamer.org/t/splitmuxsink-chunk-size/5536/2 "2025-11-24T14:30:58Z")

</div>

What elements are before `splitmuxsink` here? (in particular: video encoder, and encoder configuration)

Could it be because of the configured key frame interval on the encoder?

---

<div class="post-metadata">

### Author: ![danijel00](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/danijel00/32/1127_2.png) [@danijel00](https://discourse.gstreamer.org/u/danijel00)
#### Post date: [November 25, 2025, 7:26am UTC](https://discourse.gstreamer.org/t/splitmuxsink-chunk-size/5536/3 "2025-11-25T07:26:04Z")

</div>

> [@danijel00](#):
>
> max-size-bytes

I’m using something like this:  
`queue ! capsfilter name=caps caps=video/x-raw,framerate=30/1,format=NV12 ! queue ! mfh265enc ! h265parse ! muxer.video`

However, I don’t think it has anything to do with the keyframe, because if I set `max-size-bytes=250,000,000` (250 MB), I get chunks of approximately 230 MB.
