abrenoch / hyperion-android-grabber

Screen grabber for hyperion
MIT License
201 stars 35 forks source link

HDR #154

Open LordBoos opened 4 years ago

LordBoos commented 4 years ago

Grabbing HDR10 media produces very dimmed and washed out colors on Hyperion. Can you convert HDR images to SDR images before sending them to Hyperion server?

abrenoch commented 4 years ago

This might be possible, but I'm not very sure of it. I would wager that the display would need to be captured in a different pixel format (currently it uses 8 bit RGB), and the math for converting that colorspace to RGB would need to be worked out. Assuming we can get an accurate RGB representation from each HDR pixel, this should be possible... But I'm just not sure if the android API even works like that. Proper HDR decoding may very well only happen at the display itself.

Interesting thought... I'm not too confident it can even be done, but I'll keep this issue open for now!

LordBoos commented 4 years ago

I'm not sure myself, but my 2 different Android boxes both have setting in the system settings to convert all HDR to SDR and even SRD to HDR so it might be possible. Boxes are Nvidia Shiled TV Pro 2019 and Xiaomi Mi Box 2. While I could theoretically use that feature, it's not ideal because my TV supports HDR and I don't want to watch SDR only because of Hyperion.

flos06 commented 2 years ago

Any thoughts? HDR gives way different colors. Would love to get this working with HDR

menn0 commented 2 years ago

Would implementations done at HyperHDR help with implementing this into android grabber as well, HyperGrabber anyone? :)