Timeline Studio API Documentation - v0.26.0
    Preparing search index...
    interface UseFrameExtractionResult {
        clearCache: () => Promise<void>;
        error: Error;
        extractRecognitionFrames: (
            videoPath: string,
            purpose: ExtractionPurpose,
        ) => Promise<void>;
        extractSubtitleFrames: (
            videoPath: string,
            subtitles: Subtitle[],
        ) => Promise<void>;
        extractTimelineFrames: (
            videoPath: string,
            duration: number,
        ) => Promise<void>;
        isLoading: boolean;
        progress: number;
        recognitionFrames: RecognitionFrame[];
        reset: () => void;
        subtitleFrames: SubtitleFrame[];
        timelineFrames: TimelineFrame[];
    }
    Index

    Properties

    clearCache: () => Promise<void>

    Очистить кэш

    error: Error

    Ошибка загрузки

    extractRecognitionFrames: (
        videoPath: string,
        purpose: ExtractionPurpose,
    ) => Promise<void>

    Извлечь кадры для распознавания

    extractSubtitleFrames: (
        videoPath: string,
        subtitles: Subtitle[],
    ) => Promise<void>

    Извлечь кадры для субтитров

    extractTimelineFrames: (videoPath: string, duration: number) => Promise<void>

    Извлечь кадры для timeline

    isLoading: boolean

    Загружаются ли кадры

    progress: number

    Прогресс загрузки (0-100)

    recognitionFrames: RecognitionFrame[]

    Кадры для распознавания

    reset: () => void

    Очистить состояние

    subtitleFrames: SubtitleFrame[]

    Кадры субтитров

    timelineFrames: TimelineFrame[]

    Кадры для timeline