ARG File and the d- Option

Started by Quant007, July 01, 2020, 01:42:01 PM

Previous topic - Next topic

Quant007

Hallo,
I use Arg-File like this:

-charset
filename=latin
-ext
mp4
-ext
m4v
-ext
mov
-api
largefilesupport=1
-overwrite_original
-execute
-ext
mp4
-ext
m4v
-ext
mov
-api
largefilesupport=1
-QuickTime:CreateDate>FileModifyDate
-QuickTime:CreateDate>FileCreateDate
-QuickTime:CreateDate>QuickTime:ModifyDate
-QuickTime:CreateDate>QuickTime:TrackCreateDate
-QuickTime:CreateDate>QuickTime:TrackModifyDate
-QuickTime:CreateDate>QuickTime:MediaCreateDate
-QuickTime:CreateDate>QuickTime:MediaModifyDate
-QuickTime:CreateDate>QuickTime:CreationDate
-d
%Y:%m:%d %H:%M:%S+00:00
-overwrite_original
-d
%Y-%m-%d_%H-%M-%S%%-c
-FileName<$QuickTime:CreateDate.%e
-FileName<$QuickTime:CreateDate-${title;tr/ /_/}.%e

The goal is a TimeDateFormat for the tag QuickTime:CreationDate like 2012:07:20 23:00:00+00:00 but it doesn't work. It seems I cant use not 2 -d options in one ARG-File.
When i type exiftool -overwrite_original "-QuickTime:CreateDate>QuickTime:CreationDate" -d "%Y:%m:%d %H:%M:%S+00:00" FILE it works correct.
What can I do? Is the better way
exiftool -overwrite_original "-QuickTime:CreateDate>QuickTime:CreationDate" -d "%Y:%m:%d %H:%M:%S+00:00" -@ argfile.arg -common_args FILE
Best regards
Quant007

StarGeek

#1
When you have two or more of the same option the the second one takes precedence, otherwise how would exiftool know which one to use?

Your best bet would be to set the -d (dateFormat) option to the format that covers the most tags, then you could use the DateFmt helper function on any other tags.

For example
${QuickTime:CreateDate#;DateFmt("%Y-%m-%d_%H-%M-%S")}%-c.%e

Edit: Forgot the hashtag because otherwise the -d option would still be in effect.
* 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).