Repository navigation
Conversation
Segmented capture always failed with --format mov: every segment was named .mp4, so FFmpeg selected an MP4 container for ProRes and rejected it. Segments now take their extension from the already resolved video-only output path, so capture, retry cleanup, resumed segments, and ordered concatenation use the requested container. The segment plan hash also includes the resolved container extension. A container change invalidates previously encoded segments even when codec and other options stay the same. Fixes heygen-com#6481.
This branch has not been deployed
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.
What
Segmented capture always failed with
--format mov: every segment was named.mp4, so FFmpeg selected an MP4 container for ProRes and rejected it (Could not find tag for codec prores ... codec not currently supported in container). Segments now take their extension from the already resolved video-only output path, so capture, retry cleanup, resumed segments, and ordered concatenation use the requested container.The segment plan hash also includes the resolved container extension. A container change invalidates previously encoded segments even when codec and other options stay the same.
Fixes #6481.
How
segmentOutputPathtakes the container extension instead of hardcoding.mp4.runCaptureSegmentedStagederives it fromextname(videoOnlyPath)and threads it through the capture context, run, and concat list.SegmentPlanHashInputgainscontainerExtension;validateCompletedSegmentschecks segment paths in the resolved container.Test plan
mov/webmwitnesses cover capture, retry, manifest and concat in the resolved container, plus a resume witness; the plan hash changes with the container and resume rejects segments when it does.bun test(deliveryEncoder, segmentPlan, captureSegmentedStage): 62 pass / 0 fail.vitest run(segmentManifest): 28 pass / 0 fail..mp4and pass with the fix.bun run --filter @hyperframes/producer typecheckpasses; oxlint and oxfmt clean.--format movrender run; the stage tests drive the same segment paths.