@henteko/kumiki
Version:
A video generation tool that creates videos from JSON configurations
53 lines • 1.25 kB
TypeScript
export interface RenderOptions {
outputPath: string;
tempDir?: string;
concurrency?: number;
keepTemp?: boolean;
onProgress?: (progress: number) => void;
}
export declare class Renderer {
private projectPath;
private project;
private options;
private tempDir;
private ffmpeg;
private narrationResults;
constructor(projectPath: string, options: RenderOptions);
/**
* Render the complete video
*/
render(): Promise<void>;
/**
* Render all scenes to individual videos
*/
private renderScenes;
/**
* Concatenate all scene videos into final output
*/
private concatenateScenes;
/**
* Add background music to the video
*/
private addBackgroundMusic;
/**
* Move temp file to final output
*/
private moveToFinalOutput;
/**
* Ensure temp directory exists
*/
private ensureTempDirectory;
/**
* Process narrations for all scenes
*/
private processNarrations;
/**
* Resolve generate:// URL to actual music path
*/
private resolveGenerateMusicUrl;
/**
* Cleanup temp directory
*/
private cleanupTempDirectory;
}
//# sourceMappingURL=renderer.d.ts.map