mediaforge - v0.1.0
    Preparing search index...

    Interface DrawtextOptions

    interface DrawtextOptions {
        text?: string;
        textfile?: string;
        fontfile?: string;
        font?: string;
        fontsize?: string | number;
        fontcolor?: string;
        fontcolor_expr?: string;
        boxcolor?: string;
        box?: boolean;
        boxborderw?: number;
        x?: string | number;
        y?: string | number;
        shadowcolor?: string;
        shadowx?: number;
        shadowy?: number;
        borderw?: number;
        bordercolor?: string;
        line_spacing?: number;
        enable?: string;
        expansion?: "none" | "normal" | "strftime";
        tc24hmax?: boolean;
        text_align?: "left" | "center" | "right";
    }
    Index

    Properties

    text?: string

    Text string or file expression

    textfile?: string

    Path to a text file

    fontfile?: string

    Font file path

    font?: string

    Font family name

    fontsize?: string | number

    Font size. Default: 16

    fontcolor?: string

    Font color. Default: black

    fontcolor_expr?: string

    Font color with alpha, e.g. 'white@0.5'

    boxcolor?: string

    Background box color, e.g. 'black@0.5'

    box?: boolean

    Draw background box: 0 or 1

    boxborderw?: number

    Box border width

    x?: string | number

    X position. Supports expressions: 'w-tw-10'

    y?: string | number

    Y position

    shadowcolor?: string

    Text shadow color

    shadowx?: number

    Shadow X offset

    shadowy?: number

    Shadow Y offset

    borderw?: number

    Text border width

    bordercolor?: string

    Border color

    line_spacing?: number

    Line spacing

    enable?: string

    Start drawing text at this time (seconds)

    expansion?: "none" | "normal" | "strftime"

    Text expansion mode: none, normal, strftime

    tc24hmax?: boolean

    Time code base for timecode mode

    text_align?: "left" | "center" | "right"

    Text alignment: left, center, right