Using to many resources?

Started by evilaro, November 07, 2012, 05:24:35 PM

Previous topic - Next topic

evilaro

Hi:

I use this type of structure to work with the detected faces.

'exiftool.exe -r -FacesDetected -AFAreaMode "&DIR"  > resultado.csv'     

It works well up to a point.

I got a directory that has 50 folders with 6 000 images in total  and a total of 40 GBytes.


I get a Internal error, exception internal error.

I took 10 folders off, and it works...
Added them one by one and I got back the problem.

I procesed this last folders individually and no problem.

So I feel, there is a problem with the ammount of memory, my application
allows exiftotol.

To check this I run the command out of my application and there is NO problem.

Soooooo... any sugestion on what should I do, besides working folder by folders individually?

Thanks

Emilio
www.evilfoto.eu
*************

evilaro


Well!!!!

After moving around some code on my aplication...

It seems now it is working...

Thanks
Emilio


www.evilfoto.eu
*************

Phil Harvey

Hi Emilio,

I do not recommend using the -csv option for a very large number of files (especially in Windows, which has more memory restrictions for ExifTool than other platforms).  If you know in advance what tags you want to extract it shouldn't be necessary.  The -csv option buffers information for all files in memory until it has read all the files.

From the documentation:

            Note that this option is fundamentally different than all other
            output format options because it requires information from all
            input files to be buffered in memory before the output is written.
            This may result in excessive memory usage when processing a very
            large number of files with a single command.


Instead, use -T or -p, which should do just as well and not have the memory problems.

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

evilaro

#3
Phil:

Correct...

This codings seems I have started using when I did not know too much...

Well... it has not changed much ;) , but I will use these parameters.

Thanks

Emilio
www.evilfoto.eu
*************