google / google/ExoPlayer

3840 frame width video in short HIGH RESOLUTION videos not playing and gives decoder initialization error

Open
#10,818 2 comments 1 reaction 1 assignee Claimed by @rohitjoins View on GitHub
bug needs triage
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

### ExoPlayer Version

2.18.2

### Devices that reproduce the issue

All

### Devices that do not reproduce the issue

_No response_

### Reproducible in the demo app?

Yes

### Reproduction steps

```
exoPlayer = new ExoPlayer.Builder(holder.mVideoView.getContext()).setLoadControl(loadControl).build();

holder.mVideoView.setPlayer(exoPlayer);

holder.mVideoView.setResizeMode(AspectRatioFrameLayout.RESIZE_MODE_ZOOM);
holder.mVideoView.setShutterBackgroundColor(Color.TRANSPARENT);
holder.mVideoView.setKeepContentOnPlayerReset(true);
exoPlayer.seekTo(0);
exoPlayer.setRepeatMode(Player.REPEAT_MODE_ONE);

mediaSource = new ProgressiveMediaSource.Factory(
new CacheDataSource.Factory()
.setCache(SimpleMediaPlayer.getInstance(mContext))
.setUpstreamDataSourceFactory(new DefaultHttpDataSource.Factory()
.setUserAgent(mContext.getString(R.string.app_name)))
.setFlags(CacheDataSource.FLAG_IGNORE_CACHE_ON_ERROR)
).createMediaSource(MediaItem.fromUri(videoItem.videoURL));

exoPlayer.addMediaSource(mediaSource);

exoPlayer.prepare();

exoPlayer.setPlayWhenReady(true);
exoPlayer.play();
```

### Expected result

Videos should play whatever resolution it is.

### Actual result

Playback error and decode initialization error only with high resolution videos

### Media

any 3k,4k video you can check

### Bug Report

- [ ] You will email the zip file produced by `adb bugreport` to dev.exoplayer@gmail.com after filing this issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.