mediaforge - v0.1.0
    Preparing search index...

    Interface StreamOutputOptions

    Stream ffmpeg output directly as a Node.js Readable stream. Useful for HTTP responses, S3 uploads, etc.

    // Stream transcoded video to an HTTP response
    const stream = streamOutput({
    input: 'input.mp4',
    outputArgs: ['-c:v', 'libx264', '-c:a', 'aac', '-movflags', 'frag_keyframe+empty_moov'],
    outputFormat: 'mp4',
    });
    stream.pipe(res);
    interface StreamOutputOptions {
        input: string;
        outputArgs?: string[];
        outputFormat: string;
        seekInput?: string | number;
        binary?: string;
    }
    Index

    Properties

    input: string

    Input file path

    outputArgs?: string[]

    Extra ffmpeg args (codecs, filters, etc.)

    outputFormat: string

    Output format (required for pipe output)

    seekInput?: string | number

    Input seek position

    binary?: string

    ffmpeg binary override