mkvtoolnix/tests/test-0247attachment_selection.rb

25 lines
572 B
Ruby
Raw Normal View History

#!/usr/bin/ruby -w
2021-07-07 14:06:32 +00:00
class T_0247attachment_selection < Test
def description
return "mkvmerge / --attachments option"
end
def run
src = "data/mkv/attachments.mkv"
merge(src, 1)
result = hash_tmp
merge("--attachments 1,3,5 #{src}", 1)
result += "-" + hash_tmp
merge("--attachments 2,4 #{src}", 1)
result += "-" + hash_tmp
merge("--split 40s --split-max-files 2 --attachments 1:all,2:first,3:first,4:first,5:all #{src}", 1)
result += "-" + hash_file("#{tmp}-001") + "+" + hash_file("#{tmp}-002")
return result
end
end