fix: ignore PGS clear-screen segments when counting and sampling cues #3
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/pgs-clear-segments"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while checking the Two Towers subtitle track: every sampled frame rendered with no subtitle visible.
A PGS stream emits two packets per displayed subtitle — the display segment carrying the bitmap, and a small clear-screen segment ending it. On Two Towers a 25-minute window held 527 packets: 263 display, 264 clear.
Two consequences:
Filters to packets over 1 KB and lowers the full-vs-forced threshold to match corrected counts. Verified against Two Towers, which then rendered
[SPEAKING IN ROHIRRIM]and[GROANS]and confirmed SDH.