Genetec video archive
application/octet-stream
Magic Bytes
Offset: 0
47 53 52 2D 31 35 34 31
The Genetec video archive is a proprietary multimedia container format developed by Genetec Inc. for use within its unified security platform. This format is primarily employed for storing and exporting video surveillance footage from Genetec Security Center systems to ensure chain of custody. Playback typically requires the specialized Genetec Video Player, as the file structure often incorporates watermarking and encryption features designed to prevent tampering during forensic analysis.
Validation Code
How to validate .g64 files in Python
Python
def is_g64(file_path: str) -> bool:
"""Check if file is a valid G64 by magic bytes."""
signature = bytes([0x47, 0x53, 0x52, 0x2D, 0x31, 0x35, 0x34, 0x31])
with open(file_path, "rb") as f:
return f.read(8) == signature
How to validate .g64 files in Node.js
Node.js
function isG64(buffer: Buffer): boolean {
const signature = Buffer.from([0x47, 0x53, 0x52, 0x2D, 0x31, 0x35, 0x34, 0x31]);
return buffer.subarray(0, 8).equals(signature);
}
Go
func IsG64(data []byte) bool {
signature := []byte{0x47, 0x53, 0x52, 0x2D, 0x31, 0x35, 0x34, 0x31}
if len(data) < 8 {
return false
}
return bytes.Equal(data[:8], signature)
}
API Endpoint
GET
/api/v1/g64
curl https://filesignature.org/api/v1/g64