MPEG transport streamfile
application/octet-stream
Magic Bytes
Offset: 0
47 46 31 50 41 54 43 48
The MPEG Transport Stream File (TSV) is a specialized firmware update container developed by Panasonic for its digital imaging hardware and broadcasting equipment. This format primarily facilitates system-level patches and software improvements for specific camera models and media players. Although largely legacy in modern consumer markets, these files remain essential for maintaining older hardware and are generally considered safe as they do not execute code within standard desktop operating systems.
Validation Code
How to validate .tsv files in Python
Python
def is_tsv(file_path: str) -> bool:
"""Check if file is a valid TSV by magic bytes."""
signature = bytes([0x47, 0x46, 0x31, 0x50, 0x41, 0x54, 0x43, 0x48])
with open(file_path, "rb") as f:
return f.read(8) == signature
How to validate .tsv files in Node.js
Node.js
function isTSV(buffer: Buffer): boolean {
const signature = Buffer.from([0x47, 0x46, 0x31, 0x50, 0x41, 0x54, 0x43, 0x48]);
return buffer.subarray(0, 8).equals(signature);
}
Go
func IsTSV(data []byte) bool {
signature := []byte{0x47, 0x46, 0x31, 0x50, 0x41, 0x54, 0x43, 0x48}
if len(data) < 8 {
return false
}
return bytes.Equal(data[:8], signature)
}
API Endpoint
GET
/api/v1/tsv
curl https://filesignature.org/api/v1/tsv