question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Choppy audio playback for some m4a's

See original GitHub issue

Hi ExoPlayer team,

I’ve had user reports of choppy audio for a couple of songs. They’ve sent me the tracks, which I’ll attach here. Unfortunately they’re extremely awful to listen to even without playback issues.

Easy to replicate. Listen to either song and you should notice the ‘choppy’ sound.

I can replicate the issue on my Pixel 5 running Android 11. I see the following in the logs:

W/C2SoftAacDec: AAC decoder returned error 0x4004, substituting silence
W/C2SoftAacDec: aacDecoder_DecodeFrame decoderErr = 0x4004

These lines are consistently output while playing the files.

I’ve reproduced the issue in ExoPlayer 2.14.1.

I reckon there’s probably a good chance that the file is corrupt, or incorrectly encoded - but I don’t possess the skills to verify this. According to user reports, these play OK using other apps (so probably using the Android MediaPlayer).

I tested in VLC and playback seems OK.

Sincere apologies to anyone who has to listen to the audio. songs.zip

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ojw28commented, Sep 6, 2021

The issue seems to be fixed on Pixel running Android 12. I’m following up to try and understand what the fix was, and whether it will be deployed to Android 11 devices (for those devices that are not updated quickly, or will have Android 11 as their final major release).

1reaction
ojw28commented, Jun 15, 2021

I’m not sure what’s going wrong here, but I’ve filed an internal issue on those responsible for the AAC decoder to take an initial look [Internal ref: 191123693]. I’ll provide an update when we hear back.

Sincere apologies to anyone who has to listen to the audio.

Heh 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Audio file in logic, playback choppy - Apple Community
When I playback the audio file in logic it sounds really choppy, like the cursor is jumping or skipping all the time. The...
Read more >
[Q] Choppy Audio Playback | XDA Forums
I've tried on a number of apps (google music, rocket player, walkman, ), all with the same problems. The audios are all vbr,...
Read more >
m4a stuttering and possible codec issue - Slimdevices forum
M4A files without the audio stuttering. I fund a post on this forum explaining how to change the config file to add the...
Read more >
Fix Choppy, Jerky, Jumpy or Skipping Video Playback
This page shows you how to fix choppy, jerky, jumpy or skipping video playback issues with 6 solutions.
Read more >
MediaElementWebAudio Choppy Playback in iOS Safari #2210
At normal playback speed it sounds OK but slightly choppy. ... Only tried mp3, someone once told me M4A is good for Safari, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found