Subtitle blending appears incorrect in HDR video

When viewing HDR videos with SSA/ASS subtitles, it looks like the SDR subtitles aren’t blended with the HDR video correctly. The following three images show an example of the exact same subtitles on SDR and HDR versions of the same video.

I don’t know what library you use to render subtitles, but libass has some possibly related discussion: add ASS header field "transfer function" (to define HDR vs SDR etc) · Issue #297 · libass/libass · GitHub

AppleTV (HDR)

iPhone (HDR)

iPhone (SDR)

1 Like

Do you have a sample video and subtile you would be able to send in so we can look into this?

Thanks! I’ve uploaded two sample videos with the same subtitles that I used to get the above images, one in SDR and the other in HDR. The subtitles are embedded in the videos, but you can extract them with ffmpeg -i hdr.mkv -map 0:s:0 -c copy hdr.ssa.

Can you try testing this in Infuse 7.4.4? This update had a number of improvements for SSA/ASS subtitles, and it appears to be displaying the subtitles in your HDR sample much better.

1 Like

Yep, subtitles look much better on both the Apple TV and iPhone with Infuse 7.4.5. The colors aren’t always exactly correct (for example in one scene the handwritten subtitle is dark purple rather than dark brown like in the SDR version), but it’s much more readable than before. Thanks for the update!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.