This file was generated automatically based on this two sources:
- /etc/nginx/mime.types
- http://www.garykessler.net/library/file_sigs.html
This is a JSON object by following structure:
[string ext] : {
signs: [sign]
mime: string
}
A sign
is a string in this format (without any space):
[int o],[hex s]
where o
is x byte offset
(Commonly zero)
MP4:
[4 byte offset]
66 74 79 70 69 73 6F 6D
becomes:
4,6674797069736F6D
Hey! This is cool! I was about to start putting something like this together based on https://en.wikipedia.org/wiki/List_of_file_signatures. I did notice there are some more signatures on the wikipedia article that are not on https://www.garykessler.net/library/file_sigs.html
For example, two alternative signatures for mp3 of
FF F2
andFF F3
, so I think "mp3" could be extended to:Thanks for cross-referencing these!