-time:All does not change any file

Started by Jens0079, November 13, 2016, 03:16:47 PM

Previous topic - Next topic

Jens0079

Hi!

I tried to change alle time tags so instead of -AllDates I used -time:all. But with that nothing has changed. Where is the problem?

exiftool '-time:All-=0000:00:00 01:00:00' -overwrite_original DIR

I could see that Exiftool generates tmp file of the files in the DIR but nothing was changed.
macOS Sierra

StarGeek

What program are you checking to see if the time has changed?  When you check with exiftool has the time changed?  If you are using some other program, you may have to tell it to reload the metadata.

* 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).

Jens0079

Hello,

Exiftool reported in Terminal that 42 files where unchanged. This are all. And I checked the time tags before and after with exiftool.
macOS Sierra

Phil Harvey

Are there any date/time tags in these files?  Use this command to see:

exiftool -time:all --system:all DIR

- Phil
...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 ($).

Jens0079

Yes there are.
[System]        FileModifyDate                  : 2016:11:11 17:50:11+01:00
[System]        FileAccessDate                  : 2016:11:14 16:19:42+01:00
[System]        FileInodeChangeDate             : 2016:11:14 16:19:42+01:00
[IFD0]          ModifyDate                      : 2016:11:11 17:50:11
[ExifIFD]       DateTimeOriginal                : 2016:11:11 17:50:11
[ExifIFD]       CreateDate                      : 2016:11:11 17:50:11

Or the last three with your excluding of the system dates.
Could it be that one of the system times is not writeable and so the complete command failed?
macOS Sierra

Phil Harvey

OK, so it wasn't the most obvious problem then.

I can reproduce this and don't understand the behaviour myself.  I'll look into it.

- Phil
...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 ($).

Phil Harvey

#6
Ah.  This is a bug introduced in 10.28.  Thanks for bringing it to my attention.

The problem is that 10.28 made three composite tags writable (SubSecDateTimeOriginal, SubSecCreateDate and SubSecModifyDate), but I neglected to make them shiftable.  Unfortunately the writing of these tags is overriding what you are trying to do with the EXIF tags.  You may use this command to do what you want:

exiftool '-time:All-=0000:00:00 01:00:00' '-exif:time:All-=0000:00:00 01:00:00' -overwrite_original DIR

This will be fixed in ExifTool 10.34 so that your original command will function as intended.

Thanks again for pointing out this problem.

- Phil

Edit:  I just discovered that the same problem has existed for a long time in the Composite MWG date/time tags, but only shows up if the MWG module is loaded (ie. -use MWG).  I'll look into fixing this too.
...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 ($).

Jens0079

Hi Phil!

Many Thanks for your wonderful support of your program.
This is uniquely!
macOS Sierra

Jens0079

Quote from: Phil Harvey on November 14, 2016, 10:47:55 AM
...
You may use this command to do what you want:

exiftool '-time:All-=0000:00:00 01:00:00' '-exif:time:All-=0000:00:00 01:00:00' -overwrite_original DIR


I used this command and Terminal writes that the files have been updated, but they haven't.
The time has not changed. It is simply the old time.
macOS Sierra

Hayo Baan

What time hasn't changed? Perhaps you are looking at different time tags than the ones that are being changed by the command Phil gave you.
Hayo Baan – Photography
Web: www.hayobaan.nl

Jens0079

Above I posted all the time tags that are found in the file or are corresponding with the file.
All these time tags are unchanged.
macOS Sierra

Hayo Baan

Hmm, except for the system datetimes, I'm sure it should have worked. Can you post asmall sample image where it hasn't worked?

I just tested this myself and exiftool '-time:All-=0000:00:00 01:00:00' '-exif:time:All-=0000:00:00 01:00:00' definitely worked for me.
Hayo Baan – Photography
Web: www.hayobaan.nl

Jens0079

I'm sure it hadn't worked before. I checked the times with exiftool and they were the same.
Now it works. Don't know why. Ok now everything is fine.
Thank you very much for all your help.
macOS Sierra