Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FFmpeg & Black and White Conversion

Tags:

ffmpeg

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

like image 211
Jesse James Richard Avatar asked Sep 03 '15 19:09

Jesse James Richard


1 Answers

Desaturate

Use the hue filter if you want to desaturate:

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.

Threshold

See FFmpeg convert video to Black & White with threshold?

This is like using ColorsThreshold in the GIMP.

like image 82
llogan Avatar answered Oct 01 '22 01:10

llogan