mirror of
https://github.com/calesthio/OpenMontage.git
synced 2026-08-25 17:42:50 +08:00
fix(video_compose): forward remotion_timeout_ms through high-level render path
The timeout handling only took effect on a direct _remotion_render() call. The high-level execute(operation='render') path goes through _render(), which builds a fresh remotion_inputs dict (edit_decisions, output_path, profile) and dropped remotion_timeout_ms — so callers of the documented operation='render' path never got the timeout passed to the Remotion CLI. Forward it there. Adds a test exercising _render() (not just _remotion_render()) to cover the high-level forwarding path. Refs #217
This commit is contained in:
@@ -1401,6 +1401,11 @@ class VideoCompose(BaseTool):
|
||||
}
|
||||
if profile:
|
||||
remotion_inputs["profile"] = profile
|
||||
# Forward the creator-facing render timeout through the high-level
|
||||
# render path (execute(operation="render") -> _render), otherwise it
|
||||
# would only take effect on a direct _remotion_render() call.
|
||||
if inputs.get("remotion_timeout_ms") is not None:
|
||||
remotion_inputs["remotion_timeout_ms"] = inputs["remotion_timeout_ms"]
|
||||
render_result = self._remotion_render(remotion_inputs)
|
||||
|
||||
# Governance: NEVER silently fall back to FFmpeg when Remotion fails.
|
||||
|
||||
Reference in New Issue
Block a user