class MkvToolNix::Types::Merge::OutputControl

Attributes

cluster_length_blocks[R]
default_language[R]
disable_lacing[R]
disable_language_ietf[R]
disable_track_statistics_tags[R]
enable_duration[R]
generate_meta_seek[R]
no_cues[R]
no_date[R]
timestamp_scale[R]
title[R]
track_order[R]

Public Instance Methods

add_to_cmd(cmd) click to toggle source
# File lib/mkvtoolnix/types/merge/output_control.rb, line 88
def add_to_cmd(cmd)
  cmd << '--title' << @title unless @title.nil?
  cmd << '--default-language' << @default_language unless @default_language.nil?
  cmd << '--track-order' << @track_order unless @track_order.nil?
  cmd << '--cluster-length' << @cluster_length_blocks unless @cluster_length_blocks.nil?
  cmd << '--clusters-in-meta-seek' if @generate_meta_seek
  cmd << '--timestamp-scale' << @timestamp_scale unless @timestamp_scale.nil?
  cmd << '--enable-durations' if @enable_duration
  cmd << '--no-cues' if @no_cues
  cmd << '--no-date' if @no_date
  cmd << '--disable-lacing' if @disable_lacing
  cmd << '--disable-track-statistics-tags' if @disable_track_statistics_tags
  cmd << '--disable-language-ietf' if @disable_language_ietf
  nil
end
with_cluster_length_in_blocks(blocks) click to toggle source
# File lib/mkvtoolnix/types/merge/output_control.rb, line 43
def with_cluster_length_in_blocks(blocks)
  @cluster_length_blocks = blocks
  self
end
with_default_language(language) click to toggle source
# File lib/mkvtoolnix/types/merge/output_control.rb, line 17
def with_default_language(language)
  @default_language = language
  self
end
with_disabled_lacing() click to toggle source
# File lib/mkvtoolnix/types/merge/output_control.rb, line 73
def with_disabled_lacing
  @disable_lacing = true
  self
end
with_durations_enabled() click to toggle source
# File lib/mkvtoolnix/types/merge/output_control.rb, line 58
def with_durations_enabled
  @enable_duration = true
  self
end
with_meta_seek_element() click to toggle source
# File lib/mkvtoolnix/types/merge/output_control.rb, line 48
def with_meta_seek_element
  @generate_meta_seek = true
  self
end
with_timestamp_scale(factor) click to toggle source
# File lib/mkvtoolnix/types/merge/output_control.rb, line 53
def with_timestamp_scale(factor)
  @timestamp_scale = factor
  self
end
with_title(title) click to toggle source
# File lib/mkvtoolnix/types/merge/output_control.rb, line 12
def with_title(title)
  @title = title
  self
end
with_track_order(order) click to toggle source
# File lib/mkvtoolnix/types/merge/output_control.rb, line 22
def with_track_order(order)
  if order.is_a?(String)
    @track_order = order
    return self
  end

  @track_order = order.map do |it|
    # @track_order.map(&:to_s).join(',')
    case it
    when TrackOrder
      next it.to_s
    when Array
      next ["#{it[0]}:#{it[1]}"]
    when Hash
      next ["#{it[:file_index]}:#{it[:track_id]}"]
    end
  end.join(',')

  self
end
without_cues() click to toggle source
# File lib/mkvtoolnix/types/merge/output_control.rb, line 63
def without_cues
  @no_cues = true
  self
end
without_date() click to toggle source
# File lib/mkvtoolnix/types/merge/output_control.rb, line 68
def without_date
  @no_date = true
  self
end
without_language_ietf() click to toggle source
# File lib/mkvtoolnix/types/merge/output_control.rb, line 83
def without_language_ietf
  @disable_language_ietf = true
  self
end
without_track_statistics_tags() click to toggle source
# File lib/mkvtoolnix/types/merge/output_control.rb, line 78
def without_track_statistics_tags
  @disable_track_statistics_tags = true
  self
end