Video and Audio out of sync

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 :

[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

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

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

Richard

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.

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 :slight_smile:

Cheers

Thanks for sharing this update and solution with the community!