# nDVR with alternate audio

**URL:** <https://community.wowza.com/t/ndvr-with-alternate-audio/54127>\
**Category:** Wowza Streaming Engine\
**Created:** [October 30, 2019, 5:35pm UTC](https://community.wowza.com/t/ndvr-with-alternate-audio/54127 "2019-10-30T17:35:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michal\_Vanco](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Michal\_Vanco](https://community.wowza.com/u/Michal_Vanco)\
**Post date:** [October 30, 2019, 5:35pm UTC](https://community.wowza.com/t/ndvr-with-alternate-audio/54127/1 "2019-10-30T17:35:18Z")

</div>

Hi,

is it possible to use nDVR for streams with alternate audio tracks? If so, is the streams and smil configuration the same as for simple live streaming?

thanks

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [October 30, 2019, 8:53pm UTC](https://community.wowza.com/t/ndvr-with-alternate-audio/54127/2 "2019-10-30T20:53:55Z")

</div>

Hey that’s a great question [@Michal Vanco](http://community.wowza.com/community/questions/53447/ndvr-with-alternate-audio.html#), I did check for you and yes you would set up the alternate audio tracks the same way you would now in a SMIL file and this will work for the nDVR.

**Important:**

For everything to be synchronized, the alternative tracks must be timecode-aligned. This means that they must come from the same encoder or from separate encoders that produce aligned streams.

HLS:

[https://www.wowza.com/docs/how-to-use-alternative-audio-or-video-tracks-with-apple-hls-streams](https://www.wowza.com/docs/how-to-use-alternative-audio-or-video-tracks-with-apple-hls-streams)

MPEG-DASH:

[https://www.wowza.com/docs/how-to-use-alternative-audio-or-video-tracks-with-mpeg-dash-streams](https://www.wowza.com/docs/how-to-use-alternative-audio-or-video-tracks-with-mpeg-dash-streams)

---

<div class="post-metadata">

**Author:** ![Michal\_Vanco](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Michal\_Vanco](https://community.wowza.com/u/Michal_Vanco)\
**Post date:** [October 31, 2019, 3:52pm UTC](https://community.wowza.com/t/ndvr-with-alternate-audio/54127/3 "2019-10-31T15:52:03Z")

</div>

Thank you for you response.

I have my alternate audio stream working for live streaming (cupertino). But it doesn’t work with nDVR. I see console log full of:

```auto
2019-10-31 06:40:36 WARN server comment - DvrPacketHandler.handleHolder[live/_definst_/mystream_vid_l1.stream] Over flush iteration limit.
2019-10-31 06:40:36 WARN server comment - LiveStreamPacketizerCupertino.handleHolder[live/_definst_/mystream_vid_l1.stream]: chunkLastAudioTimecode:-1 chunkHitEndKeyTimecode:24139562 chunkStartTimecode:24139642 chunkStartTimecodePTS:24139642 chunkHitEndKey:true chunkCodecInfoAudio:null chunkCodecInfoAudioSent:false chunkCodecInfoVideo:{MediaCodecInfoVideo: codec:H264, profile:High, level:4.1, frameSize:1920x1080, displaySize:1920x1080, frameRate:25.000000} chunkCodecInfoVideoSent:false chunkKeyCount:1 chunkAudioCount:0 chunkAudioInARowCount:0 chunkAudioDuration:0

```

When I try to play the nDVR stream (with the ?DVR query parameter) I see this:

```auto
2019-10-31 06:43:40 WARN server comment - DvrMbrAlignmentResolver.getChunksSpans[mystream_vid_l5.stream.0]: null entry: first:null last:null
2019-10-31 06:43:40 WARN server comment - DvrMbrAlignmentResolver.getChunksSpans[mystream_vid_l4.stream.0]: null entry: first:null last:null
2019-10-31 06:43:40 WARN server comment - DvrMbrAlignmentResolver.getChunksSpans[mystream_vid_l3.stream.0]: null entry: first:null last:null
2019-10-31 06:43:40 WARN server comment - DvrMbrAlignmentResolver.getChunksSpans[mystream_vid_l2.stream.0]: null entry: first:null last:null
2019-10-31 06:43:40 WARN server comment - DvrMbrAlignmentResolver.getChunksSpans[mystream_vid_l1.stream.0]: null entry: first:null last:null

```

Any clues?

Thanks

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [October 31, 2019, 7:31pm UTC](https://community.wowza.com/t/ndvr-with-alternate-audio/54127/4 "2019-10-31T19:31:10Z")

</div>

I’m not 100% sure why from what you have shared @Michal Vanco and the engineers can only debug in a support ticket. Can you submit one [here](https://www.wowza.com/support/open-ticket)and tech support will see what is the issue here.

I’m guessing the Cupertino packets are not aligned properly as far as keyframes and timestamps which is critical to smooth switching.

Or it could be it requires additional configuration for the nDVR that I am not familiar with. With a support ticket, the engineers will quickly be able to identify and correct it.

---

<div class="post-metadata">

**Author:** ![Michal\_Vanco](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Michal\_Vanco](https://community.wowza.com/u/Michal_Vanco)\
**Post date:** [November 4, 2019, 8:24am UTC](https://community.wowza.com/t/ndvr-with-alternate-audio/54127/5 "2019-11-04T08:24:43Z")

</div>

I will try to open a support ticket then. Thanks for you answer.
