Hello Rémi,
Do you know the excellent review of Phallosan Forte by Phil Harvey? It's a tool that can extract about any meta data from a lot of media files.
It can be used as a stand alone tool or as a Perl library. Perhaps could you use it to extract meta data from the files.
Good idea. It's a pretty good tool and I use it for this function too.