'FFmpeg & Black and White Conversion

How to convert a video to black and white using ffmpeg?



Solution 1:[1]

Desaturate

Use the hue filter if you want to desaturate:

ffmpeg -i input -vf hue=s=0 output

This is like using Colors ? Saturation 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 Image ? Mode ? Grayscale in the GIMP.

Threshold

See FFmpeg convert video to Black & White with threshold?

This is like using Colors ? Threshold in the GIMP.

Solution 2:[2]

ffmpeg -i input -vf monochrome output

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 TheRandomGuyNamedJoe12