ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: tgk on February 20, 2024, 08:21:02 PM

Title: Can't Call Method "Read" on Undefined Value
Post by: tgk on February 20, 2024, 08:21:02 PM
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.
Title: Re: Can't Call Method "Read" on Undefined Value
Post by: Phil Harvey on February 20, 2024, 09:32:46 PM
Thanks for this report.

This bug will be fixed in 12.78.

- Phil
Title: Re: Can't Call Method "Read" on Undefined Value
Post by: tgk on February 20, 2024, 10:34:12 PM
Thankyou