Rendering
render_video
render_video(
project: VideoProject,
output_dir: str | Path,
*,
storage_options: dict[str, Any] | None = None,
overwrite: bool = False
) -> Path
Renders a video based on a project.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
project |
VideoProject
|
The project to render. |
required |
output_dir |
str | Path
|
The output directory. |
required |
storage_options |
dict[str, Any] | None
|
Optional storage options to pass to the clip. |
None
|
overwrite |
bool
|
Whether to overwrite the output file if it already exists. |
False
|
Returns:
Type | Description |
---|---|
Path
|
The path to the rendered video. |