ExifTool Forum

General => Metadata => Topic started by: sarcha on April 13, 2022, 07:41:40 AM

Title: Automatically inserting metadata in 'properties' section of jpg file
Post by: sarcha on April 13, 2022, 07:41:40 AM
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.
Title: Re: Automatically inserting metadata in 'properties' section of jpg file
Post by: Phil Harvey on April 13, 2022, 09:47:44 AM
See FAQ 26 (https://exiftool.org/faq.html#Q26).

- Phil
Title: Re: Automatically inserting metadata in 'properties' section of jpg file
Post by: StarGeek on April 13, 2022, 11:01:25 AM
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 (https://xkcd.com/927/)).  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.
Title: Re: Automatically inserting metadata in 'properties' section of jpg file
Post by: sarcha on April 20, 2022, 10:58:45 AM
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?
Title: Re: Automatically inserting metadata in 'properties' section of jpg file
Post by: Phil Harvey on April 22, 2022, 07:27:51 AM
... works for me.  :)  (It is a joke.)

- Phil
Title: Re: Automatically inserting metadata in 'properties' section of jpg file
Post by: StarGeek on April 22, 2022, 10:30:59 AM
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.