mediaforge - v0.1.0
    Preparing search index...

    Interface FrameToBufferOptions

    Extract a single frame at a given timestamp and return it as a Buffer.

    const buf = await frameToBuffer({ input: 'video.mp4', timestamp: 30, format: 'png' });
    fs.writeFileSync('frame.png', buf);
    interface FrameToBufferOptions {
        input: string;
        timestamp?: string | number;
        format?: "png" | "mjpeg" | "bmp";
        size?: string;
        binary?: string;
    }
    Index

    Properties

    input: string
    timestamp?: string | number
    format?: "png" | "mjpeg" | "bmp"
    size?: string
    binary?: string