# HLS livestream multistream switching problem

**URL:** https://community.wowza.com/t/hls-livestream-multistream-switching-problem/34016
**Category:** Wowza Streaming Engine
**Created:** [October 2, 2013, 2:17pm UTC](https://community.wowza.com/t/hls-livestream-multistream-switching-problem/34016 "2013-10-02T14:17:34Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Andre\_Ficker](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@Andre\_Ficker](https://community.wowza.com/u/Andre_Ficker)
#### Post date: [October 2, 2013, 2:17pm UTC](https://community.wowza.com/t/hls-livestream-multistream-switching-problem/34016/1 "2013-10-02T14:17:34Z")

</div>

hello,

I’m running wowza HLS livestream with 3 different qualities that I’m pulling from CDN.

With iOS devices, switching of qualities works just fine.

But there is a problem with smart TV devices (LG). Here is what I’ve found out:

Live stream starts to play. After cca. 20 seconds when quality should change from lower to higher, the stream simply freezes and it doesn’t continue to play.

The problem is that somehow player wants to access the same filename (.ts) on stream to which he is switching, and if that stream doesn’t have that file it simply refuses to play, example:

This is how it looks the playlist from 3 different qualities:

```auto
Low:
media_859.ts?wowzasessionid=490125569
media_860.ts?wowzasessionid=490125569
media_861.ts?wowzasessionid=490125569

```

```auto
Medium:
media_858.ts?wowzasessionid=490125569
media_859.ts?wowzasessionid=490125569
media_860.ts?wowzasessionid=490125569

```

```auto
High:
media_855.ts?wowzasessionid=966022614
media_856.ts?wowzasessionid=966022614
media_857.ts?wowzasessionid=966022614

```

As you can see the sequence numbers in each stream do not match. The problem is solved by restarting wowza, and the player works fine

This is how it looks like after restart, which is OK:

```auto
Low:
media_3.ts?wowzasessionid=945643668
media_4.ts?wowzasessionid=945643668
media_5.ts?wowzasessionid=945643668

```

```auto
Medium:
media_3.ts?wowzasessionid=246305015
media_4.ts?wowzasessionid=246305015
media_5.ts?wowzasessionid=246305015

```

```auto
High:
media_3.ts?wowzasessionid=1410221705
media_4.ts?wowzasessionid=1410221705
media_5.ts?wowzasessionid=1410221705

```

After about 30min of running wowza, the problem is present again.

Can you please tell me what is causing this unusual behaviour?

Thank you

---

<div class="post-metadata">

### Author: ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)
#### Post date: [October 2, 2013, 7:39am UTC](https://community.wowza.com/t/hls-livestream-multistream-switching-problem/34016/2 "2013-10-02T07:39:55Z")

</div>

As a place to start, you can enable debugging to test multi-bitrate key frame alignment:

[How to debug encoder multi-bitrate key frame alignment](https://www.wowza.com/docs/how-to-debug-encoder-multi-bitrate-keyframe-alignment)

Salvadore

---

<div class="post-metadata">

### Author: ![Andre\_Ficker](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@Andre\_Ficker](https://community.wowza.com/u/Andre_Ficker)
#### Post date: [October 8, 2013, 2:22pm UTC](https://community.wowza.com/t/hls-livestream-multistream-switching-problem/34016/3 "2013-10-08T14:22:08Z")

</div>

thanks for the link.

Now that i know that frames are not alined and that using “chunkBreakOnPTS” parameter does not solve the problem, anybody have any other idea why this is happening?

The most interesting thing here is that when sequence numbers are different for each stream, i download a video chank from each stream and they are a match although the sequence numbers on each stream are totally different!

Anyone here care to explain this? 🙂

thanks

---

<div class="post-metadata">

### Author: ![Andre\_Ficker](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@Andre\_Ficker](https://community.wowza.com/u/Andre_Ficker)
#### Post date: [October 15, 2013, 9:47am UTC](https://community.wowza.com/t/hls-livestream-multistream-switching-problem/34016/4 "2013-10-15T09:47:02Z")

</div>

Using Wowza Transcoder AddOn is the only way you can get this to work properly? There is really no other way?

---

<div class="post-metadata">

### Author: ![Andre\_Ficker](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@Andre\_Ficker](https://community.wowza.com/u/Andre_Ficker)
#### Post date: [October 16, 2013, 8:19am UTC](https://community.wowza.com/t/hls-livestream-multistream-switching-problem/34016/5 "2013-10-16T08:19:49Z")

</div>

☹ is it possible to get a trial version of the add-on? I would like to test this 1st.

---

<div class="post-metadata">

### Author: ![Andre\_Ficker](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@Andre\_Ficker](https://community.wowza.com/u/Andre_Ficker)
#### Post date: [October 16, 2013, 10:10am UTC](https://community.wowza.com/t/hls-livestream-multistream-switching-problem/34016/6 "2013-10-16T10:10:45Z")

</div>

btw, I came across this article:

[https://www.wowza.com/docs/how-to-enable-advanced-monitoring-and-resetting-of-mediacaster-streams](https://www.wowza.com/docs/how-to-enable-advanced-monitoring-and-resetting-of-mediacaster-streams)

Isn’t this exactly what would solve my problem? resetting the stream when multistream would get out of sync?

---

<div class="post-metadata">

### Author: ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)
#### Post date: [October 16, 2013, 9:51am UTC](https://community.wowza.com/t/hls-livestream-multistream-switching-problem/34016/7 "2013-10-16T09:51:11Z")

</div>

The Transcoder Addon is available when using a Wowza trial license.

Here is the direct URL for the Trial license request: [https://www.wowza.com/pricing/trial](https://www.wowza.com/pricing/trial)

Zoran

---

<div class="post-metadata">

### Author: ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)
#### Post date: [October 8, 2013, 8:12am UTC](https://community.wowza.com/t/hls-livestream-multistream-switching-problem/34016/8 "2013-10-08T08:12:08Z")

</div>

The only way to guarantee alignment of the key frames is to pull the highest quality stream from the CDN through the [Wowza Transcoder AddOn](https://www.wowza.com/docs/how-to-set-up-and-run-wowza-transcoder-for-live-streaming).

From that source stream you can create a set of key frame aligned renditions for Adaptive bit rate switching.

Salvadore

---

<div class="post-metadata">

### Author: ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)
#### Post date: [October 15, 2013, 8:42am UTC](https://community.wowza.com/t/hls-livestream-multistream-switching-problem/34016/9 "2013-10-15T08:42:21Z")

</div>

There is no other way within Wowza to sort out the key frame mis-alignment.

Salvadore
