mkvtoolnix/tests/test-531simple_chapter_extraction.rb
Moritz Bunkus 323d2f10ab mkvextract: simple chapters: allow selection of language for chapter names
Normally mkvextract uses the first chapter name found for each atom when
outputting simple chapter format. With a new option the user can select
the chapter names to extract by their language.

Implements the feature part of #1610.
2016-02-25 22:37:53 +01:00

14 lines
415 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_531simple_chapter_extraction
describe "mkvextract / chapters in simple format including language selection"
%w{love phantom}.each do |file|
[ "", "--simple-language eng", "--simple-language spa" ].each do |language|
test "extract from #{file} #{language}" do
extract "data/chapters/#{file}.mkv --simple #{language} > #{tmp}", :mode => :chapters
hash_tmp
end
end
end