mkvtoolnix/tests/test-250tag_selection.rb
Moritz Bunkus 8139108c0f Improved the control over which tags get copied from a source file to the output file
The old option --no-tags" was replaced with the new options
"--no-global-tags" which causes global tags not to be copied and
"--no-track-tags" which causes track specific tags to not be
copied. The new option "--track-tags" can be used to select tracks for
which tags will be copied. The default is still to copy all existing
tags.
2009-05-31 21:08:12 +02:00

26 lines
647 B
Ruby

#!/usr/bin/ruby -w
class T_250tag_selection < Test
def description
return "mkvmerge / options for tag copying / in(MKV)"
end
def run
merge("data/mkv/tags.mkv")
hash = hash_tmp
merge("--no-global-tags data/mkv/tags.mkv")
hash += "-" + hash_tmp
merge("--track-tags 1 data/mkv/tags.mkv")
hash += "-" + hash_tmp
merge("--track-tags 2 data/mkv/tags.mkv")
hash += "-" + hash_tmp
merge("--no-track-tags data/mkv/tags.mkv")
hash += "-" + hash_tmp
merge("-T data/mkv/tags.mkv")
hash += "-" + hash_tmp
merge("--no-global-tags -T data/mkv/tags.mkv")
return hash + "-" + hash_tmp
end
end