graph TD
A[Start VideoAssemblerPro] --> B[Input Validation]
B --> C[Process Audio]
B --> D[Process Avatar]
C --> C1[Get MP3 Transcription]
C --> C2[Convert MP3 to WAV]
C1 --> C3[Timing Data]
C2 --> C4[WAV File]
D --> D1[Resize Avatar Image]
D --> D2[Optimize Avatar]
D1 --> D3[Sized Avatar]
D2 --> D4[Optimized Avatar]
C3 --> E[Video Generation]
C4 --> E
D3 --> E
D4 --> E
E --> F[Generate Talking Head]
F --> G[Final MP4 Output]
subgraph Audio Preparation
C1
C2
C3
C4
end
subgraph Avatar Preparation
D1
D2
D3
D4
end
subgraph Final Assembly
E
F
G
end