Add server: Express web UI + API for remote audio description generation with job queue, basic auth, resumable processing, subtitles, and muxing

This commit is contained in:
2026-05-13 16:23:43 +02:00
parent ce22dadd80
commit 7d1a0029bc
22 changed files with 1904 additions and 22 deletions

View File

@@ -81,10 +81,28 @@ export interface BatchContext {
lastFramePaths?: string[];
}
// Progress callback for real-time tracking
export interface ProgressInfo {
type: 'frame' | 'batch';
index: number;
total: number;
segment: AudioSegment;
}
// Extended processing options for resumability
export interface ProcessingOptions {
startIndex?: number;
existingSegments?: AudioSegment[];
lastContext?: BatchContext;
currentTimePosition?: number;
onProgress?: (info: ProgressInfo) => void;
}
// Result interfaces
export interface ProcessingResult {
videoFile: string;
audioDescriptionFile: string;
segments: AudioSegment[];
}
export interface CostBreakdown {