module MkvToolNix::PropEditSelector
mkvtoolnix.download/doc/mkvpropedit.html#mkvpropedit.edit_selectors
Public Class Methods
by_track_number(track_number)
click to toggle source
# File lib/mkvtoolnix/propedit_selector.rb, line 34 def self.by_track_number(track_number) n = track_number raise Errors::MkvToolNixError, "Number must be > 0, got #{n}" if n.nil? || n.negative? "track:@#{n}" end
by_track_uid(uid)
click to toggle source
# File lib/mkvtoolnix/propedit_selector.rb, line 41 def self.by_track_uid(uid) "track:=#{uid}" end
for_attachment_by_id(id)
click to toggle source
# File lib/mkvtoolnix/propedit_selector.rb, line 45 def self.for_attachment_by_id(id) id end
for_attachment_by_mime_type(mime_type)
click to toggle source
# File lib/mkvtoolnix/propedit_selector.rb, line 53 def self.for_attachment_by_mime_type(mime_type) "mime-type:#{mime_type}" end
for_attachment_by_name(name)
click to toggle source
# File lib/mkvtoolnix/propedit_selector.rb, line 49 def self.for_attachment_by_name(name) "name:#{name}" end
for_info()
click to toggle source
# File lib/mkvtoolnix/propedit_selector.rb, line 6 def self.for_info 'info' end
for_nth_audio(nth)
click to toggle source
# File lib/mkvtoolnix/propedit_selector.rb, line 22 def self.for_nth_audio(nth) raise Errors::MkvToolNixError, "Number must be > 0, got #{nth}" if nth.nil? || nth.negative? "track:a#{nth}" end
for_nth_subtitle(nth)
click to toggle source
# File lib/mkvtoolnix/propedit_selector.rb, line 28 def self.for_nth_subtitle(nth) raise Errors::MkvToolNixError, "Number must be > 0, got #{nth}" if nth.nil? || nth.negative? "track:s#{nth}" end
for_nth_track(nth)
click to toggle source
# File lib/mkvtoolnix/propedit_selector.rb, line 10 def self.for_nth_track(nth) raise Errors::MkvToolNixError, "Number must be > 0, got #{nth}" if nth.nil? || nth.negative? "track:#{nth}" end
for_nth_video(nth)
click to toggle source
# File lib/mkvtoolnix/propedit_selector.rb, line 16 def self.for_nth_video(nth) raise Errors::MkvToolNixError, "Number must be > 0, got #{nth}" if nth.nil? || nth.negative? "track:v#{nth}" end
tag_all()
click to toggle source
# File lib/mkvtoolnix/propedit_selector.rb, line 57 def self.tag_all 'all' end
tag_global()
click to toggle source
# File lib/mkvtoolnix/propedit_selector.rb, line 61 def self.tag_global 'global' end