the-database / mpv-upscale-2x_animejanai

Real-time anime upscaling to 4k in mpv with Real-ESRGAN compact models
Other
284 stars 6 forks source link

Dolby Vision Outputs Wrong Colors #20

Open carycary246 opened 1 year ago

carycary246 commented 1 year ago

MPV is able to properly decode dolby vision files with the following configuration lines but when using animejanai, it displays the wrong colors.

profile=gpu-hq
vo=gpu-next
gpu-api=d3d11
gpu-context=d3d11

mpv_2023-06-30_15-30-23 With Animejanai mpv_2023-06-30_15-30-17

422415 commented 1 year ago

Unfortunately, it is not possible to upscale HDR color ranges from what I understand. You would need to look for the best way to tonemap HDR to SDR in mpv as that should work.

carycary246 commented 1 year ago

Thanks for the insight but I don't believe color range is the issue here as I tested on different HDR movies and it upscales using animejanai perfectly fine. I also tested playing these movies in SDR with tonemapping and there are no issues. Only this dolby vision file exhibits this issue with incorrect colors.

hooke007 commented 1 year ago

known issue, currently dv is not supported with vs in mpv.

422415 commented 1 year ago

Thanks for the insight but I don't believe color range is the issue here as I tested on different HDR movies and it upscales using animejanai perfectly fine. I also tested playing these movies in SDR with tonemapping and there are no issues. Only this dolby vision file exhibits this issue with incorrect colors.

Yeah sorry I misspoke. I meant Dolby Vision not HDR. I looked into this when I tried to upscale Cyberpunk last year and had the same issue.