# "Received discontinuity error" from mediastreamvalidator

**URL:** <https://community.wowza.com/t/received-discontinuity-error-from-mediastreamvalidator/46138>\
**Category:** Wowza Streaming Engine\
**Created:** [November 5, 2015, 3:09pm UTC](https://community.wowza.com/t/received-discontinuity-error-from-mediastreamvalidator/46138 "2015-11-05T15:09:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hyangtack\_Lee](https://avatars.discourse-cdn.com/v4/letter/h/43a26b/32.png) [@Hyangtack\_Lee](https://community.wowza.com/u/Hyangtack_Lee)\
**Post date:** [November 5, 2015, 3:09pm UTC](https://community.wowza.com/t/received-discontinuity-error-from-mediastreamvalidator/46138/1 "2015-11-05T15:09:23Z")

</div>

Hi, I’m testing Wowza 4.3.0 for live streaming service.

To prepare for Apple review, I’ve checked my HLS playback stream by Apple Media Tool(mediastreamvalidator), and got the result as follows.

media-unikviun7\_3096.ts:

ERROR: (-12976) Received discontinuity error

–\> Track ID: 256

ERROR: (-12976) Received discontinuity error

–\> Track ID: 257

So I checked ts by “ffprobe -show\_packets” command and found that pts of the second audio packet doesn’t matched with “pts of the first audio packet + duration”.

: 2507776000 (1st pts) + 2089 (1st dur) = 2507778089, but 2nd pts is 2507778090

[PACKET]

codec\_type=audio

stream\_index=1

**pts=2507776000**

pts\_time=27864.177778

dts=2507776000

dts\_time=27864.177778

**duration=2089**

duration\_time=0.023211

convergence\_duration=N/A

convergence\_duration\_time=N/A

size=186

pos=N/A

flags=K

[/PACKET]

[PACKET]

codec\_type=audio

stream\_index=1

**pts=2507778090**

pts\_time=27864.201000

dts=2507778090

dts\_time=27864.201000

duration=2089

duration\_time=0.023211

convergence\_duration=N/A

convergence\_duration\_time=N/A

size=191

pos=N/A

flags=K

[/PACKET]

I think that this is the root cause of “discontinuity error”. Any idea about this problem?

My environment details:

- Broadcasting client: OBS(Open Broadcaster Software) 0.11.1 by default settings (H.264/AAC)

- Wowza Input protocol: RTMP

- Wowza Output protocol: HLS

- Wowza Transcode options

- Video: H.264/800000 bps/default encoding impl./Baseline profile/30, 60 or 90 key frame interval

- Frame: letterbox/1280x720/no crop

- Audio: AAC/64000 bps

- No overlay image

- HLS options (cupertino streaming packetizer)

- cupertinoBitrateAdjustmentFactor: 110

- cupertinoCalculateCodecs : false

- cupertinoPacketizeAllStreamsAsTS : true

- httpOriginMode : on

- Apple Media Tool

- mediastreamvalidator: Beta Version 1.1(150923)

Regards,

Hyangtack

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [November 6, 2015, 5:25pm UTC](https://community.wowza.com/t/received-discontinuity-error-from-mediastreamvalidator/46138/2 "2015-11-06T17:25:43Z")

</div>

Hi Hyangtack,

Please add the following property to your live or VOD application in order to remove the discontinuity errors from MediaStreamValidator.

cupertinoOnChunkStartResetCounter

false

Boolean

The above property needs to be added in the HTTPStreamers/Properties container for VOD applications, and in the LiveStreamPacketizer/Properties for live applications. Do make sure that you add it to the correct container, since there are several Properties containers in the configuration file. Save your changes and restart the application to test the stream again.

Michelle

---

<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:** [November 12, 2015, 9:01am UTC](https://community.wowza.com/t/received-discontinuity-error-from-mediastreamvalidator/46138/3 "2015-11-12T09:01:19Z")

</div>

Thanks for the update and glad you got this sorted.

Regards,

Salvadore

---

<div class="post-metadata">

**Author:** ![Hyangtack\_Lee](https://avatars.discourse-cdn.com/v4/letter/h/43a26b/32.png) [@Hyangtack\_Lee](https://community.wowza.com/u/Hyangtack_Lee)\
**Post date:** [November 9, 2015, 11:59am UTC](https://community.wowza.com/t/received-discontinuity-error-from-mediastreamvalidator/46138/4 "2015-11-09T11:59:13Z")

</div>

Hi Michelle,

There’s no “discontinuity error” after setting the parameter you mentioned.

Thank you very much.
