Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MediaCodecAudioRenderer error when playing videos with DD+ on Pixel 7 #547

Open
jddecker opened this issue Dec 27, 2023 · 0 comments
Open

Comments

@jddecker
Copy link

jddecker commented Dec 27, 2023

Describe the bug
When opening a video file that as a Dolby Digital Plus audio track, the video doesn't play and displays the error:

MediaCodecAudioRenderer error, index=2, format=Format(2, null, null, audio/eac3, null, -1, en, [-1, -1, -1.0, null], [6, 48000]), format_supported=YES

There is a details button after the error that displays:

Decoder failed: c2.dolby.eac3.decoder

To Reproduce
Steps to reproduce the behavior:

  1. Open video file that has a Dolby Digital Plus audio track (for example one of the videos with a Dolby Digital Plus audio track on the Dolby page)
  2. Video doesn't play and error on screen displays: MediaCodecAudioRenderer error, index=2, format=Format(2, null, null, audio/eac3, null, -1, en, [-1, -1, -1.0, null], [6, 48000]), format_supported=YES

Expected behavior
Video should play with audio

Device (please complete the following information):

  • Model: Google Pixel 7
  • OS: Android 14
  • Version: 0.154

Media
Any media that has an audio format listed by MediaInfo as E-AC-3 JOC

Additional context
I found a workaround where the video will play by toggling the decoder priority in the video settings. Steps for the workaround:

  1. Open video with Dolby Digital Plus audio track
  2. Audio decoding error on screen
  3. Go to settings by long pressing the cog button
  4. Change Decoder priority from Prefer device decoders (default) to Prefer app decoders
  5. Exit settings
  6. Try to play video again and get the same audio decoding error
  7. Go back to settings by long pressing the cog button
  8. Change Decoder priority back to Prefer device decoders (default)
  9. Exit settings
  10. Play video again and video will play with audio and video

I've attached a screen recoding of the workaround (I removed the audio in the recording, but the audio does play)

just.video.pixel.7.dd.plus.workaround.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant