mpv
mpv copied to clipboard
vo_gpu_next: render subtitles at video colorspace
Ref: https://code.videolan.org/videolan/libplacebo/-/merge_requests/630
Needs to not apply to SRT subs, which definitely shouldn't be rendered out as HDR. For this, SOME amount of internal metadata plumbing is necessary so mpv can later decide whether a subtitle came from ASS, PGS or SRT.
I know, that's why it's still a draft. Just dropping a PR as a good-faith and to force myself to finish it sooner than later.
Best I can do is this. If sub is unconverted ASS it will be interpreted as video csp. For the rest it stays sRGB. Also OSC for compatibility is sRGB.
EDIT: Note this still needs https://code.videolan.org/videolan/libplacebo/-/merge_requests/630 to work correctly, but it is not a blocker, as the change is improvement either way.
Download the artifacts for this pull request:
Seems reasonable enough.