# Is it possible to delay packetization?

**URL:** <https://community.wowza.com/t/is-it-possible-to-delay-packetization/47428>\
**Category:** Wowza Streaming Engine\
**Created:** [August 29, 2016, 2:58pm UTC](https://community.wowza.com/t/is-it-possible-to-delay-packetization/47428 "2016-08-29T14:58:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Zaslavsky](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@Alex\_Zaslavsky](https://community.wowza.com/u/Alex_Zaslavsky)\
**Post date:** [August 29, 2016, 2:58pm UTC](https://community.wowza.com/t/is-it-possible-to-delay-packetization/47428/1 "2016-08-29T14:58:38Z")

</div>

Hi,

I’m working on a Wowza plugin which accepts REST calls (via an HTTPProvider), and wraps them into the output stream (HLS) as timed metadata. In order to account for connectivity problems, latency issues, etc, I would like to delay packetization of my incoming RTMP stream by a 6 seconds. So, my understanding of the process as it stands now.

_RTMP packet received -\> Packetized immediately as HLS (while doing “onFillChunkDataPacket()”) -\> served after X chunks have been queued up_

What I would like to do, if possible:

_RTMP packet received -\> **sleep for 6 seconds** -\> Packetized as HLS -\> served after X chunks have been queued up_

Is there any API accessible way to enable this delay?

Best,

Alex

---

<div class="post-metadata">

**Author:** ![Andrew\_Ramberg](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@Andrew\_Ramberg](https://community.wowza.com/u/Andrew_Ramberg)\
**Post date:** [September 19, 2016, 3:19pm UTC](https://community.wowza.com/t/is-it-possible-to-delay-packetization/47428/2 "2016-09-19T15:19:48Z")

</div>

Hello,

You might be able to user a server-side buffer to create this delay. Please see the following article for more information:

[Server Side Sort Buffer](https://www.wowza.com/docs/how-to-fix-unaligned-video-and-audio-with-a-server-side-sort-buffer)

Best regards,

Andrew
