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

No picture when playing Dolby Vision video (Unknown Dolby Vision level string) #8530

Closed
moneytoo opened this issue Feb 2, 2021 · 6 comments
Assignees
Labels

Comments

@moneytoo
Copy link
Contributor

moneytoo commented Feb 2, 2021

I'm unsuccessfully trying to play Dolby Vision videos that come from iPhone 11/12 devices (not necessarily the stock recorder app). When playing these two samples:

following is logged and video does not play (no picture at all):

W/MediaCodecUtil: Unknown Dolby Vision level string: 010
    Unknown Dolby Vision level string: 010
W/MediaCodecUtil: Unknown Dolby Vision level string: 012
    Unknown Dolby Vision level string: 012

Platform VideoView plays both videos just fine.

  • ExoPlayer version number: 2.12.3
  • Android version: 10
  • Android device: OnePlus 7
@krocard
Copy link
Contributor

krocard commented Feb 2, 2021

For reference, the level is parsed by this switch.

@kim-vde
Copy link
Contributor

kim-vde commented Feb 2, 2021

Could you provide a bug report for the 2 following scenarios:

  1. Playing one of the videos with MediaPlayer/PlayerView.
  2. Attempting to play it with ExoPlayer.

Note that:

@moneytoo
Copy link
Contributor Author

moneytoo commented Feb 2, 2021

kim-vde added a commit that referenced this issue Feb 4, 2021
Before, the level was set to null in this case.
MediaCodecUtil.getCodecProfileAndLevel() was therefore returning null
and the fallback to AVC/HEVC was not enabled in MediaCodecVideoRenderer.

Issue:#8530
#minor-release
PiperOrigin-RevId: 355574499
@kim-vde
Copy link
Contributor

kim-vde commented Feb 4, 2021

I just pushed a fix on branch dev-v2. It will be part of the next release (2.13.0).

Please open another bug if you encounter other issues. Thanks for reporting this one.

@moneytoo
Copy link
Contributor Author

moneytoo commented Feb 4, 2021

Amazing, thank you!

ojw28 pushed a commit that referenced this issue Feb 4, 2021
Before, the level was set to null in this case.
MediaCodecUtil.getCodecProfileAndLevel() was therefore returning null
and the fallback to AVC/HEVC was not enabled in MediaCodecVideoRenderer.

Issue:#8530
PiperOrigin-RevId: 355574499
@moneytoo
Copy link
Contributor Author

moneytoo commented Feb 4, 2021

Just confirming that I'm able to play the videos with dev-v2-r2.13.0 branch.

@google google locked and limited conversation to collaborators Apr 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants