Desaturate

Use the hue filter if you want to desaturate: (saturation = 0?)
ffmpeg -i input -vf hue=s=0 output
This is like using ColorsSaturation in the GIMP.

Grayscale

Use the format filter if you want to convert to grayscale format:
ffmpeg -i input -vf format=gray output
This is like using ImageModeGrayscale in the GIMP.