Warning: Not an integer for CreateDate

Started by SamMat, December 03, 2020, 02:19:38 PM

Previous topic - Next topic

SamMat

Hello,
I recently update exiftool.exe from an older version (probably April 2020) to the latest (12.11) and a problem has appeared.
The code that ran without problems before now have a problem :
Error message :
Warning: Not an integer for CreateDate -
Running on a Windows 10 PC (but problem is also on macOS).

Here is some explanation:
I want to add and then shift the createdate from a mp4 video file ("20190330_130000.mp4"). I do this :

First step : I add the date tag from the filename :
exiftool.exe "-quicktime:createdate<filename" -api quicktimeutc -charset FileName=latin1 C:\Users\Samuel\Desktop\20190330_130000.mp4
Result is :  "1 image files updated"

Second step : I want to substract 1 hour, 11 minutes and 30 seconds :
[quote][quote]exiftool.exe -quicktime:createdate-=1:11:30 -api quicktimeutc -charset FileName=latin1 C:\Users\Samuel\Desktop\20190330_130000.mp4[/quote][/quote]
Result is : "Warning: Not an integer for CreateDate - C:/Users/Samuel/Desktop/20190330_130000.mp4
    0 image files updated
    1 image files unchanged"

With older version of exiftool.exe, the second step was OK, meaning something has changed. But what ? And how can I fix this ?

Here is the time content of the metadata, after the first step :
exiftool.exe -time:all -a -G1 -s -api quicktimeutc -charset FileName=latin1 C:\Users\Samuel\Desktop\20190330_130000.mp4

[System]        FileModifyDate                  : 2020:12:03 20:09:40+01:00
[System]        FileAccessDate                  : 2020:12:03 20:11:28+01:00
[System]        FileCreateDate                  : 2020:12:03 20:08:39+01:00
[QuickTime]     CreateDate                      : 2019:03:30 13:00:00+01:00
[QuickTime]     ModifyDate                      : 1904:01:01 01:00:00+01:00
[Track1]        TrackCreateDate                 : 1904:01:01 01:00:00+01:00
[Track1]        TrackModifyDate                 : 1904:01:01 01:00:00+01:00
[Track1]        MediaCreateDate                 : 1904:01:01 01:00:00+01:00
[Track1]        MediaModifyDate                 : 1904:01:01 01:00:00+01:00
[Track2]        TrackCreateDate                 : 1904:01:01 01:00:00+01:00
[Track2]        TrackModifyDate                 : 1904:01:01 01:00:00+01:00
[Track2]        MediaCreateDate                 : 1904:01:01 01:00:00+01:00
[Track2]        MediaModifyDate                 : 1904:01:01 01:00:00+01:00
[ItemList]      ContentCreateDate               : 2019


Please, could you help me ?

Thanks a lot !

Samuel

StarGeek

Version 12.09 works correctly with this command.  Version 12.10 returns the error.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

Thanks for this report.  I'll fix this in 12.12

- 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

Version 12.12 is now available, and should fix this problem.

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