Audio delay when playing video over bluetooth - OnePlus 8 Questions & Answers

Slight issue.
Using VLC and the new OnePlus Z headphones, I am getting about 250ms mismatch between the audio and video when playing a movie. VLC can correct this, but I've never seen this before on other devices.
Anyone got any ideas why? I haven't checked with other apps yet to see whether it's VLC or the phone or headset.
Alan

OK - just tested a couple of other apps and it may be VLC which is the issue. Either that or it's sorted itself out
Alan

Related

Stock Music App songs stuttering slightly

Hello all,
I got My VZW branded M8 on launch day and have been getting used to it and checking 20 times a day to see if a perm root solution has been found or better yet an S-Off method. On to my issue in the past few days I've had some time to listen to some mp3s from an SD card on the M8's stock music app and I have found that there is an audible stutter randomly occurring 3-5 times per song. The same mp3 played in poweramp plays smooth. The same SD card played the same songs smoothly in my DNA. So I'm lead to believe there some issue with the stock music app. I tested with screen timeout disabled, motion gestures disabled and still got the same thing.
Did anyone notice the same issue or is it just my phone.
It sounds like song skipped a beat or someone bumping a CD player, not really a sound but just the timing got out of sync for an instant. The first time I just thought it was a error in mp3 then I picked up that it was happening continually but could not be reproduced by replaying the same section of music. I love poweramp but the stock music player should function correctly on a flagship phone and IMO. I like the HTC stock music app as it lets me stream music from my DLNA server on my network, so I like it to function properly.
Kind Regards,
mc
Maybe try a factory reset since its obviously not a hardware issue if a third party app is working perfectly. Only music player i use is the stock HTC Music app and never had any issues with it across the board. Works perfect here even streaming over BT in the car or BT stereo headsets.
No stuttering here, but i've had tracks reset to start after short inactivity. I listen to audiobooks and had to go use Google Play Music because my chapters kept starting over after pausing them.
mc_365 said:
Hello all,
I got My VZW branded M8 on launch day and have been getting used to it and checking 20 times a day to see if a perm root solution has been found or better yet an S-Off method. On to my issue in the past few days I've had some time to listen to some mp3s from an SD card on the M8's stock music app and I have found that there is an audible stutter randomly occurring 3-5 times per song. The same mp3 played in poweramp plays smooth. The same SD card played the same songs smoothly in my DNA. So I'm lead to believe there some issue with the stock music app. I tested with screen timeout disabled, motion gestures disabled and still got the same thing.
Did anyone notice the same issue or is it just my phone.
It sounds like song skipped a beat or someone bumping a CD player, not really a sound but just the timing got out of sync for an instant. The first time I just thought it was a error in mp3 then I picked up that it was happening continually but could not be reproduced by replaying the same section of music. I love poweramp but the stock music player should function correctly on a flagship phone and IMO. I like the HTC stock music app as it lets me stream music from my DLNA server on my network, so I like it to function properly.
Kind Regards,
mc
Click to expand...
Click to collapse
I've actually been having this issue but over Bluetooth only but my audio never skips when I have a 3.5mm jack plugged in. I'm getting a new Bluetooth device and I'll report back on my findings.
Have not had this issue with my Verizon M8. I have all my music (about 20gb) on the sd card, and normally play through the 3.5mm jack.
The one thing I did notice is, with my old htc phone, when playing music and a notification came in, it would interrupt the music and play the notification. I liked this because I would know to look at my phone. With this one, there is NO interruption of the music. So I can be in my car for a half hour playing music, and not know of any texts or emails unless I look at the phone. Anyone know a solution?
UPDATE: I tried using another Bluetooth device and the same problem occurred. Also to note, I'm having this issue with the stock music app & PlayerPro. However, if I reboot my phone the problem does not occur and I'm able to play music through my Bluetooth device without stutters.
@mc_365: Trying to see if we have anything in common. When music stutters, are you connected via Bluetooth? By any chance are you rooted & did you freeze any apps? Do you have the problem while connected to a 3.5mm jack?
UPDATE (9:32a PT): I just tried a factory reset & I'm still having the problem. Anybody have any other suggestions?
compir99 said:
UPDATE: I tried using another Bluetooth device and the same problem occurred. Also to note, I'm having this issue with the stock music app & PlayerPro. However, if I reboot my phone the problem does not occur and I'm able to play music through my Bluetooth device without stutters. I have not tried a factory reset yet.
@mc_365: Trying to see if we have anything in common. When music stutters, are you connected via Bluetooth? By any chance are you rooted & did you freeze any apps? Do you have the problem while connected to a 3.5mm jack?
Click to expand...
Click to collapse
I'm not rooted and trying to play music through my Camaro bluetooth from Play Music it just constantly skips. I am running on ART and will switch back to dalvik to see if that fixes it. If not, I'm going to exchange my phone or return it all together.
UPDATE:
I switched back to Dalvik and did a factory reset to make sure everything was done properly. Now Google Play Music doesn't skip when I play music through my car. Are any of you on ART runtime by chance?
I just came back from Verizon & exchanged my M8; I'll have to check to see if that helped.
mc_365 said:
Hello all,
I got My VZW branded M8 on launch day and have been getting used to it and checking 20 times a day to see if a perm root solution has been found or better yet an S-Off method. On to my issue in the past few days I've had some time to listen to some mp3s from an SD card on the M8's stock music app and I have found that there is an audible stutter randomly occurring 3-5 times per song. The same mp3 played in poweramp plays smooth. The same SD card played the same songs smoothly in my DNA. So I'm lead to believe there some issue with the stock music app. I tested with screen timeout disabled, motion gestures disabled and still got the same thing.
Click to expand...
Click to collapse
Trying to see if we have anything in common. When music stutters, are you connected via Bluetooth? By any chance are you rooted & did you freeze any apps? Do you have the problem while connected to a 3.5mm jack?
deeznuts said:
Maybe try a factory reset since its obviously not a hardware issue if a third party app is working perfectly. Only music player i use is the stock HTC Music app and never had any issues with it across the board. Works perfect here even streaming over BT in the car or BT stereo headsets.
Click to expand...
Click to collapse
Are you playing music from your SD card or internal memory?
bloodiedwraith said:
I'm not rooted and trying to play music through my Camaro bluetooth from Play Music it just constantly skips. I am running on ART and will switch back to dalvik to see if that fixes it. If not, I'm going to exchange my phone or return it all together.
UPDATE:
I switched back to Dalvik and did a factory reset to make sure everything was done properly. Now Google Play Music doesn't skip when I play music through my car. Are any of you on ART runtime by chance?
Click to expand...
Click to collapse
I never messed around with changing Dalvik/ART; I checked and I'm running Dalvik. Are you playing music off your SD card or internal memory over Bluetooth when you're having this problem?
I'm just playing mp3s from SD card on a regular pair of earphones. I think maybe my issue is the HTC decoder just doesn't like the CD rip I was playing, maybe the bitrate or the error handling within the app or something like that. I've played other mp3s now and can't say that this is something that is consistently happening.
I have all my songs on external sd card. I can try streaming Pandora in my car and see if any stuttering If that makes a difference? I did though download a few so to internal storage and played over Bluetooth in my car on the way home without stuttering. Played the same as the songs on my external sd card.
I have an obnoxious stutter on the Netflix app through speakers and headphone jack. Noticed it through play movies today also. Reset did nothing. Sadly it isn't noticeable for it to pass through the replacement check
Sent from my HTC6525LVW using Tapatalk
I get the occasional skip when streaming over bluetooth from my SD card. I'd suspect it has more to do with the I/O read ahead or scheduler than anything. It seems to happen whether or not the screen is on, so I don't think it's a processor hang or anything like that.
I hope this update helps anyone with the same issue. :fingers-crossed:
*knock on wood
I noticed that the skips were less and far between if I was playing music over Bluetooth using the internal memory. So what I did is take another SD card and played music on that. This resulted in no skips that I could tell. Perhaps it might be a defective SD card or bad format so I reformatted the SD card completely (full not quick) and so far I'm having less skips in music. I ordered up the 128 GB SanDisk card & hopefully I won't have any skips using that card.
I'm thinking once we get a permanent root & S-Off we can try putting AOSP on our M8s & see if that eliminates the issue completely. :fingers-crossed:
If anybody else can share any suggestions on what to try, that would be great!
sitlet said:
Have not had this issue with my Verizon M8. I have all my music (about 20gb) on the sd card, and normally play through the 3.5mm jack.
The one thing I did notice is, with my old htc phone, when playing music and a notification came in, it would interrupt the music and play the notification. I liked this because I would know to look at my phone. With this one, there is NO interruption of the music. So I can be in my car for a half hour playing music, and not know of any texts or emails unless I look at the phone. Anyone know a solution?
Click to expand...
Click to collapse
This is the problem I'm experiencing that brought me to this thread. Did you ever find a solution? Both Google Play Music and Stock HTC Music play over the notification. My podcast app, Pocket Casts, appropriately gives focus to notification sounds every time.
http://forum.xda-developers.com/showthread.php?t=2732264
same problem, fix seems to be something to do with viper rom.
broprah said:
http://forum.xda-developers.com/showthread.php?t=2732264
same problem, fix seems to be something to do with viper rom.
Click to expand...
Click to collapse
In sum, the potential fix is to change the read-ahead buffer from 512 to 1024, and the guy said it worked for several days with no further updates. He happened to be running Viper when he made the changes... apparently it uses the stock kernel. I am running CleanROM with stock kernel, so I just installed trickster and changed my read-ahead buffer to 1024. I'll report back if that makes a difference. There was one follow-up comment that it didn't make a difference in the stock ROM (edit - ahh... from broprah... any update to that?).
FWIW, I have been noticing this issue a lot BUT I only get it when streaming to my BT earbuds (with HTC Music, Google Play Music, and Pocket Casts). This stuttering does not happen when I use wired earbuds or playing over BT in my car. I understand the scenarios are different for everyone, but that's my own situation.
furious78 said:
In sum, the potential fix is to change the read-ahead buffer from 512 to 1024, and the guy said it worked for several days with no further updates. He happened to be running Viper when he made the changes... apparently it uses the stock kernel. I am running CleanROM with stock kernel, so I just installed trickster and changed my read-ahead buffer to 1024. I'll report back if that makes a difference. There was one follow-up comment that it didn't make a difference in the stock ROM (edit - ahh... from broprah... any update to that?).
FWIW, I have been noticing this issue a lot BUT I only get it when streaming to my BT earbuds (with HTC Music, Google Play Music, and Pocket Casts). This stuttering does not happen when I use wired earbuds or playing over BT in my car. I understand the scenarios are different for everyone, but that's my own situation.
Click to expand...
Click to collapse
I ended up flashing Viper and I haven't experienced any stuttering since. In poking around, I see that changing the read ahead in the built in system tools only changes the internal read ahead. Further poking revealed that the external read ahead is preset to 4096kb, which could be the solution in the end.
broprah said:
I ended up flashing Viper and I haven't experienced any stuttering since. In poking around, I see that changing the read ahead in the built in system tools only changes the internal read ahead. Further poking revealed that the external read ahead is preset to 4096kb, which could be the solution in the end.
Click to expand...
Click to collapse
I don't see a differentiation in Trickster. Do you know if that's just a Viper setting?
I was using FauxTool to check and change settings, regardless of kernel.
No such luck with my read ahead change. :/
Sent from my HTC6525LVW using Tapatalk

[Q] Audio breaks in MP3 tracks

Hi all,
I just got myself a 16GB oneplus one. It is running on Cyanogen OS version 11.0-XNPH05Q.
I got this problem, which hopefully someone has a remedy for it:
During MP3 music playbacks (no matter what MP3 player app I have installed), there is always this audio ''breaks'' in between the song. It's like the music will start to play -->break-->play.
The playback is not very smooth and it's rather irritating.
Anything I can do to remedy this?
Eastlink said:
Hi all,
I just got myself a 16GB oneplus one. It is running on Cyanogen OS version 11.0-XNPH05Q.
I got this problem, which hopefully someone has a remedy for it:
During MP3 music playbacks (no matter what MP3 player app I have installed), there is always this audio ''breaks'' in between the song. It's like the music will start to play -->break-->play.
The playback is not very smooth and it's rather irritating.
Anything I can do to remedy this?
Click to expand...
Click to collapse
Honestly, I would try updating your rom. CM12 fixed a lot of audio issues, and a host of others as well. In any case, a custom rom and kernel would most likely be the easiest fix. Other than that, there's probably a thread somewhere around the OPO forums related to this
kibmikey1 said:
Honestly, I would try updating your rom. CM12 fixed a lot of audio issues, and a host of others as well. In any case, a custom rom and kernel would most likely be the easiest fix. Other than that, there's probably a thread somewhere around the OPO forums related to this
Click to expand...
Click to collapse
Unfortunately, I have tried using CM12 (latest weekly ROM cm-12-20150308-NIGHTLY-bacon), as well as LiquidSmooth ROM 5.0.
However, the problem occurs once the headphone is plugged into the headphone jack. I am getting this audio break from youtube videos, MP3 files in internal memory, etc...
But there aren't any issues with the music playback if I am using wireless bluetooth headphones or if the music is coming out from the phone speaker itself.
I suspect this could be a hardware issue? Maybe with the headphone jack?
Hi guys,
Any remedies on my problem? And by the way, if I downgrade my phone to CM11-33R, this issue of "music glitch" will disappear. Any ROM above CM11-33R will have this issue. This occurs only for music playback through earphones. No issues through the phone loudspeakers.
And another thing is what I found out accidentally:
When this music glitch happened, I just need to play some rock music at max volume, the phone will automatically bring up the google voice search screen. And I just need to close the google voice search and the music glitch will totally go away until the next time i plug in the earphones again.
No matter what i have tried, i.e. Official lollipop, franco kernel, etc... The music glitch is still there
Thanks

[Bug] Certain files make the audio cut out on Shield Tablet Lollipop

After I updated my Shield Tablet to Stock Lollipop (happens on both 5.0.1 and 5.1),
I noticed that with certain files that use the SW decoder, the audio in MXPlayer crackles a lot, and eventually the audio on the whole tablet cuts out for around 10 seconds (at least judging by the Logcat). This only occurs with MXPlayer. VLC has no audio issues, but I'd rather using MXPlayer for better seeking support. Also, when the audio cuts out, the video keeps playing, but when the audio starts working again, the video pauses until it aligns with the audio.
This appears to be a relevant line of the logcat:
Code:
W/AudioFlinger(17468): write blocked for 10016 msecs, 1 delayed writes, thread 0xaedd7000
One thing that the problematic video files have in common are 48000Hz audio channels, which I believe is the native sample rate of my device. Is there some resampling that isn't getting applied to 48KHz audio that might fix the issue? Is the AudioTrack not getting flushed properly?
The full log is attached. And these lines I believe are not relevant, because they happen nearly all the time when I have headphones plugged in:
Code:
W/NvAudioPolicyManager(17468): getDeviceForStrategy() unknown strategy:
xperia64 said:
After I updated my Shield Tablet to Stock Lollipop (happens on both 5.0.1 and 5.1),
I noticed that with certain files that use the SW decoder, the audio in MXPlayer crackles a lot, and eventually the audio on the whole tablet cuts out for around 10 seconds (at least judging by the Logcat). This only occurs with MXPlayer. VLC has no audio issues, but I'd rather using MXPlayer for better seeking support. Also, when the audio cuts out, the video keeps playing, but when the audio starts working again, the video pauses until it aligns with the audio.
This appears to be a relevant line of the logcat:
Code:
W/AudioFlinger(17468): write blocked for 10016 msecs, 1 delayed writes, thread 0xaedd7000
One thing that the problematic video files have in common are 48000Hz audio channels, which I believe is the native sample rate of my device. Is there some resampling that isn't getting applied to 48KHz audio that might fix the issue? Is the AudioTrack not getting flushed properly?
The full log is attached. And these lines I believe are not relevant, because they happen nearly all the time when I have headphones plugged in:
Code:
W/NvAudioPolicyManager(17468): getDeviceForStrategy() unknown strategy:
Click to expand...
Click to collapse
@xperia64Did I don't think this is a resampling issue. Have you tried HW+ decoder? SW decoder on high resolution video might cause this issue. And I will be test more if you send a sample video clip.
bleu8888 said:
@xperia64Did I don't think this is a resampling issue. Have you tried HW+ decoder? SW decoder on high resolution video might cause this issue. And I will be test more if you send a sample video clip.
Click to expand...
Click to collapse
The issue occurs on nearly all if not all videos with 48KHz audio tracks, from 320x240 all the way up to full HD. It is impossible to play some of these videos with HW+ due to them being WMV or Microsoft MP4's. I've encountered the issue even in Big Buck Bunny. I've tried the 1280x720 and 854x480 MP4's and the 854x480 MSMP4, which exhibit the issue https://peach.blender.org/download/
The lower resolution ones especially should not be that intensive.
If I play the regular BBB MP4's with the HW/+ decoder and SW audio (because AC3), I didn't notice any crackling. If I play them with the SW decoder, they eventually start crackling and audio on the whole tablet cuts out. If I play the MSMP4 version with the SW decoder and software or hardware audio, it will crackle.
I've been using MXPlayer for quite a while, and I remember that when playing larger files on an older device like the Motorola Droid 1, the audio track would sometimes get ahead of the video, and the audio would pause for a while, but this is different because there is no apparent lag and audio on the whole tablet dies.
It would appear that Nvidia's stock kernel is part of the problem here. I flashed a different kernel and I cannot reproduce the crackling/cutout. Although it's somewhat strange that only MXPlayer had this issue.
Well at least you have audio. I updated to 5.1 and did it through the ota with twrp and I have NO audio. Makes no sense. I went back to 5.0.1 and I have audio again. I tried a bunch of different things and still no way for me to get any audio on 5.1. I am thinking of trying a kernel and see if that helps. Or maybe go back, again, and wait for a fix!
JohnK71 said:
Well at least you have audio. I updated to 5.1 and did it through the ota with twrp and I have NO audio. Makes no sense. I went back to 5.0.1 and I have audio again. I tried a bunch of different things and still no way for me to get any audio on 5.1. I am thinking of trying a kernel and see if that helps. Or maybe go back, again, and wait for a fix!
Click to expand...
Click to collapse
@JohnK71 @xperia64
Would you try latest test version from following link?
https://sites.google.com/site/mxvpen/translation/test-build
Feedback will be appreciated.
bleu8888 said:
@JohnK71 @xperia64
Would you try latest test version from following link?
https://sites.google.com/site/mxvpen/translation/test-build
Feedback will be appreciated.
Click to expand...
Click to collapse
Sorry, but I am saying "NO" audio even playing music or checking and changing sounds. No sound at all and also no mic. It all works good back on 5.0.1 so not sure what's the deal with 5.1 for me. I guess I will hope for better results with next version of lollipop. Thanks anyway for the suggestion.
The test build did nothing different. However, version KS-034 of this kernel appears to have fixed my remaining audio issues. On KS-033, the audio was fine for 48KHz audio files, but would still cut out with 24KHz audio files and somewhat break any future AudioTracks in any app until reboot. Version 034 said it increased the HD audio buffer so I guess that did something.
http://forum.xda-developers.com/shi.../tweaked-kernel-nvidia-shield-tablet-t3069776
xperia64 said:
The test build did nothing different. However, version KS-034 of this kernel appears to have fixed my remaining audio issues. On KS-033, the audio was fine for 48KHz audio files, but would still cut out with 24KHz audio files and somewhat break any future AudioTracks in any app until reboot. Version 034 said it increased the HD audio buffer so I guess that did something.
http://forum.xda-developers.com/shi.../tweaked-kernel-nvidia-shield-tablet-t3069776
Click to expand...
Click to collapse
Shield Tablet OTA 3.0 looks like suspended due to audio issue.
See this link: https://forums.geforce.com/default/...3-0-update-feedback-thread-released-5-22-15-/
That is because of a different audio issue where the speakers would literally explode. I had the crackling on 5.0.1/2.2.1. as well.
And I actually went back to KS-033 because KS-034 made audio too latent and it reintroduced crackling on all files, granted it was diminished.
After updating to the latest BitO Kernel (KSX-043) and MXPlayer test version, crackling behavior has changed again, but I have a theory on the crackling this time.
I noticed that after a reboot, the crackling would stop for a while before it returned. The CPU in this device tries as hard as it can to keep its clockspeed at the minimum 51MHz while in sleep mode, regardless of wakelocks/background apps. I had been using Droidsound-e and my own AudioTrack-based music player in sleep mode and I noticed that those apps would skip/crackle a bit as they tried to process the music files but couldn't. That appears to somehow throw off audio output until reboot. The issues are still most noticeable in MXPlayer, but also appeared in other apps as well. I increased the minimum clockspeed to 204MHz and it seemed to help.
I don't know if this is the cause, or if it works on the stock kernel, but on my current setup it seems to work fine.

Feature Request: Start audio before video?

Under the settings for Audio I see something for Audio Delay. Does that apply to audio only files or will it work on videos also?
Is there a way we can get an audio delay where I can enter a negative value.. like have the audio start XX seconds before the video?
I don't play music when I drive in my car, I only play videos I've downloaded off YouTube. The problem? Video starts around 2 seconds before audio, so nothing is synched up properly on Bluetooth.
yuppicide said:
Under the settings for Audio I see something for Audio Delay. Does that apply to audio only files or will it work on videos also?
Is there a way we can get an audio delay where I can enter a negative value.. like have the audio start XX seconds before the video?
I don't play music when I drive in my car, I only play videos I've downloaded off YouTube. The problem? Video starts around 2 seconds before audio, so nothing is synched up properly on Bluetooth.
Click to expand...
Click to collapse
It will work on video files too. It may not work in HW decoder on some devices. You can just set HW+ as default decoder on such conditions.
If you want to set the audio delay only to Bluetooth devices, You can just set the Bluetooth audio delay instead of General one.
Thirumalai.K said:
It will work on video files too. It may not work in HW decoder on some devices. You can just set HW+ as default decoder on such conditions.
If you want to set the audio delay only to Bluetooth devices, You can just set the Bluetooth audio delay instead of General one.
Click to expand...
Click to collapse
I cannot get it to work at all. It doesn't seem like the setting does anything. I tried -2.0 and 2.0, neither did anything. Then I tried 20.0 as a test.. that didn't do anything either.
yuppicide said:
I cannot get it to work at all. It doesn't seem like the setting does anything. I tried -2.0 and 2.0, neither did anything. Then I tried 20.0 as a test.. that didn't do anything either.
Click to expand...
Click to collapse
Kindly collect a bug report & share with us. It may help us to understand the issue better.

Video Buffering?

Was wondering if anyone else has experienced video Lag or buffering. I know it isn't a network issue because I didn't have the problem on my note 8.
issue : I will click on a video and it will usually start to play right away but 5-10 second in it will pause like it's buffering and not start back, even though I can see the video is downloaded just fine. I will have to skip ahead 5 seconds or so for the video to resume playing again.
is this an issue of anyone else or just me?
I have the Same in YouTube
No in fact the 7pro is getting 30% fast network speed then my OP6 was getting in the same areas. I am Using YouTube Vanced and I'm watching 1440p videos with zero buffering and the full videos are cached by the time I'm about 60% through the video. Have zero complaints with any streaming source so far.
Mine doesn't have any real issues. There are times where it slows but I attribute that to network. Most times it works fine
Streaming over Youtube and Netflix are perfect for me but video does play kinda funny over LAN. Some network browsers would buffer to no end and HW decoding is out of sync over LAN for some files. Switching network browser apps and use SW decoding solved the problem for me.
wr3zzz said:
Streaming over Youtube and Netflix are perfect for me but video does play kinda funny over LAN. Some network browsers would buffer to no end and HW decoding is out of sync over LAN for some files. Switching network browser apps and use SW decoding solved the problem for me.
Click to expand...
Click to collapse
I have noticed the same over LAN. What did you do to use SW decoding if you don't mind me asking?
Bftrek said:
I have noticed the same over LAN. What did you do to use SW decoding if you don't mind me asking?
Click to expand...
Click to collapse
I use both MX Player and VLC. MX Player is probably the easiest. There is an icon on the upper right that says either HW, HW+ or SW. Press it to change decoding mode. The out of sync files are always either HW or HW+. Switching to SW and they are back in sync, for me at least.
Anyone know a workaround for apps like Netflix and MLB at Bat playing video completely full screen and displaying a stretched image?
Sent from my GM1915 using Tapatalk
DonKilluminati23 said:
Anyone know a workaround for apps like Netflix and MLB at Bat playing video completely full screen and displaying a stretched image?
Sent from my GM1915 using Tapatalk
Click to expand...
Click to collapse
For Netflix, two finger pinch.

Categories

Resources