mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-29 14:27:42 +00:00
467e217e00
Examples: mkvmerge -o out.mkv [ in1.avi in2.avi in3.avi ] Of course shells may treat [ and ] special, so the user should escape them: mkvmerge -o out.mkv '[' in1.avi in2.avi in3.avi ']' The nice thing is to use the shell's file name expansion for appending: mkvmerge -o out.mkv '[' in*.avi ']'
16 lines
639 B
Ruby
Executable File
16 lines
639 B
Ruby
Executable File
#!/usr/bin/ruby -w
|
|
|
|
s1 = "data/subtitles/srt/vde-utf-8-bom.srt"
|
|
s2 = "data/subtitles/srt/ven.srt"
|
|
m1 = "data/simple/v.mp3"
|
|
m2 = "data/simple/v.mp3"
|
|
|
|
# T_555appending_with_square_brackets
|
|
describe "mkvmerge / appending files with the [ square brackets syntax ]"
|
|
test_merge "#{s1} + #{s2} + #{s1} + #{s2} #{m1} + #{m2}"
|
|
test_merge "'[' #{s1} #{s2} #{s1} #{s2} ']' #{m1} + #{m2}"
|
|
test_merge "#{s1} + '[' #{s2} #{s1} #{s2} ']' #{m1} + #{m2}"
|
|
test_merge "'[' #{s1} #{s2} #{s1} ']' + #{s2} #{m1} + #{m2}"
|
|
test_merge "'[' #{s1} #{s2} #{s1} #{s2} ']' '[' #{m1} #{m2} ']'"
|
|
test_merge "'[' #{s1} #{s2} ']' + '[' #{s1} #{s2} ']' '[' #{m1} #{m2} ']'"
|