# ​ How to save chunk generating by CupertinoStreaming for live stream

**URL:** <https://community.wowza.com/t/how-to-save-chunk-generating-by-cupertinostreaming-for-live-stream/48564>\
**Category:** Wowza Streaming Engine\
**Created:** [April 20, 2017, 7:34am UTC](https://community.wowza.com/t/how-to-save-chunk-generating-by-cupertinostreaming-for-live-stream/48564 "2017-04-20T07:34:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roman](https://avatars.discourse-cdn.com/v4/letter/r/ed8c4c/32.png) [@Roman](https://community.wowza.com/u/Roman)\
**Post date:** [April 20, 2017, 7:34am UTC](https://community.wowza.com/t/how-to-save-chunk-generating-by-cupertinostreaming-for-live-stream/48564/1 "2017-04-20T07:34:50Z")

</div>

We use live cupertino streaming. We need to save chunks generating by CupertinoStreaming on disk. If we can write some plugin for wowza to handle the moment chunk created and save it to some path or use some standart tools provided by wowza?

---

<div class="post-metadata">

**Author:** ![Jermaine\_Hemby](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@Jermaine\_Hemby](https://community.wowza.com/u/Jermaine_Hemby)\
**Post date:** [April 23, 2017, 4:06pm UTC](https://community.wowza.com/t/how-to-save-chunk-generating-by-cupertinostreaming-for-live-stream/48564/2 "2017-04-23T16:06:07Z")

</div>

Hello

Thanks for contacting the Wowza Community!

We have no standalone tool that can do this. You will need to create a custom way of keeping the chunks or saving the chunks to another location.

Here is a link to the cupertino settings. Modifying the default settings could help with your goal.

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

regards,

Jermaine

---

<div class="post-metadata">

**Author:** ![Roman](https://avatars.discourse-cdn.com/v4/letter/r/ed8c4c/32.png) [@Roman](https://community.wowza.com/u/Roman)\
**Post date:** [May 11, 2017, 6:30pm UTC](https://community.wowza.com/t/how-to-save-chunk-generating-by-cupertinostreaming-for-live-stream/48564/3 "2017-05-11T18:30:27Z")

</div>

Maybe i can override method

public void onFillChunkStart(LiveStreamPacketizerCupertinoChunk arg0) { }

Here i can access to chunk arg0.

What method of LiveStreamPacketizerCupertinoChunk class i need to call to get bytes and save them to file?

---

<div class="post-metadata">

**Author:** ![Roman](https://avatars.discourse-cdn.com/v4/letter/r/ed8c4c/32.png) [@Roman](https://community.wowza.com/u/Roman)\
**Post date:** [May 11, 2017, 6:30pm UTC](https://community.wowza.com/t/how-to-save-chunk-generating-by-cupertinostreaming-for-live-stream/48564/4 "2017-05-11T18:30:59Z")

</div>

Maybe i can override method

public void onFillChunkStart(LiveStreamPacketizerCupertinoChunk arg0) { }

Here i can access to chunk arg0.

What method of LiveStreamPacketizerCupertinoChunk class i need to call to get bytes and save them to file?
