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

Green screen output on Android TV box #853

Open
IzanagisBurden opened this issue Jan 15, 2024 · 3 comments
Open

Green screen output on Android TV box #853

IzanagisBurden opened this issue Jan 15, 2024 · 3 comments

Comments

@IzanagisBurden
Copy link

IzanagisBurden commented Jan 15, 2024

Important information

Android version: 10

mpv-android version: mpv-android 2023-11-30 release / mpv v0.37.0-55

Which version of mpv-android introduced the problem (if known): mpv-android 2023-11-30 release / mpv v0.37.0-55

Description

Playback of any 2160p HEVC HDR video file (on an SDR display) results in a static green screen output. H264 SDR files play normally.

Using vo=mediacodec_embed will display video.

Log output

logcat.txt

Additional information

Formuler Z10 Android TV box
Mali-G31 GPU

the hdr hevc 2160p videos play normally in VLC

setting vf=format=yuv420p as per #198 makes no difference

@sfan5
Copy link
Member

sfan5 commented Jan 15, 2024

Hmm. Hard to say what's wrong here.
Does it work in vo_gpu?
Does it work with SW decoding mode?

@IzanagisBurden
Copy link
Author

IzanagisBurden commented Jan 16, 2024

with vo_gpu, the behavior is the same (green screen, although dimmer)

I believe sw decoding works, but for the files I tested (4K HDR) I think the CPU was too slow to display an image. I also tried with a 4K SDR 8 bit HEVC file and I was getting some frames displayed.

One thing I noticed as well is that it displayed 1080p SDR HEVC 8 bit content and 1080p H264 8 bit but image appeared glitchy, as if certain rectangles of the image glitched/overlapped other parts of the image.

Additionally, I tried MX Player Pro and all my files played normally and it reported HW+ decoder being used.

@chainikdn
Copy link

chainikdn commented Jan 31, 2024

Same here, on a RK3588 box all HEVC and VP9 videos show green screen when using "HW" decoder (i.e. mediacodec-copy).
It works with "HW+" (i.e. "mediacodec"-non-copy) though, but it's kind of meaningless for HDR content cause there's no tone mapping in this case. "SW" works too but the device just can't handle 4K HEVC in sw mode.
Same behavior on gpu and gpu-next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants