mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-26 04:42:04 +00:00
40 lines
987 B
Ruby
Executable File
40 lines
987 B
Ruby
Executable File
#!/usr/bin/ruby -w
|
|
|
|
class T_217file_identification < Test
|
|
def description
|
|
return "mkvmerge / file identification / in(*)"
|
|
end
|
|
|
|
def run
|
|
checksum = [
|
|
"data/avi/v.avi",
|
|
"data/bugs/From_Nero_AVC_Muxer.mp4",
|
|
"data/mkv/complex.mkv",
|
|
"data/mkv/vobsubs.mks",
|
|
"data/mp4/test_2000_inloop.mp4",
|
|
"data/mp4/test_mp2.mp4",
|
|
"data/ogg/v.flac.ogg",
|
|
"data/ogg/v.ogg",
|
|
"data/rm/rv3.rm",
|
|
"data/rm/rv4.rm",
|
|
"data/ac3/misdetected_as_mp2.ac3",
|
|
"data/ac3/misdetected_as_mpeges.ac3",
|
|
"data/aac/v.aac",
|
|
"data/ac3/v.ac3",
|
|
"data/flac/v.flac",
|
|
"data/simple/v.mp3",
|
|
"data/wav/v.wav",
|
|
"data/subtitles/ssa-ass/fe.ssa",
|
|
"data/subtitles/srt/vde.srt",
|
|
"data/vobsub/ally1-short.sub",
|
|
"data/wp/with-correction.wv",
|
|
"data/wp/without-correction.wv"
|
|
].collect do |file|
|
|
sys "../src/mkvmerge -J #{file} > #{tmp}", 0
|
|
hash_tmp
|
|
end
|
|
|
|
checksum.join '-'
|
|
end
|
|
end
|