mediaforge - v2.2.0
    Preparing search index...

    Interface SegmentOutputOptions

    interface SegmentOutputOptions {
        input: string;
        outputPattern: string;
        segmentTime?: number;
        forceKeyFrames?: boolean;
        resetTimestamps?: boolean;
        videoCodec?: string;
        audioCodec?: string;
        binary?: string;
    }
    Index

    Properties

    input: string
    outputPattern: string

    Output pattern; must contain %d, e.g. 'seg%03d.ts'

    segmentTime?: number

    Segment length in seconds. Default: 2

    forceKeyFrames?: boolean

    Force a keyframe exactly at each segment boundary.

    The segment muxer can only cut on a keyframe, so without this a 2s file with segmentTime: 1 and a large GOP can come out as a single segment. Default: true.

    resetTimestamps?: boolean

    Reset each segment's timestamps to zero. Default: true

    videoCodec?: string
    audioCodec?: string
    binary?: string