ExifTool Forum

ExifTool => Newbies => Topic started by: marekl on May 01, 2017, 02:41:17 PM

Title: How to get and save unique keywords/subjects?
Post by: marekl on May 01, 2017, 02:41:17 PM
I have duplicated keywords/subjects saved to pictures. See example.jpg in attachment, where is:

[XMP-dc]        Subject                         : AAA, BBB, CCC, BBB, BBB, AAA, BBB, CCC

Is there a way ho to remove duplicates? The results should be then:

[XMP-dc]        Subject                         : AAA, BBB, CCC

Thank you
Title: Re: How to get and save unique keywords/subjects?
Post by: Phil Harvey on May 01, 2017, 02:50:21 PM
A quick search in the forum for "remove duplicate keywords" yields this useful post (https://exiftool.org/forum/index.php/topic,7827.msg39826.html#msg39826) by StarGeek.

- Phil
Title: Re: How to get and save unique keywords/subjects?
Post by: marekl on May 01, 2017, 03:22:44 PM
Thank you, that's great post.
Title: Re: How to get and save unique keywords/subjects?
Post by: lotsobear on November 13, 2017, 02:16:59 PM
Hi, I tried to read through the documentation, but just not having success understanding it.

So, my filenames are in the following format:

YYYYMMDD_HHMMSS.mpg

When I copied videos from my computer to my phone, my phone shows all the videos on that date, instead of by the date they were taken.  I want to fix all the exif dates and times so that my phone will sort the videos correctly.  I tried all the different codes mentioned above, but it just sets all the dates to the current date/time.  Can someone help?  Feel stupid because it seems very similar to the OP's questions, but I can't figure it out! :(  Thanks!
Title: Re: How to get and save unique keywords/subjects?
Post by: Phil Harvey on November 13, 2017, 03:42:43 PM
I think the problem is that the phone is using the filesystem date/time for sorting, since these are the only date/times that will change when a file is copied.  If the phone is mounted as a disk, you may be able to do this to set the file modification date/time from the filename:

exiftool "-filemodifydate<filename" -ext mpg DIR

where DIR is the directory on the phone.

- Phil