Skip to content

revert(engine): late-starting videos play to their last frame - #6746

Merged
miguel-heygen merged 1 commit into
mainfrom
revert/late-start-video-end
Oct 29, 2026
Merged

miguel-heygen merged 1 commit into
mainfrom
revert/late-start-video-end

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

What

Reverts #6736 (late-starting videos play to their last frame).

Why

On Windows the end-of-clip read #6736 added fails intermittently. When it fails, the playable end falls back to the clip's start plus ffprobe's duration, which runs past the last frame for fragmented MP4 and Matroska. A render then expects frames that do not exist. The required Tests on windows-latest: engine-cli check caught it: it is red on main since the merge (fragmented MP4 3.54 s against 3.375 s, late WebM 4.04 s against 3.52 s), after passing once at the PR head on the same FFmpeg build.

Related work

Reverts #6736. The change comes back with the read's failure surfaced and a fallback that cannot run past the clip's end, once the Windows cause is known.

How

git revert of the squash commit; no other changes.

Test plan

fails without the fix: Tests on windows-latest: engine-cli on main (streamStartOffset.test.ts, fragmented MP4 and late WebM rows). With this revert those rows are gone and the check should be green on this PR.

Reverts #6736. Its end-of-clip read fails intermittently on Windows, and the fallback
then expects frames past the clip's end.
@github-actions

Copy link
Copy Markdown
Contributor

Edit accuracy: accurate 271 (base branch 271), smooth 139 of those

The gate passes.
Smoothness is reported in the artifact, not gated. A case fails only if it fails 2 of 3 runs.

Quarantined, measured but not gated (0)

@heygengenesis heygengenesis Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE · 0 blocker · 0 important · 0 nits · head c1a3aba1

This is an exact revert. The head's tree matches #6736's parent (the compare shows no file differences), and main has not moved past 22b53c01. Main's red check is the one the body names: Tests on windows-latest: engine-cli on 22b53c01 fails streamStartOffset.test.ts for fragment-cut.mp4 (3.541667 vs 3.375) and late.webm (4.04 vs 3.52). On this head every Actions run is green, including all Tests on windows-latest shards.

@miguel-heygen
miguel-heygen added this pull request to the merge queue Oct 29, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 29, 2026
@miguel-heygen
miguel-heygen added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit a3ff1c4 Oct 29, 2026
78 checks passed
@miguel-heygen
miguel-heygen deleted the revert/late-start-video-end branch October 29, 2026 14:38
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