Rendering
render_video
render_video(
project: VideoProject,
output_path: str | Path,
*,
storage_options: dict[str, Any] | None = None,
overwrite: bool = False,
**kwargs: Any
) -> Path
Renders a video based on a project.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
VideoProject
|
The project to render. |
required |
|
str | Path
|
The output path. If a directory is provided, the output file will be saved in the directory with the project title as the filename. Otherwise, be sure that the file extension matches the codec used. By default, the output file will be an MP4 file (H.264 codec). The available codecs are: - libx264: .mp4 - mpeg4: .mp4 - rawvideo: .avi - png: .avi - libvorbis: .ogv - libvpx: .webm |
required |
|
dict[str, Any] | None
|
Optional storage options to pass to the clip. |
None
|
|
bool
|
Whether to overwrite the output file if it already exists. |
False
|
|
Any
|
Additional keyword arguments to pass to Moviepy clip video writer. |
{}
|
Returns:
Type | Description |
---|---|
Path
|
The path to the rendered video. |