Hi all,
I have experienced something strange:
I want to list Panasonic RAW files with extension RW2, and the list should have the SubSecCreateDate and the Filepath separated by ";", so I use:
exiftool -m -p "$SubSecCreateDate;$filepath" -ext RW2 .
but the output is:
2018:07:09 10:17:07.006;H:/IMG/Original/20180709_101707.RW2
;
which means: the output line is followed by another line with the separator specified
With:
exiftool -m -p "$filepath" -ext RW2 .
the output is:
H:/IMG/Original/20180709_130142.RW2
followed by an empty line (in HEX: 0D 0A 0D 0A, which is two carriage return line feeds)
With other file types like JPG or MP$ the putput is OK.
Or do I something wrong?
Exiftool 12.87
in Terminal window on Windows 11 Build 22621
The RW2 contains a sub-document (Doc1) which doesn't contain SubSecCreateDate, and -p iterates through all sub-documents. Without the -m option you see this:
> exiftool a.rw2 -p '$SubSecCreateDate;$filepath'
2023:11:16 10:57:28.945+01:00;/Users/phil/source/exiftool_cvs/a.rw2
Warning: [Minor] Tag 'Doc1:SubSecCreateDate' not defined - a.rw2
But with -m an empty value is output for the missing tag(s).
- Phil
This appears to be something that changed between version 12.83 and 12.84 (https://exiftool.org/history.html#v12.84), though i don't see anything that really applies.
Y:\!temp\ccc\D> exiftool_12.83 -m -p "$SubSecCreateDate;$filepath" -ext RW2 .
2022:08:06 15:40:12.086-07:00;Y:/!temp/ccc/D/P1000076.RW2
2022:03:15 09:13:46.818+00:00;Y:/!temp/ccc/D/PanasonicDC-GH6.rw2
1 directories scanned
2 image files read
Y:\!temp\ccc\D> exiftool_12.84 -m -p "$SubSecCreateDate;$filepath" -ext RW2 .
2022:08:06 15:40:12.086-07:00;Y:/!temp/ccc/D/P1000076.RW2
;
2022:03:15 09:13:46.818+00:00;Y:/!temp/ccc/D/PanasonicDC-GH6.rw2
;
1 directories scanned
2 image files read
OK, I see. Sorry to ask, but what are the correct options or workaround? (I'm still a newbie)
Don't include the -m (-ignoreMinorErrors) option (https://exiftool.org/exiftool_pod.html#m--ignoreMinorErrors). You will get the "Warning: [Minor] Tag ... not defined" but that can be ignored.
Thanks StarGeek... I see the change. 12.83 and earlier iterated through sub-documents only if -ee was specified. 12.84 and later do this if there are any sub-documents. I'll change this back.
- Phil
Thanks a lot for your explanation. The following command gives the results I want, without error messages and extra characters or empty lines:
exiftool -q -q -p "$SubSecCreateDate;$filepath" -ext RW2 .
I consider this topic closed from my side