Gimp version 2.10.20
Running G'MIC from Gimp and processing hundreds or thousands of layers (frames) doesn't work. It will lock-up eventually.
A useful solution is to run G'MIC from a command line. Instructions are for Linux but the idea will work on Windows.
Open a terminal and type 'gmic'
If you don't see anything your will have to install it. For ubuntu 'sudo apt install gmic' (about 155Mbs)
Next open Gimp > G'MIC and then 'Settings' and change the G'MIC output to 'Very verbose'. This is saved.
Then start Gimp from the command line. Often the command is 'gimp' but for me it is '/GimpAppimage/squashfs-root/./AppRun'
Then 'open as layers' in Gimp or open a Gimp xcf file with many layers.
Open G'MIC and choose the filter you want to use. Often it will be a smoothing or anti-aliasing filter but all filters (except custom code) work this way.
For repairs, select a frame with the most artifacts to use as the preview layer. If changing the frames copy one from the middle of the sequence. It's best practice to copy-out the test layer out of the sequence before you 'Apply' the G'MIC filter. Then it won't be modified twice.
When you apply the filter to just one layer go back to the command line (terminal) and look at the G'MIC output. There will be many blocks of text but we are looking for the 'apply' sequence. Here is an example:
[gmic_gimp_qt]./apply/ v 3 fx_smooth_anisotropic 60,0.562,0.64,3.1,1.1,0.8,30,2,0,1,4,0,0,24
Insert this command and its parameters into a batch script
originally written by David Tschumperlé#!/bin/bash
mkdir ./done
for i in *png
do
gmic $i -fx_gcd_cumul_math 0,2,1,0,0 -o ./done/$i
done
This is where it is inserted into the script:
Save the script and call it something like gmic-filter.sh
Make the script executable the same way as installing Gimp plugins.
Copy the script into the folder with the frames you want to change.
Open a command prompt in the folder and run the script
./gmic-filter.sh
It will make a sub folder called 'done' and put the modified frames in that.
It will take some time but completes successfully. The scripts can be saved and re-used.
Why do this?Video editors are getting better all the time but mostly they don't support hundreds of image filters like G'MIC. I think it's also better to do as much pre-processing as possible.
This 100 frame GIF was made from a rotating fractal render of 800 frames smoothed with G'MIC and then processed with G'MIC Continuous droste.
Advanced.
Complex G'MIC equations such as 'Conformal Maps' have to be put into inverted commas and have all spaces removed before pasting into the batch script.
fx_conformal_maps "0,1,0,((1.1+i*z/6)/(1.04-i*z/6))^6.2,0,0,0,0,0,3,0,0,1024,1024"
The script can be changed to only modify odd numbered frames, or all even numbered frames
#!/bin/bash
mkdir ./done
for i in *[13579].png
do
gmic $i -fx_jr_deform 0,9.35,0,26.74,1,0,-42.4,1,0,50,50 -o ./done/$i
done
Any combination of frames down to 1 in every 10 can be used.
These altered frames can be copied out of the 'done' folder and used to overwrite the unmodified frames which have the same file name.