2005-12-09 23:10:00 +00:00
|
|
|
#!/usr/bin/ruby -w
|
|
|
|
|
2021-07-07 14:06:32 +00:00
|
|
|
class T_0217file_identification < Test
|
2005-12-09 23:10:00 +00:00
|
|
|
def description
|
|
|
|
return "mkvmerge / file identification / in(*)"
|
|
|
|
end
|
|
|
|
|
|
|
|
def run
|
2011-12-11 12:58:41 +00:00
|
|
|
checksum = [
|
|
|
|
"data/avi/v.avi",
|
2005-12-09 23:10:00 +00:00
|
|
|
"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",
|
2012-02-26 12:56:30 +00:00
|
|
|
"data/ac3/misdetected_as_mp2.ac3",
|
|
|
|
"data/ac3/misdetected_as_mpeges.ac3",
|
|
|
|
"data/aac/v.aac",
|
|
|
|
"data/ac3/v.ac3",
|
2018-03-10 17:31:13 +00:00
|
|
|
"data/flac/v.flac",
|
2005-12-09 23:10:00 +00:00
|
|
|
"data/simple/v.mp3",
|
2012-02-26 12:56:30 +00:00
|
|
|
"data/wav/v.wav",
|
2017-03-20 12:28:21 +00:00
|
|
|
"data/subtitles/ssa-ass/fe.ssa",
|
2013-10-19 11:08:26 +00:00
|
|
|
"data/subtitles/srt/vde.srt",
|
2005-12-09 23:10:00 +00:00
|
|
|
"data/vobsub/ally1-short.sub",
|
|
|
|
"data/wp/with-correction.wv",
|
|
|
|
"data/wp/without-correction.wv"
|
2011-12-11 12:58:41 +00:00
|
|
|
].collect do |file|
|
2017-12-22 15:02:58 +00:00
|
|
|
sys "../src/mkvmerge -J #{file} > #{tmp}", 0
|
2011-12-11 12:58:41 +00:00
|
|
|
hash_tmp
|
2005-12-09 23:10:00 +00:00
|
|
|
end
|
|
|
|
|
2011-12-11 12:58:41 +00:00
|
|
|
checksum.join '-'
|
2005-12-09 23:10:00 +00:00
|
|
|
end
|
|
|
|
end
|