The select stuff does not work.
I created a black/white image which contains the mask, and I tried the following:
gmic input.tif mask.tif -div[0] 257 -inpaint[0] [1],5,16,0.1,1,1.2,0,0.05,10,1 -mul[0] 257 -rm[1] -o output.tif,ushort
output.tif is readable, but it is quite different from the output produced with the gimp-plugin in 8bit mode.
output.tif looks very similar to the output produced by gmic command line using the 8bit input.
There are sharp borders between the inpainted areas and the original parts in output.tif
DanielDD