ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: bramley02 on September 30, 2022, 04:11:45 AM

Title: batch process_no more than 90 images
Post by: bramley02 on September 30, 2022, 04:11:45 AM
hi all,

two issues:
1. JPG/ RAW needs to be processed seprartely. i shot JPG+RAW. So i have to split all JPG from RAW. Otherwise, return with ERROR Message 1: failed to run command.
2. singe batch no more than 90 images. Otherwise, return with ERROR Message 1: failed to run command.

my operating system:
win10

LR Classic 8.2

LensTagger 1.9.2

Exiftool 12.45
Title: Re: batch process_no more than 90 images
Post by: Phil Harvey on September 30, 2022, 06:01:09 AM
This is not an ExifTool error message, problem or limitation.

It sounds like you may be running into a command-line-length limitation on your system.  Try using the directory name instead of putting all of the file names on the command line.  Alternatively, put the file names in a text file and use the ExifTool -@ option to pass them to ExifTool.

- Phil
Title: Re: batch process_no more than 90 images
Post by: StarGeek on September 30, 2022, 02:43:58 PM
Quote from: bramley02 on September 30, 2022, 04:11:45 AMERROR Message 1: failed to run command.

See the LensTagger FAQ (https://www.lenstagger.com/faq/), 3rd question.
Title: Re: batch process_no more than 90 images
Post by: bramley02 on October 01, 2022, 01:18:15 PM
Quote from: Phil Harvey on September 30, 2022, 06:01:09 AMThis is not an ExifTool error message, problem or limitation.

It sounds like you may be running into a command-line-length limitation on your system.  Try using the directory name instead of putting all of the file names on the command line.  Alternatively, put the file names in a text file and use the ExifTool -@ option to pass them to ExifTool.

- Phil

Thanks for reply Phil.

Here is the latest 249 JPG i am trying to add lens info. All as instructured, exiftool is selected, filelist is used. I don't understand why there is a "number of files limitation".

selection parameter & error message attached for reference.




Title: Re: batch process_no more than 90 images
Post by: bramley02 on October 01, 2022, 01:19:54 PM
Quote from: StarGeek on September 30, 2022, 02:43:58 PM
Quote from: bramley02 on September 30, 2022, 04:11:45 AMERROR Message 1: failed to run command.

See the LensTagger FAQ (https://www.lenstagger.com/faq/), 3rd question.

thanks Geek, "exiftool location selection" was performed correctly in LR Lenstagger.
Title: Re: batch process_no more than 90 images
Post by: Phil Harvey on October 01, 2022, 01:31:36 PM
I don't know how lenstagger passes the file names to exiftool, but if it is via the command line then there will be a system limitation.

The special characters in the directory names may cause problems for ExifTool.  This shouldn't stop exiftool from running, but it may result in "File not found" errors if ExifTool can't open the image files due to the special characters.  Special characters in Windows file/directory names can be problematic for ExifTool.

- Phil
Title: Re: batch process_no more than 90 images
Post by: StarGeek on October 01, 2022, 11:56:38 PM
Quote from: bramley02 on October 01, 2022, 01:18:15 PMI don't understand why there is a "number of files limitation".

It's not a number of files limitation, it's number of characters limitation.  From Microsoft.com (https://learn.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/command-line-string-limitation)
QuoteThe maximum length of the string that you can use at the command prompt is 8191 characters

But I don't think that's the case here. A quick glance over the Lenstagger docs seems to indicate that the "Read files filelist" option you have set is saving the file paths to a temp file and reading from that with, I assume, -@ (Argfile) option (https://exiftool.org/exiftool_pod.html#ARGFILE).

It seems more likely that it's a UTF8 character problem.  You might try using this StackOverflow answer (https://stackoverflow.com/questions/57131654/using-utf-8-encoding-chcp-65001-in-command-prompt-windows-powershell-window/57134096#57134096), at least temporarily, to see if that works.
Title: Re: batch process_no more than 90 images
Post by: bramley02 on October 02, 2022, 12:26:49 AM
Quote from: Phil Harvey on October 01, 2022, 01:31:36 PMI don't know how lenstagger passes the file names to exiftool, but if it is via the command line then there will be a system limitation.

The special characters in the directory names may cause problems for ExifTool.  This shouldn't stop exiftool from running, but it may result in "File not found" errors if ExifTool can't open the image files due to the special characters.  Special characters in Windows file/directory names can be problematic for ExifTool.

- Phil

Thanks Phil, really appreciate.

despite single batch of 90 images, which already a great leap from blank.

Great work and thanks again.

Title: Re: batch process_no more than 90 images
Post by: bramley02 on October 02, 2022, 12:33:08 AM
Quote from: StarGeek on October 01, 2022, 11:56:38 PM
Quote from: bramley02 on October 01, 2022, 01:18:15 PMI don't understand why there is a "number of files limitation".

It's not a number of files limitation, it's number of characters limitation.  From Microsoft.com (https://learn.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/command-line-string-limitation)
QuoteThe maximum length of the string that you can use at the command prompt is 8191 characters

But I don't think that's the case here. A quick glance over the Lenstagger docs seems to indicate that the "Read files filelist" option you have set is saving the file paths to a temp file and reading from that with, I assume, -@ (Argfile) option (https://exiftool.org/exiftool_pod.html#ARGFILE).

It seems more likely that it's a UTF8 character problem.  You might try using this StackOverflow answer (https://stackoverflow.com/questions/57131654/using-utf-8-encoding-chcp-65001-in-command-prompt-windows-powershell-window/57134096#57134096), at least temporarily, to see if that works.
Thanks Geek, great help already. a single batch of 90 image, keep me going couple of weekends only, to solve my 13 years untraceable messy image bank.