mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-26 21:03:57 +00:00
ac3ba84dad
Implements #1108.
14 lines
627 B
Ruby
Executable File
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
|