pipeline¶
Main pipeline orchestration for Direktor.
direktor.core.pipeline
¶
Main pipeline orchestration for Direktor.
This module coordinates all stages of the video generation pipeline.
main(input_file, stage=6, keywords=None)
¶
Main pipeline function that orchestrates all stages of video generation.
The pipeline has 6 stages: 1. Generate podcast script from input text 2. Generate audio from the script 3. Generate transcript from the audio 4. Generate image prompts from the transcript 5. Generate images from the prompts 6. Create the final video
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_file
|
Path to the input text file |
required | |
stage
|
Stage to run up to (1-6). Previous outputs must exist for stages > 1. |
6
|
|
keywords
|
Optional list of (keyword, start_time, end_time) tuples for video overlays |
None
|
Returns:
| Type | Description |
|---|---|
|
None |
Source code in direktor/core/pipeline.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | |