Deleting instances of userdata DateTimeOriginal in video files (copy5, copy6...)

Started by peho, June 01, 2019, 06:51:03 AM

Previous topic - Next topic

peho

I've accidentally adding DateTimeOriginal to video files.
Whenever I try to change the value, a new one is added. (I really don't understand this)
When I search for help, the only I can find is to delete through Perl, but is it possible to do with ExifTool  app?

[QuickTime:UserData:Time:Main:Copy1] DateTimeOriginal: 2019:05:10 12:16:34
[QuickTime:UserData:Time:Main:Copy2] DateTimeOriginal: 2019:05:10 12:16:34
[QuickTime:UserData:Time:Main:Copy3] DateTimeOriginal: 2019:05:10 12:16:34
[QuickTime:UserData:Time:Main:Copy4] DateTimeOriginal: 2019:05:10 12:16:34+01:00
[QuickTime:UserData:Time:Main:Copy5] DateTimeOriginal: 2019:01:01 00:00:00
[QuickTime:UserData:Time:Main:Copy6] DateTimeOriginal: 2019:01:02 00:00:00
[QuickTime:UserData:Time:Main:Copy7] DateTimeOriginal: 2019:01:02 00:00:00

Phil Harvey

Was it ExifTool that added the copies?  If so, what version?  This should not happen.

You should be able to delete them with this command:

exiftool -datetimeoriginal= FILE

But it would be informative to see the output of exifool -v from this file to see if the UserData is also duplicated.

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

Phil Harvey

Ooops.  Yes.  ExifTool is doing this.  I will fix this ASAP.

- Phil

Edit:  I've found the problem.  It wasn't discovered earlier because it affected only some UserData tags (and apparently not the ones I tested).   I will have this fixed and a new version will be released within a couple of hours.
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Phil Harvey

This bug has been fixed, and ExifTool 11.48 is now available.

With this version, the duplicate copies of UserData:DateTimeOriginal will be deleted when you write it again.

Thanks for reporting this.  I've moved this thread to the Bug Report section of the forum.

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

peho

That was fast moving ;D
Thank you for looking into this so fast.
Then there was a good reason that I didn't understand it.
Tested and everything is working as expected now.
Thanks again.