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

HLS Playlist issue "Unable to instantiate decoder OMX.MTK.VIDEO.DECODER.AVC" #2618

Closed
pandiarajanvp opened this issue Mar 16, 2022 · 5 comments
Labels
stale Closed due to inactivity or lack or resources

Comments

@pandiarajanvp
Copy link

Bug

Platform

Android

Which player are you experiencing the problem on:

  • Android ExoPlayer

Environment info

React native info output:

System:
    OS: macOS 11.6.4
    CPU: (4) x64 Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
    Memory: 215.01 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.18.1 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.5.4 - /usr/local/bin/npm
    Watchman: 2022.01.31.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - /usr/local/opt/ruby/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
    Android SDK:
      API Levels: 23, 24, 26, 27, 28, 29, 30, 31
      Build Tools: 28.0.3, 29.0.2, 30.0.2, 31.0.0, 32.0.0, 33.0.0
      System Images: android-28 | Google Play Intel x86 Atom, android-30 | Google Play Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 2021.1 AI-211.7628.21.2111.8139111
    Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_311 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.66.3 => 0.66.3 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Library version: 5.2.0

Steps To Reproduce

  1. Play HLS playlist in flatlist after 10 to 15 videos its getting error
  2. if one video getting error ,upcoming video can't play

Expected behavior

Reproducible sample code

<Video
id={uuid.v4()}
ref={ref => {
this.video = ref;
}}
source={{
uri:"https://vz-602a2693-e0f.b-cdn.net/c496b51c-8216-4c71-9935-d158caf8a26a/playlist.m3u8"
}}
style={[styles.fullScreen, {height: '100%'}]}
rate={this.state.rate}
//paused={this.state.paused}
paused={this.state.paused}
// useNativeControls
volume={this.state.volume}
muted={this.state.muted}
resizeMode={this.state.resizeMode}
onLoad={this.onLoad}
onProgress={this.onProgress}
progressUpdateInterval={250.0} //IOS
onEnd={this.onEnd}
onAudioBecomingNoisy={this.onAudioBecomingNoisy}
onAudioFocusChanged={this.onAudioFocusChanged}
onLayout={
this.props.onLayout
}
repeat={false}
fullscreenOrientation="portrait"
fullscreen={false}
poster={thumbnail}
posterResizeMode="cover"
controls={false}
onError={this.onError}
playInBackground={false}
disableFocus={false}
playWhenInactive={false}
onBuffer={
this.videoBuffer
}
reportBandwidth={false}
bufferConfig={{
minBufferMs: 5000,
maxBufferMs: 10000,
bufferForPlaybackMs: 2500,
bufferForPlaybackAfterRebufferMs: 5000,
}}
/>

Error sample

Video Play Error: {"error": {"errorException": "com.google.android.exoplayer2.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(2, null, null, video/avc, avc1.4D401F, 1400000, null, [842, 474, -1.0], [-1, -1]), format_supported=YES", "errorString": "Unable to instantiate decoder OMX.MTK.VIDEO.DECODER.AVC"}}

@freeboub
Copy link
Collaborator

freeboub commented May 2, 2022

Mediacodec issues are generally linked to hardware compatibility.
You should check this isuse with an exoplayer sample first.
Can you try ?

@nikesh8
Copy link

nikesh8 commented May 20, 2022

Anyone have found the fix for this issue?

@hueniverse hueniverse added the stale Closed due to inactivity or lack or resources label May 21, 2022
@rohitsingh2410
Copy link

Bug

Platform

Android

Which player are you experiencing the problem on:

* Android ExoPlayer

Environment info

React native info output:

System:
    OS: macOS 11.6.4
    CPU: (4) x64 Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
    Memory: 215.01 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.18.1 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.5.4 - /usr/local/bin/npm
    Watchman: 2022.01.31.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - /usr/local/opt/ruby/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
    Android SDK:
      API Levels: 23, 24, 26, 27, 28, 29, 30, 31
      Build Tools: 28.0.3, 29.0.2, 30.0.2, 31.0.0, 32.0.0, 33.0.0
      System Images: android-28 | Google Play Intel x86 Atom, android-30 | Google Play Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 2021.1 AI-211.7628.21.2111.8139111
    Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_311 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.66.3 => 0.66.3 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Library version: 5.2.0

Steps To Reproduce

1. Play HLS playlist in flatlist after 10 to 15 videos its getting error

2. if one video getting error ,upcoming video can't play

Expected behavior

Reproducible sample code

<Video id={uuid.v4()} ref={ref => { this.video = ref; }} source={{ uri:"https://vz-602a2693-e0f.b-cdn.net/c496b51c-8216-4c71-9935-d158caf8a26a/playlist.m3u8" }} style={[styles.fullScreen, {height: '100%'}]} rate={this.state.rate} //paused={this.state.paused} paused={this.state.paused} // useNativeControls volume={this.state.volume} muted={this.state.muted} resizeMode={this.state.resizeMode} onLoad={this.onLoad} onProgress={this.onProgress} progressUpdateInterval={250.0} //IOS onEnd={this.onEnd} onAudioBecomingNoisy={this.onAudioBecomingNoisy} onAudioFocusChanged={this.onAudioFocusChanged} onLayout={ this.props.onLayout } repeat={false} fullscreenOrientation="portrait" fullscreen={false} poster={thumbnail} posterResizeMode="cover" controls={false} onError={this.onError} playInBackground={false} disableFocus={false} playWhenInactive={false} onBuffer={ this.videoBuffer } reportBandwidth={false} bufferConfig={{ minBufferMs: 5000, maxBufferMs: 10000, bufferForPlaybackMs: 2500, bufferForPlaybackAfterRebufferMs: 5000, }} />

Error sample

Video Play Error: {"error": {"errorException": "com.google.android.exoplayer2.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(2, null, null, video/avc, avc1.4D401F, 1400000, null, [842, 474, -1.0], [-1, -1]), format_supported=YES", "errorString": "Unable to instantiate decoder OMX.MTK.VIDEO.DECODER.AVC"}}

Did you found any solution?

@jucoAllison
Copy link

please what is the solution???

@freeboub
Copy link
Collaborator

freeboub commented Jul 8, 2023

please check this thread: #2984

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Closed due to inactivity or lack or resources
Projects
None yet
Development

No branches or pull requests

6 participants