Automatically inserting metadata in 'properties' section of jpg file

Started by sarcha, April 13, 2022, 07:41:40 AM

Previous topic - Next topic

sarcha

Hello,

So to give a short overview, I have a video mp4 file and I have extracted few frames from it. Also I have managed to extract the metadata into csv file from the video file.

Now I am looking to insert this metadata from csv file into the extracted frames which is in jpg format. Can anyone guide me how I can automate this process?


Regards.

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

To add to this, you most likely will have to do some editing.  Not all tag names in a video file have a direct translation to image files (see xkcd Standards).  Additionally, some tags with same names will still have different data.  For example, CreateDate exists in both video and image files, but in video files it is supposed to be UTC while in image files it is supposed to be local time of where the image was located.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

sarcha

Hey StarGeek,


thank you for the suggestion. but the reference you gave (see xkcd Standards) doesnt seem to open appropriate page. Can you share the link again please?

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

The point of the joke is that there standard for metadata in video files and there are multiple standards for metadata in image files.  And it's worse in video files because there are multiple tags with the same name but up to three different locations.  And that doesn't even touch GPS tracks in video files, of which exiftool knows 59 different ways that a GPS track can be embedded.

In a perfect world, there would be just one standard to cover it all, but as the comic shows, we end up with more and more different standards.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).