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

androidx.media3.exoplayer.ExoPlaybackException: MediaCodecVideoRenderer error #882

Open
jackman0925 opened this issue Jan 8, 2025 · 3 comments

Comments

@jackman0925
Copy link

Phone Brand: HuaWei P40 Pro
Phone OS: HarmonyOS 4.0.0
Source Link: https://gcalic.v.myalicdn.com/gc/wgw05_1/index.m3u8?contentid=2820180516001
For more details:
E/MediaCodecVideoRenderer(25028): Video codec error
E/MediaCodecVideoRenderer(25028): android.media.MediaCodec$CodecException: Error 0xfffffc0e
E/ExoPlayerImplInternal(25028): Playback error
E/ExoPlayerImplInternal(25028): androidx.media3.exoplayer.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(0, null, null, video/avc, avc1.64001E, -1, null, [720, 576, -1.0, ColorInfo(Unset color space, Unset color range, Unset color transfer, false, 8bit Luma, 8bit Chroma)], [-1, -1]), format_supported=YES
E/ExoPlayerImplInternal(25028): at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:640)
E/ExoPlayerImplInternal(25028): at android.os.Handler.dispatchMessage(Handler.java:113)
E/ExoPlayerImplInternal(25028): at android.os.Looper.loopOnce(Looper.java:205)
E/ExoPlayerImplInternal(25028): at android.os.Looper.loop(Looper.java:293)
E/ExoPlayerImplInternal(25028): at android.os.HandlerThread.run(HandlerThread.java:110)
E/ExoPlayerImplInternal(25028): Caused by: androidx.media3.exoplayer.video.MediaCodecVideoDecoderException: Decoder failed: OMX.hisi.video.decoder.avc
E/ExoPlayerImplInternal(25028): at androidx.media3.exoplayer.video.MediaCodecVideoRenderer.createDecoderException(MediaCodecVideoRenderer.java:1982)
E/ExoPlayerImplInternal(25028): at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:893)
E/ExoPlayerImplInternal(25028): at androidx.media3.exoplayer.video.MediaCodecVideoRenderer.render(MediaCodecVideoRenderer.java:1018)
E/ExoPlayerImplInternal(25028): at androidx.media3.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:1136)
E/ExoPlayerImplInternal(25028): at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:561)
E/ExoPlayerImplInternal(25028): ... 4 more
E/ExoPlayerImplInternal(25028): Caused by: android.media.MediaCodec$CodecException: Error 0xfffffc0e
E/ExoPlayerImplInternal(25028): Disable failed.
E/ExoPlayerImplInternal(25028): java.lang.IllegalStateException
E/ExoPlayerImplInternal(25028): at android.media.MediaCodec.native_flush(Native Method)
E/ExoPlayerImplInternal(25028): at android.media.MediaCodec.flush(MediaCodec.java:2350)
E/ExoPlayerImplInternal(25028): at androidx.media3.exoplayer.mediacodec.AsynchronousMediaCodecAdapter.flush(AsynchronousMediaCodecAdapter.java:247)
E/ExoPlayerImplInternal(25028): at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.flushCodec(MediaCodecRenderer.java:960)
E/ExoPlayerImplInternal(25028): at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.flushOrReleaseCodec(MediaCodecRenderer.java:953)
E/ExoPlayerImplInternal(25028): at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.onDisabled(MediaCodecRenderer.java:780)
E/ExoPlayerImplInternal(25028): at androidx.media3.exoplayer.video.MediaCodecVideoRenderer.onDisabled(MediaCodecVideoRenderer.java:794)
E/ExoPlayerImplInternal(25028): at androidx.media3.exoplayer.BaseRenderer.disable(BaseRenderer.java:220)
E/ExoPlayerImplInternal(25028): at androidx.media3.exoplayer.ExoPlayerImplInternal.disableRenderer(ExoPlayerImplInternal.java:1846)
E/ExoPlayerImplInternal(25028): at androidx.media3.exoplayer.ExoPlayerImplInternal.resetInternal(ExoPlayerImplInternal.java:1566)
E/ExoPlayerImplInternal(25028): at androidx.media3.exoplayer.ExoPlayerImplInternal.stopInternal(ExoPlayerImplInternal.java:1523)
E/ExoPlayerImplInternal(25028): at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:686)
E/ExoPlayerImplInternal(25028): at android.os.Handler.dispatchMessage(Handler.java:113)
E/ExoPlayerImplInternal(25028): at android.os.Looper.loopOnce(Looper.java:205)
E/ExoPlayerImplInternal(25028): at android.os.Looper.loop(Looper.java:293)
E/ExoPlayerImplInternal(25028): at android.os.HandlerThread.run(HandlerThread.java:110)
I/MediaCodec(25028): kWhatFlush processing is complete

@jackman0925
Copy link
Author

chewie: ^1.8.5
video_player: ^2.9.2

@diegotori
Copy link
Collaborator

@jackman0925 this has nothing to do with this library. Your beef is with video_player's Android implementation, which uses ExoPlayer on its platform backend.

Please raise an issue with the Flutter team in order to resolve this. Thanks.

@wapchief
Copy link

wapchief commented Jan 10, 2025

3.24+
AndroidManifest.xml


<meta-data
    android:name="io.flutter.embedding.android.DisableImpeller"
    android:value="true" />

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

3 participants