mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-28 05:45:36 +00:00
2768b0a08b
Fixes #518.
19 lines
626 B
Ruby
19 lines
626 B
Ruby
#!/usr/bin/ruby -w
|
|
|
|
# T_359split_parts
|
|
describe "mkvmerge / --split parts:..."
|
|
|
|
test "data/avi/v-h264-aac.avi two output files" do
|
|
merge "--split parts:20s-30s,-40s data/avi/v-h264-aac.avi", :output => "#{tmp}-%02d"
|
|
result = [ hash_file("#{tmp}-01"), hash_file("#{tmp}-02"), File.exist?("#{tmp}-03") ? "bad" : "ok" ].join('+')
|
|
unlink_tmp_files
|
|
result
|
|
end
|
|
|
|
test "data/avi/v-h264-aac.avi one output file" do
|
|
merge "--split parts:20s-30s,+40s-50s data/avi/v-h264-aac.avi", :output => "#{tmp}-%02d"
|
|
result = [ hash_file("#{tmp}-01"), File.exist?("#{tmp}-02") ? "bad" : "ok" ].join('+')
|
|
unlink_tmp_files
|
|
result
|
|
end
|