ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Birdman on March 08, 2023, 09:48:53 AM

Title: Problems with larger files
Post by: Birdman on March 08, 2023, 09:48:53 AM
Hello,

I encounter some problems with my exiftool commands in Windows (cmd) with now larger files. When using my command files with jpg-files in size of about 30 Mb there are no problems whatsoever, even if I modify 50 or more files at once. With my new converted Fujifilm-JPGs of about 60-70 Mb file size there are different problems, even if I only modify 4 to 5 files at once.

One example:
path d:\Bilder\NEU\exiftool
exiftool "-artist=Myself" "-headline<${focallength} | ${shutterspeed} | f ${fnumber} | ISO $exif:iso" -if "$make eq 'FUJIFILM'" -overwrite_original D:\Bilder\*.JPG
exiftool -if "$LensID eq '17-70mm F/2.8 DiIII-A VC RXD B070X'" "-description=X-T5: Tamron 17-70mm f/2.8" -overwrite_original D:\Bilder\*.JPG

Most of the time I get an error message like "Error renaming file 123.jpg ...", sometimes one or two files will not be modified at all. When I start the same command a second time those skipped files then will be changed most of the times.

Is it possible that because of the file size the computer trys to modify a second file before the first one is fiinished and saved properly? And with several files this ends in a mix up?

Is there any way to "slow down" exiftool, something like process file 1 and then wait some seconds before starting with file 2? Or might it help to skip the "-overwrite_original"?
Title: Re: Problems with larger files
Post by: Phil Harvey on March 08, 2023, 09:56:39 AM
Hi Martin,

The "Error renaming" messages are most likely because some other process has opened the file (locking it so ExifTool can't make changes).  Often this problem is due to antivirus software.

The fact that it happens for larger files might just be because they take longer to write so the AV software has more of a chance to open them before they are finished.

Try disabling your antivirus and repeat the tests.

- Phil
Title: Re: Problems with larger files
Post by: Birdman on March 08, 2023, 10:06:19 AM
Hi Phil,

very good idea! I just made some exemptions for my AV software regarding the exiftool directories. Seems to work! Thanks a lot!