M1V
video/mpeg
Magic Bytes
Offset: 0
00 00 01 B3
The M1V file format represents a raw MPEG-1 video elementary stream developed by the Moving Picture Experts Group (MPEG). It stores video data without associated audio tracks, historically serving as the visual component for Video CDs (VCDs) and early digital multimedia applications. As a legacy standard from the early 1990s, it has largely been superseded by modern efficient codecs, making it rare in contemporary computing environments.
Validation Code
How to validate .m1v files in Python
Python
def is_m1v(file_path: str) -> bool:
"""Check if file is a valid M1V by magic bytes."""
signature = bytes([0x00, 0x00, 0x01, 0xB3])
with open(file_path, "rb") as f:
return f.read(4) == signature
How to validate .m1v files in Node.js
Node.js
function isM1V(buffer: Buffer): boolean {
const signature = Buffer.from([0x00, 0x00, 0x01, 0xB3]);
return buffer.subarray(0, 4).equals(signature);
}
Go
func IsM1V(data []byte) bool {
signature := []byte{0x00, 0x00, 0x01, 0xB3}
if len(data) < 4 {
return false
}
return bytes.Equal(data[:4], signature)
}
API Endpoint
GET
/api/v1/m1v
curl https://filesignature.org/api/v1/m1v