videosphere
    Preparing search index...
    • Builds ffmpeg arguments for the re-encoded head segment of an encode-then-copy plan. Output is video-only MP4 with PTS rebased to zero. Audio is handled separately.

      Parameters

      • inputPath: string

        Source media path.

      • outputPath: string

        Head segment .mp4 output path.

      • encodeStart: number

        Trim start in seconds within the source file.

      • encodeEnd: number

        End of the head segment — the next keyframe at/after encodeStart (exclusive).

      • frameRateRational: string

        Target fps as an ffprobe-style rational.

      Returns string[]

      ffmpeg argument vector.