YouTube app sound is delayed. How to fix it?

  • Thread starter Thread starter AC Question
  • Start date Start date
The short answer: You can't fix it.

The long answer: But you can understand why.
As we've been working on the audio engine for Sonic Beat, we have an intimate understanding of how Android's audio systems work. For the most part, it kinda sucks. Google is aware of this, however, and they have been taking great strides toward fixing audio latency in Android starting with Marshmallow. The rest is up to your manufacturer as follows.

B. Diddy noted some devices have access to AwesomePlayer. If you do, turn it on - it's great. Most of you will not have this option, as it appears to be a Samsung thing.

On that note, Samsung has been on top of things lately. Newer models running Marshmallow take advantage of Google's audio rework. Our testing shows the phones averaging 120ms between sound call and output.

For these phones and others like them, the guys at superpowered.com have been working on a sound engine with impressive results. Developers incorporating it see latencies around 40ms. Still not quite the 10ms of an iPhone, but within three frames of the sound call. Unfortunately, Superpowered lacks a lot of audio format support and so developer take-up may be tough. It's the singular reason we didn't use them when making Sonic Beat.

For the rest of us plebs, we're stuck with Android's original audio engine, even on Marshmallow. My beloved Moto X 2014 measures in at 240ms, which is more than enough to break lip sync when playing Youtube. More unfortunately, 99% of the population doesn't notice and doesn't care. There are worse devices than mine as well. Our Nexus 7 2013 measures in at a whopping 350ms audio latency.

You will only make your life worse by using bluetooth. Bluetooth adds between 100ms and 600ms of audio delay ON TOP of Android's native latency. Part of this is due to compression at the source, and a bigger part is decompression at the speaker. These devices are underpowered to save battery and employ massive audio buffers to keep things from crackling. Simply don't use bluetooth if perfect audio timing or quality are concerns.
 
The short answer: You can't fix it.

The long answer: But you can understand why.
As we've been working on the audio engine for Sonic Beat, we have an intimate understanding of how Android's audio systems work. For the most part, it kinda sucks. Google is aware of this, however, and they have been taking great strides toward fixing audio latency in Android starting with Marshmallow. The rest is up to your manufacturer as follows.

B. Diddy noted some devices have access to AwesomePlayer. If you do, turn it on - it's great. Most of you will not have this option, as it appears to be a Samsung thing.

On that note, Samsung has been on top of things lately. Newer models running Marshmallow take advantage of Google's audio rework. Our testing shows the phones averaging 120ms between sound call and output.

For these phones and others like them, the guys at superpowered.com have been working on a sound engine with impressive results. Developers incorporating it see latencies around 40ms. Still not quite the 10ms of an iPhone, but within three frames of the sound call. Unfortunately, Superpowered lacks a lot of audio format support and so developer take-up may be tough. It's the singular reason we didn't use them when making Sonic Beat.

For the rest of us plebs, we're stuck with Android's original audio engine, even on Marshmallow. My beloved Moto X 2014 measures in at 240ms, which is more than enough to break lip sync when playing Youtube. More unfortunately, 99% of the population doesn't notice and doesn't care. There are worse devices than mine as well. Our Nexus 7 2013 measures in at a whopping 350ms audio latency.

You will only make your life worse by using bluetooth. Bluetooth adds between 100ms and 600ms of audio delay ON TOP of Android's native latency. Part of this is due to compression at the source, and a bigger part is decompression at the speaker. These devices are underpowered to save battery and employ massive audio buffers to keep things from crackling. Simply don't use bluetooth if perfect audio timing or quality are concerns.

Thanks for this detailed answer.

Can I ask then why did it work fine on Bluetooth when my phone was on lollipop and then broke when mm came along? It's every video app where I use bt speaker the audio lags massively.

Posted via the Android Central App
 
Welcome to Android Central! Which device? Have you checked the same videos on your computer? I've noticed that some YouTube videos have that lack of synchronization as a flaw in the video itself, not of the device.

I have a Samsung Grand Prime and my YouTube is having a sound delay
 
Last edited by a moderator:
Welcome to Android Central! Did you read through the above posts?
 
Welcome to Android Central! Did you read through the above posts?
I have read all the above posts.. I have HTC desire 626g+ I'm having video delay and sound is coming first so pls pls help me..
I have followed all the above instructions still no effect . This problem is coming after I installed the build update and I can't uninstall it either.. pls help thanx
 
Welcome to Android Central! By build update, do you mean the version of YouTube, or the system firmware?
 
Yes

I have no media player in my phone

Both firmware but firmware s not update yet
 
Last edited by a moderator:
Not sure if this will help, but go to Settings>Developer Options (if you don't see it, then go to Settings>About Phone, and tap Build Number 7 times). Then switch the media player--if it's set to NuPlayer, change it to AwesomePlayer, or vice-versa. Now see if the problem persists.
Thank you so much it really worked ✌
 
Yes

I have no media player in my phone

Both firmware but firmware s not update yet

Welcome to Android Central! What are you saying "yes" to? Which phone do you have? Have you read through this thread and tried the various solutions yet?
 
I have a Samsung Grand Prime and my YouTube is having a sound delay
My Galaxy S7 edge is horrible. You can't even watch a video it's so aparent. I might just get the HTC 10! I have 5 days to return it. No setting to change in the development mode.
 
When i play video from YouTube, sound and video are not in synced. Let me know how to fix it.

Thanks in advance!!

For most of you..who dont see any media player option in the developer mode.. just tap on "Force GPU Rendering".
Once you have done that..restart your phone and its done..!!
 
Hi, I have OnePlus 3 and I am facing this problem. The video will stop for a couple of seconds but audio will keep on going and it would keep on lagging. Funny thing is after that the video will work flawlessly but obviously with a lag. I have tried moving ahead or back from the scrolling bar but the same will happen again.

Now I have gone into Developer options but I don't see any option in changing media. The only option under Media is of Disabling USB audio routing, which to disable automatic routing to USB audio peripheral.

Can you please help
 
Welcome to Android Central! If you don't have that option, then it's not the cause. Have you already tried the usual things to fix it, like rebooting, or clearing the YouTube app cache/data?
 

Trending Posts

Forum statistics

Threads
956,425
Messages
6,968,187
Members
3,163,541
Latest member
MizzBizzzzz