mkvtoolnix/tests/test-483select_tracks_by_language.rb
2015-03-28 19:18:39 +01:00

14 lines
627 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_483select_tracks_by_language
describe "mkvmerge / select tracks by language"
test "select-tracks-by-language" do
merge "--language 0:ger data/subtitles/srt/vde.srt --language 0:eng data/subtitles/srt/ven.srt --language 0:fre data/subtitles/srt/vde.srt ", :keep_tmp => true, :output => "#{tmp}-0"
merge "--stracks 0,2 #{tmp}-0", :output => "#{tmp}-1"
merge "--stracks ger,fre #{tmp}-0", :output => "#{tmp}-2"
merge "--stracks 0,fre #{tmp}-0", :output => "#{tmp}-3"
merge "--stracks 0,ger,eng #{tmp}-0", :output => "#{tmp}-4"
(0..4).collect { |idx| hash_file("#{tmp}-#{idx}") }.join("+")
end