fix: use --props=<path> equals form for Remotion render
On Windows, passing --props and the JSON path as two separate CLI arguments causes Remotion to mis-parse the value due to platform quote escaping, failing with "neither valid JSON nor a file path to a valid JSON file". Switch to the --props=<path> equals form, which Remotion recommends for file paths and which works consistently across platforms. Fixes #172
This commit is contained in:
@@ -1352,7 +1352,12 @@ class VideoCompose(BaseTool):
|
||||
str(composer_dir / "src" / "index.tsx"),
|
||||
composition_id,
|
||||
str(output_path),
|
||||
"--props", str(props_path),
|
||||
# Use the `--props=<path>` equals form rather than two separate
|
||||
# args. On Windows, passing `--props` and the path separately makes
|
||||
# Remotion mis-parse the value (quote escaping differs), failing
|
||||
# with "neither valid JSON nor a file path". The equals form is the
|
||||
# API Remotion recommends for file paths and is cross-platform safe.
|
||||
f"--props={props_path}",
|
||||
]
|
||||
|
||||
# Apply media profile dimensions
|
||||
|
||||
Reference in New Issue
Block a user