mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-29 14:27:42 +00:00
41 lines
996 B
Ruby
41 lines
996 B
Ruby
#!/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/simple/v.flac",
|
|
"data/simple/v.mp3",
|
|
"data/wav/v.wav",
|
|
"data/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 --identify-verbose #{file} > #{tmp}", 0
|
|
hash_tmp
|
|
end
|
|
|
|
checksum.join '-'
|
|
end
|
|
end
|
|
|