mediaforge - v2.2.0
    Preparing search index...

    Interface SpectrumOptions

    Generate a real-time audio spectrum visualizer video. Useful for podcasts, music visualizations.

    await generateSpectrum({
    input: 'podcast.mp3',
    output: 'spectrum.mp4',
    width: 1280, height: 720,
    });
    interface SpectrumOptions {
        input: string;
        output: string;
        width?: number;
        height?: number;
        color?:
            | "channel"
            | "intensity"
            | "rainbow"
            | "moreland"
            | "nebulae"
            | "fire"
            | "fiery"
            | "fruit"
            | "cool"
            | "magma"
            | "green"
            | "viridis"
            | "plasma"
            | "cividis"
            | "terrain";
        fps?: number;
        binary?: string;
    }
    Index

    Properties

    input: string
    output: string
    width?: number
    height?: number
    color?:
        | "channel"
        | "intensity"
        | "rainbow"
        | "moreland"
        | "nebulae"
        | "fire"
        | "fiery"
        | "fruit"
        | "cool"
        | "magma"
        | "green"
        | "viridis"
        | "plasma"
        | "cividis"
        | "terrain"

    Colour scheme. Default: 'fire'.

    This is NOT a CSS colour — showspectrum's color option is an integer enum of named palettes. Passing e.g. 'red' (or '#ff0000') makes ffmpeg fail with Undefined constant or missing '(' in 'red'. Note that 'green' happens to be a valid palette name, which makes the failure mode easy to miss.

    fps?: number
    binary?: string