class MkvToolNix::Types::Merge::InputTrackOption

Attributes

aac_sbr[R]
aspect_ratio[R]
cb_sub_sample[R]
chroma_sub_sample[R]
chromaticity_coordinates[R]
color_bits_per_channel[R]
color_matrix_coefficients[R]
color_primaries[R]
color_transfer_characteristics[R]
compression[R]
cues[R]
default_duration_in_secs[R]
dimensions[R]
field_order[R]
fix_bitstream_timing_info[R]
four_cc[R]
is_commentary[R]
is_default[R]
is_forced[R]
is_hearing_impaired[R]
is_original[R]
is_text_description[R]
is_visual_impaired[R]
language[R]
max_content_light[R]
max_frame_light[R]
max_luminance[R]
min_luminance[R]
name[R]
no_dialog_norm_gain[R]
projection_pose_pitch[R]
projection_pose_roll[R]
projection_pose_yaw[R]
projection_private[R]
projection_type[R]
reduce_to_core[R]
stereo_mode[R]
sub_charset[R]
tag_file[R]
timestamp_file[R]
track_id[R]
track_sync[R]
white_color_coordinate[R]

Public Class Methods

new(track_id) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 244
def initialize(track_id)
  raise Errors::MkvToolNixError, 'track_id can\'t be nil' if track_id.nil?

  @track_id = track_id
end

Public Instance Methods

add_to_cmd(cmd) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 250
def add_to_cmd(cmd)
  cmd << '--sync' << @track_sync unless @track_sync.nil?
  cmd << '--cues' << @cues unless @cues.nil?
  cmd << '--default-track' << @is_default unless @is_default.nil?
  cmd << '--forced-track' << @is_forced unless @is_forced.nil?
  cmd << '--hearing-impaired-flag' << @is_hearing_impaired unless @is_hearing_impaired.nil?
  cmd << '--visual-impaired-flag' << @is_visual_impaired unless @is_visual_impaired.nil?
  cmd << '--text-descriptions-flag' << @is_text_description unless @is_text_description.nil?
  cmd << '--original-flag' << @is_original unless @is_original.nil?
  cmd << '--commentary-flag' << @is_commentary unless @is_commentary.nil?
  cmd << '--track-name' << @name unless @name.nil?
  cmd << '--language' << @language unless @language.nil?
  cmd << '--tags' << @tag_file unless @tag_file.nil?
  cmd << '--aac-is-sbr' << @aac_sbr unless @aac_sbr.nil?
  cmd << '--reduce-to-core' unless @reduce_to_core.nil?
  cmd << '--remove-dialog-normalization-gain' unless @no_dialog_norm_gain.nil?
  cmd << '--timestamps' << @timestamp_file unless @timestamp_file.nil?
  cmd << '--default-duration' << @default_duration_in_secs unless @default_duration_in_secs.nil?
  cmd << '--fix-bitstream-timing-information' << @fix_bitstream_timing_info unless @fix_bitstream_timing_info.nil?
  cmd << '--compression' << @compression unless @compression.nil?
  cmd << '--fourcc' << @four_cc unless @four_cc.nil?
  cmd << '--display-dimensions' << @dimensions unless @dimensions.nil?
  cmd << '--aspect-ratio' << @aspect_ratio unless @aspect_ratio.nil?
  cmd << '--cropping' << @cropping unless @cropping.nil?
  cmd << '--colour-matrix-coefficients' << @color_matrix_coefficients unless @color_matrix_coefficients.nil?
  cmd << '--colour-bits-per-channel' << @color_bits_per_channel unless @color_bits_per_channel.nil?
  cmd << '--chroma-subsample' << @chroma_sub_sample unless @chroma_sub_sample.nil?
  cmd << '--cb-subsample' << @cb_sub_sample unless @cb_sub_sample.nil?
  cmd << '--chroma-siting' << @chroma_siting unless @chroma_siting.nil?
  cmd << '--colour-range' << @color_range unless @color_range.nil?
  cmd << '--colour-transfer-characteristics' << @color_transfer_characteristics unless @color_transfer_characteristics.nil?
  cmd << '--colour-primaries' << @color_primaries unless @color_primaries.nil?
  cmd << '--max-content-light' << @max_content_light unless @max_content_light.nil?
  cmd << '--max-frame-light' << @max_frame_light unless @max_frame_light.nil?
  cmd << '--chromaticity-coordinates' << @chromaticity_coordinates unless @chromaticity_coordinates.nil?
  cmd << '--white-colour-coordinates' << @white_color_coordinate unless @white_color_coordinate.nil?
  cmd << '--max-luminance' << @max_luminance unless @max_luminance.nil?
  cmd << '--min-luminance' << @min_luminance unless @min_luminance.nil?
  cmd << '--projection-type' << @projection_type unless @projection_type.nil?
  cmd << '--projection-private' << @projection_private unless @projection_private.nil?
  cmd << '--projection-pose-yaw' << @projection_pose_yaw unless @projection_pose_yaw.nil?
  cmd << '--projection-pose-pitch' << @projection_pose_pitch unless @projection_pose_pitch.nil?
  cmd << '--projection-pose-roll' << @projection_pose_roll unless @projection_pose_roll.nil?
  cmd << '--field-order' << @field_order unless @field_order.nil?
  cmd << '--stereo-mode' << @stereo_mode unless @stereo_mode.nil?
  cmd << '--sub-charset' << @sub_charset unless @sub_charset.nil?
  nil
end
commentary?(enabled: true) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 78
def commentary?(enabled: true)
  @is_commentary = "#{@track_id}:#{enabled}"
  self
end
default?(enabled: true) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 48
def default?(enabled: true)
  @is_default = "#{@track_id}:#{enabled}"
  self
end
fix_bitstream_timing_information(fix: true) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 104
def fix_bitstream_timing_information(fix: true)
  @fix_bitstream_timing_info = "#{@track_id}:#{fix ? 1 : 0}"
  self
end
forced?(enabled: true) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 53
def forced?(enabled: true)
  @is_forced = "#{@track_id}:#{enabled}"
  self
end
handle_as_aac_sbr(enabled: true) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 33
def handle_as_aac_sbr(enabled: true)
  @aac_sbr = "#{@track_id}:#{enabled ? 1 : 0}"
  self
end
hearing_impaired?(enabled: true) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 58
def hearing_impaired?(enabled: true)
  @is_hearing_impaired = "#{@track_id}:#{enabled}"
  self
end
original?(enabled: true) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 73
def original?(enabled: true)
  @is_original = "#{@track_id}:#{enabled}"
  self
end
reduce_audio_to_core() click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 83
def reduce_audio_to_core
  @reduce_to_core = true
  self
end
remove_dialog_normalization_gain() click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 93
def remove_dialog_normalization_gain
  @no_dialog_norm_gain = true
  self

end
text_description?(enabled: true) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 68
def text_description?(enabled: true)
  @is_text_description = "#{@track_id}:#{enabled}"
  self
end
visual_impaired?(enabled: true) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 63
def visual_impaired?(enabled: true)
  @is_visual_impaired = "#{@track_id}:#{enabled}"
  self
end
with_aspect_ratio(ratio) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 124
def with_aspect_ratio(ratio)
  @aspect_ratio = "#{@track_id}:#{ratio}"
  self
end
with_cb_sub_sample(horizontal, vertical) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 149
def with_cb_sub_sample(horizontal, vertical)
  @cb_sub_sample = "#{@track_id}:#{horizontal},#{vertical}"
  self
end
with_chroma_siting(horizontal, vertical) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 154
def with_chroma_siting(horizontal, vertical)
  @chroma_siting = "#{@track_id}:#{horizontal},#{vertical}"
  self
end
with_chroma_sub_sample(horizontal, vertical) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 144
def with_chroma_sub_sample(horizontal, vertical)
  @chroma_sub_sample = "#{@track_id}:#{horizontal},#{vertical}"
  self
end
with_chromaticity_coordinates(red_x, red_y, green_x, green_y, blue_x, blue_y) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 184
def with_chromaticity_coordinates(red_x, red_y, green_x, green_y, blue_x, blue_y)
  @chromaticity_coordinates = "#{@track_id}:#{red_x},#{red_y},#{green_x},#{green_y},#{blue_x},#{blue_y}"
  self
end
with_color_bits_per_channel(bits) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 139
def with_color_bits_per_channel(bits)
  @color_bits_per_channel = "#{@track_id}:#{bits}"
  self
end
with_color_matrix_coefficients(coefficient) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 134
def with_color_matrix_coefficients(coefficient)
  @color_matrix_coefficients = "#{@track_id}:#{coefficient}"
  self
end
with_color_primaries(primaries) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 169
def with_color_primaries(primaries)
  @color_primaries = "#{@track_id}:#{primaries}"
  self
end
with_color_range(range) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 159
def with_color_range(range)
  @color_range = "#{@track_id}:#{range}"
  self
end
with_color_transfer_characteristics(characteristics) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 164
def with_color_transfer_characteristics(characteristics)
  @color_transfer_characteristics = "#{@track_id}:#{characteristics}"
  self
end
with_compression_mode(mode = Compression::NONE) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 109
def with_compression_mode(mode = Compression::NONE)
  @compression = "#{@track_id}:#{mode}"
  self
end
with_cropping(left, top, right, bottom) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 129
def with_cropping(left, top, right, bottom)
  @cropping = "#{@track_id}:#{left},#{top},#{right},#{bottom}"
  self
end
with_cues(mode = CueMode::I_FRAMES) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 43
def with_cues(mode = CueMode::I_FRAMES)
  @cues = "#{@track_id}:#{mode}"
  self
end
with_default_duration_in_secs(secs) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 99
def with_default_duration_in_secs(secs)
  @default_duration_in_secs = "#{@track_id}:#{secs}s"
  self
end
with_dimensions(width, height) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 119
def with_dimensions(width, height)
  @dimensions = "#{@track_id}:#{width}x#{height}"
  self
end
with_field_order(order) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 229
def with_field_order(order)
  @field_order = "#{@track_id}:#{order}"
  self
end
with_four_cc(four_cc) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 114
def with_four_cc(four_cc)
  @four_cc = "#{@track_id}:#{four_cc}"
  self
end
with_language(language) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 23
def with_language(language)
  @language = "#{@track_id}:#{language}"
  self
end
with_max_content_light(light) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 174
def with_max_content_light(light)
  @max_content_light = "#{@track_id}:#{light}"
  self
end
with_max_frame_light(light) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 179
def with_max_frame_light(light)
  @max_frame_light = "#{@track_id}:#{light}"
  self
end
with_max_luminance(luminance) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 194
def with_max_luminance(luminance)
  @max_luminance = "#{@track_id}:#{luminance}"
  self
end
with_min_luminance(luminance) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 199
def with_min_luminance(luminance)
  @min_luminance = "#{@track_id}:#{luminance}"
  self
end
with_name(name) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 18
def with_name(name)
  @name = "#{@track_id}:#{name}"
  self
end
with_projection_pose_pitch(pitch) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 219
def with_projection_pose_pitch(pitch)
  @projection_pose_pitch = "#{@track_id}:#{pitch}"
  self
end
with_projection_pose_roll(roll) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 224
def with_projection_pose_roll(roll)
  @projection_pose_roll = "#{@track_id}:#{roll}"
  self
end
with_projection_pose_yaw(yaw) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 214
def with_projection_pose_yaw(yaw)
  @projection_pose_yaw = "#{@track_id}:#{yaw}"
  self
end
with_projection_private(hex_data) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 209
def with_projection_private(hex_data)
  @projection_private = "#{@track_id}:#{hex_data}"
  self
end
with_projection_type(type) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 204
def with_projection_type(type)
  @projection_type = "#{@track_id}:#{type}"
  self
end
with_stereo_mode(mode) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 234
def with_stereo_mode(mode)
  @stereo_mode = "#{@track_id}:#{mode}"
  self
end
with_sub_charset(charset) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 239
def with_sub_charset(charset)
  @sub_charset = "#{@track_id}:#{charset}"
  self
end
with_tags(file) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 28
def with_tags(file)
  @tag_file = "#{@track_id}:#{file}"
  self
end
with_timestamps(file) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 88
def with_timestamps(file)
  @timestamp_file = "#{@track_id}:#{file}"
  self
end
with_track_sync(d = 0, o_div_p = 1.0) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 38
def with_track_sync(d = 0, o_div_p = 1.0)
  @track_sync = "#{@track_id}:#{d},#{o_div_p}"
  self
end
with_white_color_coordinate(x, y) click to toggle source
# File lib/mkvtoolnix/types/merge/input_track_options.rb, line 189
def with_white_color_coordinate(x, y)
  @white_color_coordinate = "#{@track_id}:#{x},#{y}"
  self
end