omni-compress - v2.3.1
    Preparing search index...

    Function compressVideo

    • Compresses a video file to the specified format.

      Automatically selects the fastest available engine:

      • Fast path: WebCodecs (H.264/AV1 — browser hardware-accelerated)
      • Heavy path: FFmpeg Wasm (fallback)
      • Node: native ffmpeg binary via child_process

      Parameters

      Returns Promise<CompressResult>

      const { blob, ratio } = await compressVideo(file, { format: 'mp4', bitrate: '1M' });