Thanks, this essentially looks good, but -j -H will now print decimal values for some tags, for example MPImage{Flags,Format,Type}, which have fractional decimal values for tag ID's. It would make more sense if their tag ID's were 0 as they are with the text output and -H flag, or if they were strings.