media icon indicating copy to clipboard operation
media copied to clipboard

Adding `player#setVideoEffect(emptyList())` workaround causes hevc video to be stuck

Open how8570 opened this issue 6 months ago • 14 comments

Version

Media3 1.4.0

More version details

commit hash: b01c6ffcb3fca3d038476dab5d3bc9c9f2010781

Devices that reproduce the issue

Sony BRAVIA device build-in Android 9

Devices that do not reproduce the issue

CCwGTV

Reproducible in the demo app?

Yes

Reproduction steps

This is a workaround from https://github.com/google/ExoPlayer/issues/11038

This can be reproduce on demo app.

  1. Add the lib-effect dependency to build.gradle (:demo). image

  2. Add player.setVideoEffects(new ArrayList<>()); to PlayerActivity#initializePlayer(). image

  3. Build the demo app and select any H.265 codec video to play. (Here, I selected clear dash HD (mp4, H.265)).

  4. Observe the issue.

Expected result

play correctly, each frame correct and player will stop(ended) when content finish.

Actual result

PlayerView frame display stucked, but (progress bar time /upper log rb:<value>) keep growing.

When Play to end, the progress bar time still go over (e.g. timer display will show 13:38-12:14, even video only got 12m14s) image

Media

demo app clear dash HD (mp4, H.265)

Bug Report

  • [ ] You will email the zip file produced by adb bugreport to [email protected] after filing this issue.

how8570 avatar Aug 19 '24 10:08 how8570