Detect-It-Easy/db/Binary/format_video.MP4.1.sg
2026-06-20 22:32:01 +02:00

16 lines
No EOL
421 B
JavaScript

// Detect It Easy: detection rule file
// Author: A.S.L - <asl@onet.eu> 2019
// https://en.wikipedia.org/wiki/MP4_file_format
meta("format", "MP4 Video");
function detect() {
if (Binary.getSize() > 100) {
if (Binary.compare("000000..'ftyp'")) {
sOptions = Binary.getString(16); // example : isomiso2avc1mp41 / isomavc1 / isom
bDetected = true;
}
}
return result();
}