Bitmap subtitle zoom and position - #76
Open
cinema-ONE wants to merge 1 commit into
Open
Conversation
Portisch
force-pushed
the
aml-5.15.196-22.0
branch
from
August 28, 2026 17:58
5591768 to
9f5601b
Compare
Carry of the pending upstream PR xbmc/xbmc#29060 so the feature is usable on frame-packed 3D hardware before Kodi v23 opens. Adds subtitles.bitmapzoom and subtitles.bitmapposition, letting PGS and VobSub be resized and moved onto the existing position and vertical margin settings. String ids 39213-39218; 39211/39212 are taken by CoreELEC's own subtitle language setting.
cinema-ONE
force-pushed
the
bitmap-subtitle-zoom-position
branch
from
August 28, 2026 18:04
9abaed1 to
b258a0a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rebased onto the current tip now that the NAL length size fix has landed; this is a single commit against it.
Description
Picture-based subtitles (PGS, VobSub) are drawn at the size and position the disc authored, and Kodi's "Position on screen" and "Vertical margin" settings do not apply to them. On a frame-packed 3D projector the authored size is often too large to read comfortably, and there is no way to move them off the bottom edge.
This adds two settings:
subtitles.bitmapzoom— resize picture-based subtitles, 100% being the authored sizesubtitles.bitmapposition— apply the existing position and vertical margin settings to themOnly bitmap subtitles are affected. DVB subtitles are deliberately excluded: the same codec path also delivers broadcast logos and graphics, which belong where the broadcaster put them. Menu graphics (Blu-ray IG/PG, DVD button highlights) share the overlay classes and are never moved.
Provenance
This is a carry of xbmc/xbmc#29060, which is open upstream, reviewed by reardonia and milestoned
Q* 23.0 Alpha 1— so it is queued for Kodi v23 rather than v22. I am offering it here early because the feature is most useful on exactly the frame-packed 3D hardware CoreELEC serves, and v23 is months out. If upstream merges it, this commit disappears in your next rebase.String ids are 39213-39218: 39211/39212 are taken by CoreELEC's own "Don't show subtitles matching the audio language" setting.
Testing
Homatics Box R 4K Plus, frame-packed 3D over HDMI to a JVC projector. Zoom at 60% and position enabled, verified on screen with PGS subtitles. Defaults (100%, position off) leave rendering byte-identical to before — checked against an unpatched build on a real PGS clip.
Written by my AI co-author (Claude Code); posted from my account.