videosphere
    Preparing search index...
    • Trims a downloaded section with ffmpeg smart cut: frame-accurate on both trim handles, without re-encoding anything beyond the small head span that has to cross into the next keyframe. See planSmartCut for why the tail never needs an encode.

      Parameters

      • input: {
            inputPath: string;
            outputPath: string;
            workDir: string;
            relativeStart: number;
            relativeEnd: number;
            durationSeconds: number;
            isCancelled?: () => Promise<boolean>;
        }

        Local source file and trim range relative to that file.

        • inputPath: string
        • outputPath: string
        • workDir: string
        • relativeStart: number
        • relativeEnd: number
        • durationSeconds: number
        • OptionalisCancelled?: () => Promise<boolean>

          Optional callback polled while ffmpeg runs; kills child processes when true.

      Returns Promise<string>

      Output path for the trimmed media file.