FFMPEG Command to Apply Grayscale Filter to Video to Make it Black and White in Terminal
54 views
Jun 3, 2025
ffmpeg -i input.mp4 -vf format=gray -c:a copy output_bw.mp4
View Video Transcript
0:00
uh hello guys uh welcome to this video
0:02
So in this video I will show you how to
0:04
make your video black and white or
0:06
grayscale inside ffmppg We'll be writing
0:09
a very simple command So we have a
0:11
simple video right here present in the
0:14
directory
0:15
1.mpp4 Uh let me show you the video It
0:18
contains hello guys So it's a simple
0:21
normal video So what I will do i will
0:23
make this video remove all the colors
0:25
from this video Make it black and white
0:28
grayscale So just open your command line
0:30
I've given this command in the
0:32
description of this video So just write
0:34
f
0:35
ofmppg- i and then the input file name
0:38
which is 1.mpp4 So we are just providing
0:42
the input After that we are saying -vf
0:45
We are applying a video filter and then
0:47
we are specifically telling make this
0:50
video as grayscale So format is equal to
0:53
gray In this way you can do this After
0:57
that we are just uh copying the encoding
1:02
settings and then the output file set So
1:05
we just say gray or black and white MP4
1:10
So this is essentially the command guys
1:12
very simple command We provide the input
1:14
file then we apply the video filter
1:17
format is equal to gray and then we copy
1:20
the encoding settings and this is your
1:22
output file So if I just press enter you
1:25
will see it will process the video and
1:28
this will not take too much long because
1:30
it's just a 30 secondond video and uh
1:33
once it uh start uh finished processing
1:36
I will show you So now it has created
1:39
this black and white video So if I uh
1:43
play this video you will see it looks
1:45
like like this Hello guys welcome to
1:46
this video So in this video I will show
1:49
So you can see all the colors is removed
1:51
from this video It has made black and
1:54
white
1:55
grayscale So in this easy way you can
1:58
how to change change uh make any video
2:01
black and white or grayscale inside fmpp
2:03
using this simple command So thank you
2:06
very much guys for watching this uh
2:08
video and also check out my website
2:13
freemediatools.com I have given this
2:15
command in the description of this video
#Multimedia Software