Trying to set -alldates fail

Started by bjarkekr, February 15, 2021, 10:06:17 AM

Previous topic - Next topic

bjarkekr

See attachement. I have 4 mp4 files that I want to set alldates to according to the filename. 1 is without VID*, but that was just to test.

I think I have it correctly in my command window? Why doesnt it work?


c:\test>exiftool "-alldates>filename" c:\test
Warning: New file name not allowed in Windows (contains ':') - c:/test/20200430_141558.mp4
Warning: New file name not allowed in Windows (contains ':') - c:/test/VID_20210120_190007.mp4
Warning: New file name not allowed in Windows (contains ':') - c:/test/VID_20210120_190036.mp4
Warning: New file name not allowed in Windows (contains ':') - c:/test/VID_20210120_190107.mp4
    1 directories scanned
    0 image files updated
    4 files weren't updated due to errors

c:\test>dir
Volume in drive C is SYSTEM
Volume Serial Number is 4647-8D4D

Directory of c:\test

15-02-2021  15:53    <DIR>          .
15-02-2021  15:53    <DIR>          ..
15-02-2021  12:03        78.811.458 20200430_141558.mp4
23-01-2021  10:11         9.133.290 VID_20210120_190007.mp4
23-01-2021  10:11         9.280.443 VID_20210120_190036.mp4
23-01-2021  10:11         1.510.169 VID_20210120_190107.mp4
               4 File(s)     98.735.360 bytes
               2 Dir(s)  344.752.422.912 bytes free

c:\test>


StarGeek

You're not setting AllDates, you're trying to rename the file to the value of AllDates.

Tag copying follows the arrow.  It isn't a right to left copy unless you use the Less Than < sign.  Make sure you read over the docs on the -TagsFromFile option, specifically the 4th paragraph ("A powerful redirection feature...").

Also, while AllDates will work for videos, it's main purpose is to write to the three main EXIF timestamps CreateDate, DateTimeOriginal, and ModifyDate.  And since it will write to DateTimeOriginal, you have to be aware that Apple programs often have a problem with that tag if it doesn't include a time zone.  Newer versions of exiftool will automatically write a time zone to DateTimeOriginal, so if you haven't updated exiftool, you need to be aware of the problem.

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

bjarkekr

ok. Im not sure I undestand? Can you help me write it correctly then? The FAQ says:
exiftool "-alldates<filename" c:\images

I have:
exiftool "-alldates>filename" c:\test

bjarkekr

Ahh.. I see.. < or > :)

Now it didnt return error, but ok. Just the date hasnt changed. See attachment.

StarGeek

Quote from: bjarkekr on February 15, 2021, 10:22:33 AM
ok. Im not sure I undestand? Can you help me write it correctly then? The FAQ says:
exiftool "-alldates<filename" c:\images

I have:
exiftool "-alldates>filename" c:\test

I'm not sure how to explain it any easier.  The direction of tag copy follows the arrow.  The first copies from right to left.  From the filename into AllDates
alldates<---copies to the left---filename

This copies from left to right
alldates---copies to the right--->filename
* 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).

bjarkekr

Yeah, got it :) But it didnt work anyway.

StarGeek

Quote from: bjarkekr on February 15, 2021, 10:25:48 AMNow it didnt return error, but ok. Just the date hasnt changed. See attachment.

What is the output of this command
exiftool -AllDates 20200430_141558.mp4

Did you make sure to close the Properties window and reopen it?

Copy/paste the output here
* 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).

bjarkekr

ok.. I did close and open the window, but it didnt update. The output seems correct on all files. Thanks :)

bjarkekr

hmm.. Even after a restart windows still reports creation date and last modified date as it was before the command. No difference what so ever. And that is the dates that ACDCEE is looking at I think, so it still catalogs the files wrong.


bjarkekr

Here we see the problem:

c:\test>exiftool -time:all -a -G0:1 -s *.mp4
[File:System]   FileModifyDate                  : 2021:02:15 12:03:23+01:00
[File:System]   FileAccessDate                  : 2021:02:15 17:21:00+01:00
[File:System]   FileCreateDate                  : 2021:02:15 15:49:30+01:00
[QuickTime]     CreateDate                      : 2020:04:30 14:15:58
[QuickTime]     ModifyDate                      : 2020:04:30 14:15:58
[QuickTime:Track1] TrackCreateDate              : 2020:04:30 14:28:17
[QuickTime:Track1] TrackModifyDate              : 2020:04:30 14:28:17
[QuickTime:Track1] MediaCreateDate              : 2020:04:30 14:28:17
[QuickTime:Track1] MediaModifyDate              : 2020:04:30 14:28:17
[QuickTime:Track2] TrackCreateDate              : 2020:04:30 14:28:17
[QuickTime:Track2] TrackModifyDate              : 2020:04:30 14:28:17
[QuickTime:Track2] MediaCreateDate              : 2020:04:30 14:28:17
[QuickTime:Track2] MediaModifyDate              : 2020:04:30 14:28:17



I want to change the first 3

StarGeek

FileAccessDate can't be changed by itself, but it will change automatically when FileModifyDate is changed.  It's a useless timestamp anyway.

The command is the same as what you used for AllDates.  Just use the system tags instead.
exiftool "-FileCreateDate<Filename" "-FileModifyDate<Filename" c:\images
* 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).

bjarkekr

Thanks. Just though alldates changed all dates :) got it all now.