-limit not honoured during +adjoin of MNG
Posted: 2010-05-21T12:15:04-07:00
Hi all,
I'm using the default Image Magick with Ubuntu 10.04 LTS: 6.5.7-8. I'm trying to split apart an MNG of some play from an old version of MAME (irrelvant fact, IMO, but included in case). The command-line I'm using is as follows (there's a script wrapper which creates the dir & copies the MNG to the location).
convert -define mng:need-cacheoff -limit area 12mb -limit memory 6mb -limit map 6mb +adjoin /tmp/mng2avitemp/test.mng /tmp/mng2avitemp/test%06d.png
With the above, small MNGs (~20MB) will get extracted OK on my 1.5GB RAM machine. I have, however, some larger MNGs (>200MB) and convert does not honour the limits place on it (as I understand it). The RAM used will gradually grow and I've let it run to more than 750MB real RAM used and more than 1GB VRAM used (I killed it by this point). Is there something wrong with my command line or is this normal behaviour of the pixel cache? Alternatively, is there anything I can add to the command-line such that the pixel cache is flushed after each frame?
I'm using the default Image Magick with Ubuntu 10.04 LTS: 6.5.7-8. I'm trying to split apart an MNG of some play from an old version of MAME (irrelvant fact, IMO, but included in case). The command-line I'm using is as follows (there's a script wrapper which creates the dir & copies the MNG to the location).
convert -define mng:need-cacheoff -limit area 12mb -limit memory 6mb -limit map 6mb +adjoin /tmp/mng2avitemp/test.mng /tmp/mng2avitemp/test%06d.png
With the above, small MNGs (~20MB) will get extracted OK on my 1.5GB RAM machine. I have, however, some larger MNGs (>200MB) and convert does not honour the limits place on it (as I understand it). The RAM used will gradually grow and I've let it run to more than 750MB real RAM used and more than 1GB VRAM used (I killed it by this point). Is there something wrong with my command line or is this normal behaviour of the pixel cache? Alternatively, is there anything I can add to the command-line such that the pixel cache is flushed after each frame?