# Clarification on HLS/DASH config. properties in order to reduce lag of Live stream

**URL:** <https://community.wowza.com/t/clarification-on-hls-dash-config-properties-in-order-to-reduce-lag-of-live-stream/45872>\
**Category:** Wowza Streaming Engine\
**Created:** [October 1, 2015, 5:38pm UTC](https://community.wowza.com/t/clarification-on-hls-dash-config-properties-in-order-to-reduce-lag-of-live-stream/45872 "2015-10-01T17:38:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![beltran\_berrocal](https://avatars.discourse-cdn.com/v4/letter/b/c5a1d2/32.png) [@beltran\_berrocal](https://community.wowza.com/u/beltran_berrocal)\
**Post date:** [October 1, 2015, 5:38pm UTC](https://community.wowza.com/t/clarification-on-hls-dash-config-properties-in-order-to-reduce-lag-of-live-stream/45872/1 "2015-10-01T17:38:57Z")

</div>

Hello,

I have a problem with lag/delay

on HLS is almost 60 sec and

while on DASH I’ve managed to reduce it to 10 seconds.

I’m streaming from Android with GoCoder (or other Android sources) and always using **1 second key frame interval** (which I understand is the minimum since it expects an int)

As suggested on these forum posts

- [How to configure Apple HLS packetization (cupertinostreaming)](https://www.wowza.com/docs/how-to-configure-apple-hls-packetization-cupertinostreaming%28iOS)

- [How To reduce delay in HLS](http://community.wowza.com/t/-/33651)

- [HLS From Live Camera](http://community.wowza.com/t/-/37404)

---

<div class="post-metadata">

**Author:** ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)\
**Post date:** [October 27, 2015, 1:11pm UTC](https://community.wowza.com/t/clarification-on-hls-dash-config-properties-in-order-to-reduce-lag-of-live-stream/45872/2 "2015-10-27T13:11:07Z")

</div>

Hi,

Unfortunately with HTTP streams that are chunk based there is always going to be more latency than say with RTMP or RTSP. Having very small chunk duration targets is the way to go, but if you go too small then you may get choppy playback. Ensure that the keyframe is a factor of chunk duration target (which if set to 1 is obviously the case). The articles you linked to are really the best source for describing the various properties, and it really is a matter of experimenting with both the encoder and the chunk settings until you find a stable mix, but don’t expect to get close to RTMP or RTSP latencies. This delay is not just at the Wowza level but also at the player level as the spec requires a minimum number of chunks before it begins the stream. The [HLS RFC](https://datatracker.ietf.org/doc/draft-pantos-http-live-streaming/) is a good place to start if you wish to understand the internals of chunk based HTTP streaming delivery.

Paul

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [November 12, 2015, 11:27pm UTC](https://community.wowza.com/t/clarification-on-hls-dash-config-properties-in-order-to-reduce-lag-of-live-stream/45872/3 "2015-11-12T23:27:38Z")

</div>

Hi,

They are not real-time protocols for sure, and were not designed to be. RTMP and RTSP protocols are real-time by name and by design.

Daren

---

<div class="post-metadata">

**Author:** ![beltran\_berrocal](https://avatars.discourse-cdn.com/v4/letter/b/c5a1d2/32.png) [@beltran\_berrocal](https://community.wowza.com/u/beltran_berrocal)\
**Post date:** [November 6, 2015, 6:41pm UTC](https://community.wowza.com/t/clarification-on-hls-dash-config-properties-in-order-to-reduce-lag-of-live-stream/45872/4 "2015-11-06T18:41:55Z")

</div>

Thanks Paul for the clarification.

I’m guessing MPEG Dash has the same problem as HLS and it is “chunk” based, right?

If this is the case, neither HLS nor MPEG Dash will ever get the speeds of an RTMP, right?

… and people say “flash is dead” 🙂 …
