Parsing Maker Notes

Started by blue-j, September 02, 2022, 03:34:15 PM

Previous topic - Next topic

blue-j

Hey there,

This is an odd request for help I suppose!  What can I do here:

I need to look into any image, see if it has any maker notes and then parse the manufacturer name from the family name for it.  EG  makernotes:samsung:depthmapdata

I know all about the other namespaces that have this information, like EXIF; but I still need this precise solution.

I can parse the output outside of ExifTool, but I don't know how to efficiently extract one maker note from any image!

Yours in struggle,
J

StarGeek

I don't recall any way to list just the group names, so you would have to parse the output.  Something like this
C:\>exiftool -if "$MakerNotes:all" -g0:1 -a -s -makernotes:all 2022-04-02_09.51.45.Jpg | grep -E "^----"
---- MakerNotes:Nikon ----
---- MakerNotes:PreviewIFD ----
---- MakerNotes:NikonCustom ----
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

blue-j

Thanks Star-man!  You got me headed in the absolutely correct direction. To parse the output further, there is this joyful regex:

(?<=---- MakerNotes:)(\w+(?:\s+\w+)*)(?=\s* ----)
And damn it, GPT-3 wrote it for me.  Wow.

- J

StarGeek

Quote from: blue-j on September 02, 2022, 09:39:47 PMThanks Star-man! 

No, no.  Starman is this guy


StarGeek is this guy


StarGeek was my character in the City of Heroes MMO, and in EverQuest before that.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

blue-j

You are awesome.

I just watched a video course on mineral evolution, and my mind was blown open.  I knew we are all made of stars, but this guy connects all the dots from the Big Bang through star lifecycles through heavier elements, the creation of Earth, and then of life.  Highly recommended, Mr StarGeek!

https://www.wondrium.com/the-origin-and-evolution-of-earth-from-the-big-bang-to-the-future-of-human-existence

StarGeek

I add it to my list, my very, very long list, of things to watch
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype