lasagnastack.video_editors.base¶
lasagnastack.video_editors.base
¶
VideoEditorAdapter
¶
Bases: ABC
Interface for translating a cut list into a video editor draft project.
build_draft
abstractmethod
¶
build_draft(
cut_list: CutList,
draft_parent: Path,
folder_name: str,
display_name: str,
input_dir: Path,
reel_style_sheet: ReelStyleSheet | None = None,
) -> Path
Translate cut_list into a draft project at draft_parent/folder_name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cut_list
|
CutList
|
Approved cut list from Stage 4. |
required |
draft_parent
|
Path
|
Directory that will contain the new draft subfolder. |
required |
folder_name
|
str
|
Name for the new draft subfolder. |
required |
display_name
|
str
|
Human-readable project name written into the draft. |
required |
input_dir
|
Path
|
Folder containing original source clips. |
required |
reel_style_sheet
|
ReelStyleSheet | None
|
Optional visual styling from Stage 5. |
None
|
Returns:
| Type | Description |
|---|---|
Path
|
Path to the created draft folder. |
Source code in src/lasagnastack/video_editors/base.py
export
abstractmethod
¶
export(
draft_path: Path, input_dir: Path, cut_list: CutList
) -> Path | None
Export the draft into the editor's native project directory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
draft_path
|
Path
|
Path to the locally-built draft folder. |
required |
input_dir
|
Path
|
Folder containing original source clips. |
required |
cut_list
|
CutList
|
Cut list (used to enumerate unique source files). |
required |
Returns:
| Type | Description |
|---|---|
Path | None
|
Path to the draft inside the editor app, or None if not installed. |