2012-04-06 13:25:30 +00:00
|
|
|
#!/usr/bin/ruby
|
|
|
|
|
|
|
|
# T_361file_concatenation
|
|
|
|
describe "mkvmerge / file concatenation, multi file I/O"
|
|
|
|
|
2017-01-22 13:15:44 +00:00
|
|
|
vob_files = (1..3).map { |i| "data/vob/VTS_01_#{i}.VOB" }
|
2012-04-06 13:25:30 +00:00
|
|
|
|
2017-01-22 13:15:44 +00:00
|
|
|
test "additional vob_files listed" do
|
2021-07-06 19:00:42 +00:00
|
|
|
identify_json(vob_files[0])["container"]["properties"]["other_file"].map { |f| f.gsub(%r{.*[/\\]}, '') }.join('+')
|
2017-01-22 13:15:44 +00:00
|
|
|
end
|
2012-04-06 13:25:30 +00:00
|
|
|
|
|
|
|
# These two must be equal.
|
2017-01-22 13:15:44 +00:00
|
|
|
test_merge vob_files[0], :exit_code => 1
|
|
|
|
test_merge "'(' #{vob_files.join(' ')} ')'", :exit_code => 1
|
2012-04-06 13:25:30 +00:00
|
|
|
|
|
|
|
# These three must be equal.
|
2017-01-22 13:15:44 +00:00
|
|
|
test_merge "'=' #{vob_files[0]}"
|
|
|
|
test_merge "'=#{vob_files[0]}'"
|
|
|
|
test_merge "'(' #{vob_files[0]} ')'"
|
2012-04-06 13:25:30 +00:00
|
|
|
|
|
|
|
# Separate case.
|
2017-01-22 13:15:44 +00:00
|
|
|
test_merge "'(' #{vob_files[0]} #{vob_files[1]} ')'"
|
2012-04-06 13:25:30 +00:00
|
|
|
|
2017-01-22 13:15:44 +00:00
|
|
|
m2ts_files = (0..3).map { |i| "data/ts/0000#{i}.m2ts" }
|
2012-04-06 13:25:30 +00:00
|
|
|
|
2017-12-22 15:02:58 +00:00
|
|
|
test_identify m2ts_files[0], :format => :json
|
2012-04-06 13:25:30 +00:00
|
|
|
|
|
|
|
# These four must be equal.
|
2017-01-22 13:15:44 +00:00
|
|
|
test_merge m2ts_files[0]
|
|
|
|
test_merge "'=' #{m2ts_files[0]}"
|
|
|
|
test_merge "'=#{m2ts_files[0]}'"
|
|
|
|
test_merge "'(' #{m2ts_files[0]} ')'"
|
2012-04-06 13:25:30 +00:00
|
|
|
|
|
|
|
# Two separate cases.
|
2017-01-22 13:15:44 +00:00
|
|
|
test_merge "'(' #{m2ts_files[0..1].join(' ')} ')'"
|
|
|
|
test_merge "'(' #{m2ts_files[0..2].join(' ')} ')'"
|
2012-04-06 13:25:30 +00:00
|
|
|
|
|
|
|
# These two must be equal.
|
2017-01-22 13:15:44 +00:00
|
|
|
test_merge "'(' #{m2ts_files.join(' ')} ')'"
|
2012-04-06 13:25:30 +00:00
|
|
|
test_merge "data/ts/hd_distributor_regency.m2ts"
|