# out of sync  transcoded and source streams

**URL:** <https://community.wowza.com/t/out-of-sync-transcoded-and-source-streams/40028>\
**Category:** Wowza Streaming Engine\
**Created:** [April 14, 2014, 2:35pm UTC](https://community.wowza.com/t/out-of-sync-transcoded-and-source-streams/40028 "2014-04-14T14:35:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yaroslav\_Verbin](https://avatars.discourse-cdn.com/v4/letter/y/9d8465/32.png) [@Yaroslav\_Verbin](https://community.wowza.com/u/Yaroslav_Verbin)\
**Post date:** [April 14, 2014, 2:35pm UTC](https://community.wowza.com/t/out-of-sync-transcoded-and-source-streams/40028/1 "2014-04-14T14:35:16Z")

</div>

In many cases related to publisher’s internet channel quality arises out of sync source stream and transcoded streams. Output of dvrreporter: [https://drive.google.com/file/d/0ByTD7sTTjpACWDdnd2JyR251d2s/edit?usp=sharing](https://drive.google.com/file/d/0ByTD7sTTjpACWDdnd2JyR251d2s/edit?usp=sharing)

I this case also sometimes stops working dvrreporter for source stream with error: Null

StreamValidator is enable.

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 14, 2014, 11:43am UTC](https://community.wowza.com/t/out-of-sync-transcoded-and-source-streams/40028/2 "2014-04-14T11:43:23Z")

</div>

Yaraslovv,

Try setting a dvrPacketSortTime, as shown in the [nDVR Advanced reference](https://www.wowza.com/docs/how-to-do-advanced-configuration-for-wowza-ndvr)

Richard

---

<div class="post-metadata">

**Author:** ![Yaroslav\_Verbin](https://avatars.discourse-cdn.com/v4/letter/y/9d8465/32.png) [@Yaroslav\_Verbin](https://community.wowza.com/u/Yaroslav_Verbin)\
**Post date:** [April 14, 2014, 3:21pm UTC](https://community.wowza.com/t/out-of-sync-transcoded-and-source-streams/40028/3 "2014-04-14T15:21:02Z")

</div>

I tried it without success

I think the problem is that the server drops the chunks only on transcoded streams, not on source.

For exapmple:

> WARN server comment 2014-04-14 16:15:44 - - - - - 208.283 - - - - - - - DvrStreamStoreBase.storeChunks[live-ror/_definst_/nature2\_480p/nature2\_480p.0] : Skipping chunk. A/V durations differ by 2027 ms, more than allowed 2000 ms. aDuration=8777 vDuration=6750
> 
> WARN server comment 2014-04-14 16:15:44 - - - - - 208.284 - - - - - - - DvrStreamStoreBase.storeChunks[live-ror/_definst_/nature2\_160p/nature2\_160p.0] : Skipping chunk. A/V durations differ by 2027 ms, more than allowed 2000 ms. aDuration=8777 vDuration=6750
> 
> WARN server comment 2014-04-14 16:15:44 - - - - - 208.285 - - - - - - - DvrStreamStoreBase.storeChunks[live-ror/_definst_/nature2\_360p/nature2\_360p.0] : Skipping chunk. A/V durations differ by 2027 ms, more than allowed 2000 ms. aDuration=8777 vDuration=6750
> 
> WARN server comment 2014-04-14 16:15:44 - - - - - 208.285 - - - - - - - DvrStreamStoreBase.storeChunks[live-ror/_definst_/nature2\_240p/nature2\_240p.0] : Skipping chunk. A/V durations differ by 2027 ms, more than allowed 2000 ms. aDuration=8777 vDuration=6750

And, then i see out of sync about 10 seconds between source and transcoded streams.

---

<div class="post-metadata">

**Author:** ![Yaroslav\_Verbin](https://avatars.discourse-cdn.com/v4/letter/y/9d8465/32.png) [@Yaroslav\_Verbin](https://community.wowza.com/u/Yaroslav_Verbin)\
**Post date:** [April 15, 2014, 10:11am UTC](https://community.wowza.com/t/out-of-sync-transcoded-and-source-streams/40028/4 "2014-04-15T10:11:01Z")

</div>

I use FMLE with 1500 Kpbs for 1280x720 resolution. The problem is not in out of sync audio and video channels. The problem in out of sync source and transcoded streams. Equal time recording of each streams is very important to be able to use adaptive bitrate streaming. For example, when I create a smil file consisting of transcoded streams, all works fine. When I add in this file sorce stream, and source stream is out of sync with transcoded streams (they have different recorded time), I got a problem with live stream playback using adaptive bitrate

---

<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:** [April 14, 2014, 8:16am UTC](https://community.wowza.com/t/out-of-sync-transcoded-and-source-streams/40028/5 "2014-04-14T08:16:55Z")

</div>

The best way to address these audio/video alignment errors is at the encoder level.

What encoder are you publishing with?

What is the bitrate of the source stream?

You might also try adding dvrAllowableAVPacketDelta to the to the DVR/Properties section in Application.xml also found in the guide Richard linked to above.

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:** [April 15, 2014, 5:47am UTC](https://community.wowza.com/t/out-of-sync-transcoded-and-source-streams/40028/6 "2014-04-15T05:47:01Z")

</div>

Key frame alignment is critical for adaptive bitrate streaming to work. You can omit the source from the .smil, or you could transcode the source along with the rest of the renditions of the group.

Salvadore
