mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-27 13:23:22 +00:00
28 lines
582 B
Ruby
28 lines
582 B
Ruby
#!/usr/bin/ruby -w
|
|
|
|
class T_247attachment_selection < Test
|
|
def description
|
|
return "mkvmerge / --attachments option"
|
|
end
|
|
|
|
def run
|
|
src = "data/mkv/attachments.mkv"
|
|
merge(src)
|
|
result = hash_tmp
|
|
|
|
merge("--attachments 1,3,5 #{src}")
|
|
result += "-" + hash_tmp
|
|
|
|
merge("--attachments 2,4 #{src}")
|
|
result += "-" + hash_tmp
|
|
|
|
merge("--split 40s --split-max-files 2 --attachments 1:all,2:first,3:first,4:first,5:all #{src}")
|
|
result += "-" + hash_file("#{tmp}-001") + "+" + hash_file("#{tmp}-002")
|
|
|
|
unlink_tmp_files
|
|
|
|
return result
|
|
end
|
|
end
|
|
|