Linux file utility magic.mgc database get content

view story

http://stackoverflow.com – I write project where I need to identify certain file formats. For some formats I have found signatures that I use for identifying easily (mp3, ogg), with another formats I have a big problem (like MPEG ADTS) - I just cannot find what kind of signature can be used for it. I found out that File utility for Linux environment can do it. I tried to search it in source code, but I've found nothing. I found that file utility holds its database in magic.mgc file. But it's hold in binary form. It looks like: Does someone perhaps know how to find that database in plain text format? (HowTos)