strange behaviour with Panasonic RW2 files

Started by Bona Sierra, July 16, 2024, 03:41:39 PM

Previous topic - Next topic

Bona Sierra

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
Windows 11 Pro

Phil Harvey

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

StarGeek

#2
This appears to be something that changed between version 12.83 and 12.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
"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

Bona Sierra

OK, I see. Sorry to ask, but what are the correct options or workaround? (I'm still a newbie)
Windows 11 Pro

StarGeek

Don't include the -m (-ignoreMinorErrors) option. You will get the "Warning: [Minor] Tag ... not defined" but that can be ignored.
"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 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
...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 ($).

Bona Sierra

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
Windows 11 Pro