com.google.android.exoplayer.MediaCodecTrackRenderer$DecoderInitializationException: Decoder init failed: OMX.MTK.VIDEO.DECODER.AVC, MediaFormat(1, video/avc, -1, 1036784, 3840, 2048, 0, 1.0, -1, -1, null, 29397000, false, -1, -1, -1, -1, -1)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via android.com by Unknown author

It looks like you are trying to use MediaFormat with wrong parameters.

,
Expert tip

If you're not using adaptive playback, you might have to stop(), release() and clean your references from getInputBuffers() and getOutputBuffers()

Solutions on the web

via GitHub by nathanmartz
, 1 year ago
Decoder init failed: OMX.MTK.VIDEO.DECODER.AVC, MediaFormat(1, video/avc, -1, 1036784, 3840, 2048, 0, 1.0, -1, -1, null, 29397000, false, -1, -1, -1, -1, -1)
com.google.android.exoplayer.MediaCodecTrackRenderer$DecoderInitializationException: Decoder init failed: OMX.MTK.VIDEO.DECODER.AVC, MediaFormat(1, video/avc, -1, 1036784, 3840, 2048, 0, 1.0, -1, -1, null, 29397000, false, -1, -1, -1, -1, -1)
at android.media.MediaCodec.native_configure(Native Method)
at android.media.MediaCodec.configure(MediaCodec.java:590)
at com.google.android.exoplayer.MediaCodecVideoTrackRenderer.configureCodec(MediaCodecVideoTrackRenderer.java:328)
at com.google.android.exoplayer.MediaCodecTrackRenderer.maybeInitCodec(MediaCodecTrackRenderer.java:402)
at com.google.android.exoplayer.MediaCodecTrackRenderer.onInputFormatChanged(MediaCodecTrackRenderer.java:797)
at com.google.android.exoplayer.MediaCodecVideoTrackRenderer.onInputFormatChanged(MediaCodecVideoTrackRenderer.java:333)
at com.google.android.exoplayer.MediaCodecTrackRenderer.readFormat(MediaCodecTrackRenderer.java:540)
at com.google.android.exoplayer.MediaCodecTrackRenderer.doSomeWork(MediaCodecTrackRenderer.java:523)
at com.google.android.exoplayer.SampleSourceTrackRenderer.doSomeWork(SampleSourceTrackRenderer.java:128)
at com.google.android.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:432)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:192)
at android.os.HandlerThread.run(HandlerThread.java:61)

Users with the same issue

Once, 5 months ago
7 times, 11 months ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.