class Google::Apis::TranscoderV1::Vp9CodecSettings

VP9 codec settings.

Attributes

bitrate_bps[RW]

Required. The video bitrate in bits per second. The minimum value is 1,000. The maximum value is 480,000,000. Corresponds to the JSON property ‘bitrateBps` @return [Fixnum]

crf_level[RW]

Target CRF level. Must be between 10 and 36, where 10 is the highest quality and 36 is the most efficient compression. The default is 21. Note: This field is not supported. Corresponds to the JSON property ‘crfLevel` @return [Fixnum]

frame_rate[RW]

Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120. Will default to the input frame rate if larger than the input frame rate. The API will generate an output FPS that is divisible by the input FPS, and smaller or equal to the target FPS. See [Calculating frame rate] (cloud.google.com/transcoder/docs/concepts/frame-rate) for more information. Corresponds to the JSON property ‘frameRate` @return [Float]

gop_duration[RW]

Select the GOP size based on the specified duration. The default is ‘3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](# SegmentSettings), and [`segmentDuration`](SegmentSettings) must be divisible by `gopDuration`. Corresponds to the JSON property `gopDuration` @return [String]

gop_frame_count[RW]

Select the GOP size based on the specified frame count. Must be greater than zero. Corresponds to the JSON property ‘gopFrameCount` @return [Fixnum]

height_pixels[RW]

The height of the video in pixels. Must be an even integer. When not specified, the height is adjusted to match the specified width and input aspect ratio. If both are omitted, the input height is used. Corresponds to the JSON property ‘heightPixels` @return [Fixnum]

pixel_format[RW]

Pixel format to use. The default is ‘yuv420p`. Supported pixel formats: - ` yuv420p` pixel format - `yuv422p` pixel format - `yuv444p` pixel format - ` yuv420p10` 10-bit HDR pixel format - `yuv422p10` 10-bit HDR pixel format - ` yuv444p10` 10-bit HDR pixel format - `yuv420p12` 12-bit HDR pixel format - ` yuv422p12` 12-bit HDR pixel format - `yuv444p12` 12-bit HDR pixel format Corresponds to the JSON property `pixelFormat` @return [String]

profile[RW]

Enforces the specified codec profile. The following profiles are supported: * ‘ profile0` (default) * `profile1` * `profile2` * `profile3` The available options are [WebM-compatible](www.webmproject.org/vp9/profiles/). Note that certain values for this field may cause the transcoder to override other fields you set in the `Vp9CodecSettings` message. Corresponds to the JSON property `profile` @return [String]

rate_control_mode[RW]

Specify the ‘rate_control_mode`. The default is `vbr`. Supported rate control modes: - `vbr` - variable bitrate Corresponds to the JSON property `rateControlMode` @return [String]

width_pixels[RW]

The width of the video in pixels. Must be an even integer. When not specified, the width is adjusted to match the specified height and input aspect ratio. If both are omitted, the input width is used. Corresponds to the JSON property ‘widthPixels` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/transcoder_v1/classes.rb, line 1814
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/transcoder_v1/classes.rb, line 1819
def update!(**args)
  @bitrate_bps = args[:bitrate_bps] if args.key?(:bitrate_bps)
  @crf_level = args[:crf_level] if args.key?(:crf_level)
  @frame_rate = args[:frame_rate] if args.key?(:frame_rate)
  @gop_duration = args[:gop_duration] if args.key?(:gop_duration)
  @gop_frame_count = args[:gop_frame_count] if args.key?(:gop_frame_count)
  @height_pixels = args[:height_pixels] if args.key?(:height_pixels)
  @pixel_format = args[:pixel_format] if args.key?(:pixel_format)
  @profile = args[:profile] if args.key?(:profile)
  @rate_control_mode = args[:rate_control_mode] if args.key?(:rate_control_mode)
  @width_pixels = args[:width_pixels] if args.key?(:width_pixels)
end