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

Tell me please why the error androidx.media3.exoplayer.ExoPlaybackException: MediaCodecAudioRenderer occurs #1502

Closed
udfvirus opened this issue Jun 26, 2024 · 1 comment
Assignees
Labels

Comments

@udfvirus
Copy link

udfvirus commented Jun 26, 2024

androidx.media3.exoplayer.ExoPlaybackException: MediaCodecAudioRenderer error, index=2, format=Format(1/4, null, null, audio/mpeg-L2, null, -1, null, [-1, -1, -1.0, null], [2, 48000]), format_supported=NO_UNSUPPORTED_TYPE
	at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:623)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:223)
	at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: androidx.media3.exoplayer.mediacodec.MediaCodecRenderer$DecoderInitializationException: Decoder init failed: [-49999], Format(1/4, null, null, audio/mpeg-L2, null, -1, null, [-1, -1, -1.0, null], [2, 48000])
	at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.maybeInitCodecWithFallback(MediaCodecRenderer.java:1079)
	at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.maybeInitCodecOrBypass(MediaCodecRenderer.java:551)
	at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.onInputFormatChanged(MediaCodecRenderer.java:1560)
	at androidx.media3.exoplayer.audio.MediaCodecAudioRenderer.onInputFormatChanged(MediaCodecAudioRenderer.java:517)
	at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.readSourceOmittingSampleData(MediaCodecRenderer.java:994)
	at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:814)
	at androidx.media3.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:1112)
	at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:544)
	at android.os.Handler.dispatchMessage(Handler.java:102) 
	at android.os.Looper.loop(Looper.java:223) 
	at android.os.HandlerThread.run(HandlerThread.java:67) 
@icbaker
Copy link
Collaborator

icbaker commented Jun 28, 2024

format_supported=NO_UNSUPPORTED_TYPE

The logs indicate that your device doesn't support the audio you're playing. Note that the audio/mpeg-L2 audio sample format is not required to be supported by any Android devices (though some devices may of course support it): https://developer.android.com/media/platform/supported-formats#audio-formats

@icbaker icbaker self-assigned this Jun 28, 2024
@androidx androidx locked and limited conversation to collaborators Aug 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants