Repository navigation
External PGS sidecar files load and render (sup demuxer + bitmap cue decode) - #163
Merged
Merged
Conversation
…contract Positions are normalized against the canvas (or the frame when the canvas is unknown); the compositor treated them as absolute canvas pixels, which would have misplaced every bitmap cue. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NAPCg4tCDdSqkK6tPkNptw
External .sup/PGS sidecars decoded only text rects (silently empty). The loop now routes bitmap rects through the embedded path's imageForSubtitleRect and applies PGS end semantics: an open composition is clamped to the next composition event's PTS instead of the flat 5 s fallback. Test reproduces the field failure (openFailed INVALIDDATA) until FFmpegBuild ships the sup demuxer. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NAPCg4tCDdSqkK6tPkNptw
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.
Two compounding gaps made external PGS (.sup) subtitle files a silent no-show on every path: FFmpegBuild lacked the
supdemuxer (fixed in 2.1.3, now pinned), soavformat_open_inputrejected the file withAVERROR_INVALIDDATA; and the sidecar decode loop extracted only text rects, dropping bitmap rects. The loop now routes bitmap rects through the embedded path'simageForSubtitleRectinto.imagecues with PGS end semantics (an open composition ends at the next composition event's PTS instead of the flat 5 s fallback). Also fixes the frame compositor's bitmap placement (SubtitleImage.positionis normalized against its canvas; the compositor treated it as absolute pixels).SidecarPGSDecodeTestsdecodes a real .sup fixture (local-only, skip-when-absent) and reproduced the exact field failure before the demuxer landed; full suite 794 green, tvOS sim build clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01NAPCg4tCDdSqkK6tPkNptw