TheWidlarzGroup / react-native-video

A <Video /> component for react-native
http://thewidlarzgroup.github.io/react-native-video/
MIT License
7.15k stars 2.88k forks source link

[BUG]: ERROR_CODE_DECODER_INIT_FAILED #3888

Closed amitmehtacode closed 1 month ago

amitmehtacode commented 3 months ago

Version

6.1.2

What platforms are you having the problem on?

Android

System Version

Android Sumulator, Android 12 or below

On what device are you experiencing the issue?

Simulator

Architecture

Old architecture

What happened?

When I play a video, I get an error after a few seconds of playing

{"error": {"errorCode": "24001", "errorException": "androidx.media3.exoplayer.ExoPlaybackException: MediaCodecAudioRenderer error, index=1, format=Format(1/129, null, null, audio/ac3, null, 384000, null, [-1, -1, -1.0, null], [6, 48000]), format_supported=NO_UNSUPPORTED_TYPE", "errorStackTrace": "androidx.media3.exoplayer.ExoPlaybackException: MediaCodecAudioRenderer error, index=1, format=Format(1/129, null, null, audio/ac3, null, 384000, null, [-1, -1, -1.0, null], [6, 48000]), format_supported=NO_UNSUPPORTED_TYPE at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:601) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.os.HandlerThread.run(HandlerThread.java:67) Caused by: androidx.media3.exoplayer.mediacodec.MediaCodecRenderer$DecoderInitializationException: Decoder init failed: [-49999], Format(1/129, null, null, audio/ac3, null, 384000, null, [-1, -1, -1.0, null], [6, 48000]) at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.maybeInitCodecWithFallback(MediaCodecRenderer.java:1021) at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.maybeInitCodecOrBypass(MediaCodecRenderer.java:556) at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.reinitializeCodec(MediaCodecRenderer.java:2196) at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.processEndOfStream(MediaCodecRenderer.java:2059) at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.drainOutputBuffer(MediaCodecRenderer.java:1889) at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:816) at androidx.media3.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:1047) at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:522) ... 4 more ", "errorString": "ExoPlaybackException: ERROR_CODE_DECODER_INIT_FAILED"}}

Reproduction

No response

Reproduction

This happend in Android Simulator and real device both (if theri network is 4G or low network)

amitmehtacode commented 3 months ago

This issue is also there on android 13 Sumulator

freeboub commented 3 months ago

Do you have a sample url ?

KrzysztofMoch commented 1 month ago

No activity nor response - I am closing this

KaungHtetHein116 commented 1 month ago

i had to reduce the video size and quality in order to make it work