Skip to content

FFmpeg VP9

Reference

Type definitions

type FfmpegVp9EncoderOptions = {
type: "ffmpeg_vp9";
bitrate?:
| number
| {
averageBitrate: number;
maxBitrate: number;
};
keyframeIntervalMs?: number;
pixelFormat?: "yuv420p" | "yuv422p" | "yuv444p";
ffmpegOptions?: Record<string, string>;
};

Properties

bitrate

Desired bitrate of the output stream, in bits per second. If only a number is specified then it defines the averageBitrate. The maxBitrate is then set to 1.25x this value.

  • Type: number | { averageBitrate: number; maxBitrate: number; }
  • Default value: Constant quality mode with crf value based on resolution. Visit FFmpeg docs to learn more.

Properties

averageBitrate

Average bitrate measured in bits per second. Encoder will try to keep the bitrate around the provided average, but may temporarily increase it to the provided max bitrate.

  • Type: number

maxBitrate

Max bitrate measured in bits per second.

  • Type: number

keyframeIntervalMs

Maximal interval between 2 consecutive keyframes, in milliseconds.

  • Type: number
  • Default value: 5000

pixelFormat

Encoder pixel format.

  • Type: "yuv420p" | "yuv422p" | "yuv444p";
  • Default value: yuv420p

ffmpegOptions

Raw FFmpeg encoder options. Visit FFmpeg docs to learn more.

  • Type: Record<string, string>