# Video and Audio out of sync

**URL:** https://community.wowza.com/t/video-and-audio-out-of-sync/34458
**Category:** Wowza Streaming Engine
**Created:** [November 14, 2011, 12:26pm UTC](https://community.wowza.com/t/video-and-audio-out-of-sync/34458 "2011-11-14T12:26:25Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Mahmoud\_Chakiri](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@Mahmoud\_Chakiri](https://community.wowza.com/u/Mahmoud_Chakiri)
#### Post date: [November 14, 2011, 12:26pm UTC](https://community.wowza.com/t/video-and-audio-out-of-sync/34458/1 "2011-11-14T12:26:25Z")

</div>

Hi ,

I have a delay between video and audio when I try to playback a live stream on IOS devices. The delay is about 2-3 seconds.

I tried, without succes, to apply the changes on thoses threads :

> **[Troubleshoot live streaming](https://www.wowza.com/docs/troubleshoot-live-streaming)**
>
> Troubleshoot common problems that occur with Wowza Streaming Engine live streams.

> **[Configure Apple HLS packets for HTTP streaming](https://www.wowza.com/docs/how-to-configure-apple-hls-packetization-cupertinostreaming)**
>
> Configure the CupertinoStreaming segmenter in Wowza Streaming Engine software to split streams into segments for playback on Apple HLS compatible clients.

> [@Windows tuning, running the "server" Java VM (tuning)](http://community.wowza.com/t/-/41):
>
> Issue By default Windows will run the client version of the Java runtime environment. The Wowza Pro server will function better when using the server version of the Java runtime environment that ships with the Java JDK. Below are the instructions to switch to the server version of the Java runtime environment. Resolution If you have the Java runtime environment installed (rather than the Java Development Kit - JDK) then unstinstall the Java runtime environment and install the most recent ve…

[install-dir]/bin/setenv.sh (Linux, Mac OSX and Solaris)

JAVA\_OPTS=“-Xmx3000M”

[install-dir]/bin/setenv.bat (Windows)

set JAVA\_OPTS=-Xmx3000M

[install-dir]/bin/WowzaMediaServer-Service.conf (Windows)

wrapper.java.additional.1=-Xmx3000M

I tested with two different versions 3.0.3 and 2.2.0 .

The encoder details are :

Video format : H.264 Baseline Level 3.0, and ékeyframe frequency 2secondes.

Audio Format : AAC Stereo 44100 bitrate 40Kbps.

Do you have any suggestion or solution to fix that issue.

Regards.

Mahmoud

---

<div class="post-metadata">

### Author: ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)
#### Post date: [November 14, 2011, 4:56pm UTC](https://community.wowza.com/t/video-and-audio-out-of-sync/34458/2 "2011-11-14T16:56:26Z")

</div>

Would you provide more information regarding your encoder, the type of encoding you are doing, and if possible sample encoded stream and HLS stream. Please also provide zipped versions of conf/ and logs/ folders. Send all to support@wowza.com and reference this post.

best regards,

- Daren

---

<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: [November 16, 2011, 6:12pm UTC](https://community.wowza.com/t/video-and-audio-out-of-sync/34458/3 "2011-11-16T18:12:43Z")

</div>

This is usually an encoder issue. You can use this Property setting to see audio/video alignment in the logs:

[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: ![Naci\_Seyhanli](https://avatars.discourse-cdn.com/v4/letter/n/258eb7/32.png) [@Naci\_Seyhanli](https://community.wowza.com/u/Naci_Seyhanli)
#### Post date: [November 16, 2011, 10:03am UTC](https://community.wowza.com/t/video-and-audio-out-of-sync/34458/4 "2011-11-16T10:03:41Z")

</div>

I have the same issue. I’m using 3.0 and have tuned the server. On my iPad with a wifi connection, audio and video get farther and farther out of sync as the live stream plays. After 2 or 3 minutes, audio will be behind video approximately 3 to 4 seconds. Over my LAN, flash audio and video are in sync just fine. On my Android smartphone (Motorola Bionic) with a 4G connection, flash audio and video are out of sync about 15 frames, but the gap doesn’t appear to increase no matter how long the stream plays. I’m using a Newtek Tricaster to push the stream to our in-house server, and network speed isn’t an issue (80mbps+ wired, 20mbps+ wireless). Right now, the Tricaster is pushing an RTMP stream at 15fps, 240x180, 288kbps H.264. Thanks for any help.

---

<div class="post-metadata">

### Author: ![Kevin\_Stanton](https://avatars.discourse-cdn.com/v4/letter/k/e68b1a/32.png) [@Kevin\_Stanton](https://community.wowza.com/u/Kevin_Stanton)
#### Post date: [March 25, 2019, 3:19pm UTC](https://community.wowza.com/t/video-and-audio-out-of-sync/34458/5 "2019-03-25T15:19:17Z")

</div>

Hi Everyone, I had the same exact issue and I’ve been struggling all day to get it figured out. I know this post is old, but figured I would share my solution in the hopes that it will help someone else. I’m using Wowza Streaming Engine 4.7.7 at the time of this post.

For me, what Richard Lanham said was 100% correct. It was my encoder. I was using Flash Media Live Encoder, which I’ve used for years with other streaming servers without issue. I tried all of the solutions I found on this forum first, but none of them worked…then I tried playing with the Timecode settings in FMLE, and it improved the result somewhat…I was able to go from a (roughly) 2 second delay to roughly a half second - but I do a live DJ stream, so that’s not good enough for me.

I switched to OBS (Open Broadcaster) for my encoder and the problem disappeared. The downside at first was, OBS is not as user friendly as FMLE, so there was definitely a learning curve - but trust me, it’s worth it - if your video and audio are not syncing up for live streams using Wowza Streaming Engine, OBS is the way to go! It’s Open Source (free) and has way more functionality than FMLE - and no sync issue 🙂

Cheers

---

<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: [March 25, 2019, 3:57pm UTC](https://community.wowza.com/t/video-and-audio-out-of-sync/34458/6 "2019-03-25T15:57:13Z")

</div>

Thanks for sharing this update and solution with the community!
