h2non / filetype

Fast, dependency-free Go package to infer binary file types based on the magic numbers header signature
https://pkg.go.dev/github.com/h2non/filetype?tab=doc
MIT License
2.05k stars 178 forks source link

Add MPEG-TS video format #120

Open aetaric opened 1 year ago

aetaric commented 1 year ago

Hello!

It seems filetype fails to identify .ts files as MEPG-TS (MPEG Transport Stream). As an FYI, this might be a little messy to ID as the header is 0x47 on every 188th byte.