lasagnastack.stages.reel_pipeline.render¶
lasagnastack.stages.reel_pipeline.render
¶
RenderStage
¶
RenderStage(adapter: VideoEditorAdapter | None = None)
Bases: Stage
Stage 5: translate the approved cut list into a video editor draft.
Initialise with an optional video editor adapter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
adapter
|
VideoEditorAdapter | None
|
Adapter used to build and export the draft. Defaults to
|
None
|
Source code in src/lasagnastack/stages/reel_pipeline/render.py
completion_message
¶
completion_message(state: PipelineState) -> str
Return the post-stage confirmation message.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state
|
PipelineState
|
Current pipeline state. |
required |
Returns:
| Type | Description |
|---|---|
str
|
Human-readable completion string. |
Source code in src/lasagnastack/stages/reel_pipeline/render.py
run
¶
run(state: PipelineState) -> PipelineState
Run the render stage.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state
|
PipelineState
|
Current pipeline state. |
required |
Returns:
| Type | Description |
|---|---|
PipelineState
|
Updated pipeline state with |
Source code in src/lasagnastack/stages/reel_pipeline/render.py
run
¶
run(
cut_list: CutList,
output_dir: Path,
input_dir: Path,
adapter: VideoEditorAdapter | None = None,
reel_style_sheet: ReelStyleSheet | None = None,
) -> Path
Translate the final cut list into a video editor draft folder.
Uses original source clips (not normalised) for full resolution. Delegates draft construction and editor-app export to adapter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cut_list
|
CutList
|
Approved cut list from Stage 4. |
required |
output_dir
|
Path
|
Pipeline root; draft created at output_dir/draft/. |
required |
input_dir
|
Path
|
Folder containing the original source clips. |
required |
adapter
|
VideoEditorAdapter | None
|
Video editor adapter to use. Defaults to PyCapCutAdapter. |
None
|
reel_style_sheet
|
ReelStyleSheet | None
|
Optional visual styling from Stage 5. |
None
|
Returns:
| Type | Description |
|---|---|
Path
|
Path to the draft folder inside the editor app (or output_dir/draft/ |
Path
|
if the editor was not found). |