Skip to content

diag(tools): a contiguity check for a run of produced segments (#561) - #571

Merged
superuser404notfound merged 1 commit into
mainfrom
tools/segment-spans
Sep 20, 2026
Merged

superuser404notfound merged 1 commit into
mainfrom
tools/segment-spans

Conversation

@superuser404notfound

Copy link
Copy Markdown
Owner

segverify answers whether each segment stands alone. Nothing answered whether the run of them is contiguous, which is the question AE#561 raised: a reported session where seg7's video ran to 34.034 s while seg8 opened at 33.492 s, half a second of overlap.

Scripts/segment-spans.py reads every moof and prints [tfdt, tfdt + sum(sample_duration)] per track, flagging a gap or an overlap against the previous segment of the same track id. It pairs with segverify --dump, which already writes the files it needs.

swift run aetherctl segverify --from 0 --count 12 --dump /tmp/segs <url>
python3 Scripts/segment-spans.py /tmp/segs/segverify_seg{0..11}.mp4

Measured against Patterns_Of_Nature_HDR10-P8.1_UHD_24_H265-10Mbps_DD+JOC-768Kbps.mp4: contiguous on every line, both tracks, twelve segments.

No engine code touched.

🤖 Generated with Claude Code

https://claude.ai/code/session_015PM3xUJB6ZQyqnmGK1fp6F

segverify answers whether each segment stands alone. Nothing answered whether
the run of them is contiguous, which is the question AE#561 raised: a reported
session where seg7's video ran to 34.034 s while seg8 opened at 33.492 s.

Scripts/segment-spans.py reads every moof and prints [tfdt, tfdt + sum(
sample_duration)] per track, flagging a gap or an overlap against the previous
segment of the same track id. Pairs with `segverify --dump`, which already
writes the files it needs.

Measured against a healthy 4K HEVC fixture: contiguous on every line, both
tracks, twelve segments.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_015PM3xUJB6ZQyqnmGK1fp6F
@superuser404notfound
superuser404notfound merged commit bb3c102 into main Sep 20, 2026
7 checks passed
@superuser404notfound
superuser404notfound deleted the tools/segment-spans branch September 20, 2026 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant