Keep the PGS source resolution through the sup2vob conversion

VobSub conversions of PGS material were downscaled to the 720x480/576
DVD frame — a 1080p source came out of the mux at one quarter of its
authored size. The framework's sup2vob façade now always runs the
upstream CLI's `--full` mode: fullFramePassthrough keeps every frame's
object geometry verbatim, and the idx size line (which the VobSub
importer carries into track.width/height and the muxer writes into the
subpic track) is the PGS's own PCS canvas, e.g. 1920x1080. The
frame-rate-derived DVD frame stays as fallback for streams that define
no usable canvas. The conversion output is byte-identical to running
`sup2vob --full` on the same .sup.

The vendored upstream sources stay untouched apart from one comment —
the passthrough is enabled in the adaptation layer, same as the CLI
does with its flag. This applies to both PGS paths, which share the
conversion: .sup drag-import and PGS-from-MKV via
MP42PgsToVobSubConverter.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
Scott GarrettandClaude Code committed 2026-11-28 21:13:57 -05:00
1 parent 57772086a5
commit 837aa1c098
4 files changed
+35 -15

No files matched your search

+5 -4
View File
@@ -148,10 +148,11 @@ MP42_OBJC_DIRECT_MEMBERS
track.converter = pgsConverter;
format = track.conversionSettings.format;
// The converted subtitles live in the DVD frame (720x480/576),
// not the PGS source video's frame — and an MKV-sourced track
// carries no size at all — so steer the subpic branch's
// trackWidth/trackHeight preference with it.
// The converted subtitles keep the PGS's own canvas size
// (sup2vob runs in full-frame passthrough, e.g. 1920x1080)
// — and an MKV-sourced track carries no size at all — so
// steer the subpic branch's trackWidth/trackHeight
// preference with the converter's frame size.
MP42SubtitleTrack *subTrack = (MP42SubtitleTrack *)track;
subTrack.trackWidth = pgsConverter.frameWidth;
subTrack.trackHeight = pgsConverter.frameHeight;