# Live stream audio delay

**URL:** <https://community.wowza.com/t/live-stream-audio-delay/36258>\
**Category:** Wowza Streaming Engine\
**Created:** [June 13, 2011, 3:41pm UTC](https://community.wowza.com/t/live-stream-audio-delay/36258 "2011-06-13T15:41:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maxim\_Tybkin](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@Maxim\_Tybkin](https://community.wowza.com/u/Maxim_Tybkin)\
**Post date:** [June 13, 2011, 3:41pm UTC](https://community.wowza.com/t/live-stream-audio-delay/36258/1 "2011-06-13T15:41:13Z")

</div>

I have a little (about 1 sec) audio / video delay when streaming with FMLE or Wirecast to Wowza and play stream in Flash player.

Wowza installed locally so there is no latancy or BW issue.

Flash Player have bufferTime = 0.

Video codec: VP6, H264

Audio Codec: mp3, NellyMoser, AAC

all possible bitrates - nothing helps.

But with disabled audio (only video stream) everything works real-time.

and with publishing from another flash player everything works fine.

Problem exists only with publishing from FMLE/Wirecast or VCL (rtp/rtsp) with audio enabled.

Please show me direction where I have to dig.

UPD.

Forgot to mention.

When stream plays with delay, then netStream.liveDelay always = 0.3-0.8 sec, but bufferTime = 0. In other cases (everything real-time) this variables both always = 0.

---

<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:** [June 13, 2011, 6:44pm UTC](https://community.wowza.com/t/live-stream-audio-delay/36258/2 "2011-06-13T18:44:12Z")

</div>

Try a bufferTime 1 second instead of 0. Zero buffer can cause playback problems.

netStream.liveDelay is not supported in Wowza 2. I doubt it has any bad effect.

FMLE is known to have a/v sync problems with some capture card. We don’t hear about this as much involving Wirecast, but it is usually an encoder side problem. You can debug in Wowza to see if that is the problem.

[https://www.wowza.com/docs/how-to-debug-aac-or-mp3-timecode-issues-with-apple-hls-packetization](https://www.wowza.com/docs/how-to-debug-aac-or-mp3-timecode-issues-with-apple-hls-packetization)

Richard

---

<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:** [June 14, 2011, 7:32pm UTC](https://community.wowza.com/t/live-stream-audio-delay/36258/3 "2011-06-14T19:32:37Z")

</div>

Sorry, I misread the original post. You said, “I have a little (about 1 sec) audio / video delay”. I thought it was a syn issue.

I don’t think 1 second latency from h.264 encoder to Flash client is a problem, sounds good to me. We do have an article on the subject here:

[https://www.wowza.com/docs/how-to-set-up-low-latency-applications-in-wowza-streaming-engine-for-rtmp-streaming](https://www.wowza.com/docs/how-to-set-up-low-latency-applications-in-wowza-streaming-engine-for-rtmp-streaming)

Richard

---

<div class="post-metadata">

**Author:** ![Maxim\_Tybkin](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@Maxim\_Tybkin](https://community.wowza.com/u/Maxim_Tybkin)\
**Post date:** [June 14, 2011, 11:51am UTC](https://community.wowza.com/t/live-stream-audio-delay/36258/4 "2011-06-14T11:51:30Z")

</div>

> Try a bufferTime 1 second instead of 0. Zero buffer can cause playback problems.

With bufferTime=1 or bufferTime=0.01 , 0.5 , 2, etc… delay just increase…

> FMLE is known to have a/v sync problems with some capture card.

I have tried few other PCs - everywhere the same result.

> We don’t hear about this as much involving Wirecast, but it is usually an encoder side problem. You can debug in Wowza to see if that is the problem.

Debug shows everything is fine. There is no any shift in AAC or MP3.
