You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::MediaConvert::Types::VideoSelector

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-mediaconvert/lib/aws-sdk-mediaconvert/types.rb

Overview

Note:

When making an API call, you may pass VideoSelector data as a hash:

{
  color_space: "FOLLOW", # accepts FOLLOW, REC_601, REC_709, HDR10, HLG_2020
  color_space_usage: "FORCE", # accepts FORCE, FALLBACK
  hdr_10_metadata: {
    blue_primary_x: 1,
    blue_primary_y: 1,
    green_primary_x: 1,
    green_primary_y: 1,
    max_content_light_level: 1, # required
    max_frame_average_light_level: 1, # required
    max_luminance: 1,
    min_luminance: 1,
    red_primary_x: 1,
    red_primary_y: 1,
    white_point_x: 1,
    white_point_y: 1,
  },
  pid: 1,
  program_number: 1,
}

Selector for video.

Instance Attribute Summary collapse

Instance Attribute Details

#color_spaceString

If your input video has accurate color space metadata, or if you don't know about color space, leave this set to the default value FOLLOW. The service will automatically detect your input color space. If your input video has metadata indicating the wrong color space, or if your input video is missing color space metadata that should be there, specify the accurate color space here. If you choose HDR10, you can also correct inaccurate color space coefficients, using the HDR master display information controls. You must also set Color space usage (ColorSpaceUsage) to FORCE for the service to use these values.

Returns:

  • (String)


14516
14517
14518
14519
14520
14521
14522
14523
# File 'gems/aws-sdk-mediaconvert/lib/aws-sdk-mediaconvert/types.rb', line 14516

class VideoSelector < Struct.new(
  :color_space,
  :color_space_usage,
  :hdr_10_metadata,
  :pid,
  :program_number)
  include Aws::Structure
end

#color_space_usageString

There are two sources for color metadata, the input file and the job configuration (in the Color space and HDR master display informaiton settings). The Color space usage setting controls which takes precedence. FORCE: The system will use color metadata supplied by user, if any. If the user does not supply color metadata, the system will use data from the source. FALLBACK: The system will use color metadata from the source. If source has no color metadata, the system will use user-supplied color metadata values if available.

Returns:

  • (String)


14516
14517
14518
14519
14520
14521
14522
14523
# File 'gems/aws-sdk-mediaconvert/lib/aws-sdk-mediaconvert/types.rb', line 14516

class VideoSelector < Struct.new(
  :color_space,
  :color_space_usage,
  :hdr_10_metadata,
  :pid,
  :program_number)
  include Aws::Structure
end

#hdr_10_metadataTypes::Hdr10Metadata

Use the HDR master display (Hdr10Metadata) settings to correct HDR metadata or to provide missing metadata. These values vary depending on the input video and must be provided by a color grader. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that these settings are not color correction. Note that if you are creating HDR outputs inside of an HLS CMAF package, to comply with the Apple specification, you must use the HVC1 for H.265 setting.



14516
14517
14518
14519
14520
14521
14522
14523
# File 'gems/aws-sdk-mediaconvert/lib/aws-sdk-mediaconvert/types.rb', line 14516

class VideoSelector < Struct.new(
  :color_space,
  :color_space_usage,
  :hdr_10_metadata,
  :pid,
  :program_number)
  include Aws::Structure
end

#pidInteger

Use PID (Pid) to select specific video data from an input file. Specify this value as an integer; the system automatically converts it to the hexidecimal value. For example, 257 selects PID 0x101. A PID, or packet identifier, is an identifier for a set of data in an MPEG-2 transport stream container.

Returns:

  • (Integer)


14516
14517
14518
14519
14520
14521
14522
14523
# File 'gems/aws-sdk-mediaconvert/lib/aws-sdk-mediaconvert/types.rb', line 14516

class VideoSelector < Struct.new(
  :color_space,
  :color_space_usage,
  :hdr_10_metadata,
  :pid,
  :program_number)
  include Aws::Structure
end

#program_numberInteger

Selects a specific program from within a multi-program transport stream. Note that Quad 4K is not currently supported.

Returns:

  • (Integer)


14516
14517
14518
14519
14520
14521
14522
14523
# File 'gems/aws-sdk-mediaconvert/lib/aws-sdk-mediaconvert/types.rb', line 14516

class VideoSelector < Struct.new(
  :color_space,
  :color_space_usage,
  :hdr_10_metadata,
  :pid,
  :program_number)
  include Aws::Structure
end