Can't Call Method "Read" on Undefined Value

Started by tgk, February 20, 2024, 08:21:02 PM

Previous topic - Next topic

tgk

I am using media management software on a Windows environment that strips the file extension and uses the SHA1 value as its filename. It places all media in a filestore with a folder structure that replicates the SHA1 value eg- c:\Filestore\AA\B4\. The software cannot search for all types of exif values so I am trying to use exiftool to give me a list of all files in the filestore that contain the tag MCCData.

I have been able to get the following command to work on a small test data set.
exiftool -r -ext * -filename -mccdata -if "$mccdata" "C:\Filestore" > "C:\Textfile.txt"

However, when I run it over the actual filestore which contains all different filetypes without file extensions, I get the following error and the command stops running.
"Can't call method "Read" on an undefined value at C:\....\exiftool_files/lib/Image/Exiftool/Ogg.pm line 148"There are a heap of audio files such as OGG files in the filestore.

Is there syntax that will skip files that it can't read and continue searching the filestore? I have tried adding -m before -r but that did not work.

Appreciate any help.

Phil Harvey

Thanks for this report.

This bug will be fixed in 12.78.

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