FFMPEG Command to Show Detailed Progress Bar While Converting Media Files in Terminal
15 views
Jun 3, 2025
ffmpeg -i input.mp4 -progress pipe:1 -c:v libx264 -crf 23 -preset slow -c:a aac -b:a 192k output.mkv
View Video Transcript
0:00
uh hello guys welcome to this video So
0:02
in this video I will show you how to
0:04
show a progress bar while you convert
0:07
your videos using ffmppg So by default
0:10
ffmpg do have a built-in progress bar
0:13
For this you I will show you the command
0:15
here You just need to include some
0:17
options right here So what I have here
0:20
this is actually video file present So I
0:23
just need to convert this video from MP4
0:26
to MKV with a progress path So we will
0:28
just write this command I've also given
0:31
this command in the description of this
0:33
video So ffmppg- i Then we provide the
0:36
name of the input video file
0:39
1.mpp4 And then we simply include this
0:41
progress bar by -ash
0:43
progress
0:46
pipe_1 And then we encode copy the
0:49
encoding settings which is -ash
0:52
c_v And then we use
0:56
this lib x264 which is the encoder
1:02
name and then
1:05
CRF So the main motive is to show the
1:08
progress bar So we are just encoding the
1:11
video here So dash preset
1:16
slow You can do this with any command So
1:19
you can convert video to MP4 MKV
1:24
anything and show a progress bar as well
1:27
So it will show you how much time is
1:29
left in uh processing the video So it
1:33
will be
1:35
useful So if I enter it you will see now
1:38
it is showing this uh progress bar It is
1:42
showing the speed here This is your
1:43
progress The frame frame by frame it
1:46
will show the progress bar and it will
1:49
exactly tell you how much time is
1:50
remaining What is the speed of
1:52
conversion all these things will be
1:54
displayed in the terminal which will
1:56
make it easy for the user to see
1:58
ultimately how much time is
2:00
remaining So this is actually the
2:03
built-in progress bar which is there
2:04
inside uh
2:07
ffmppg So you can see the conversion has
2:10
been completed the video is converted
2:12
from MP4 to MKV
2:17
uh and just click the new So I've given
2:21
this command in the description of this
2:22
video You can do this with any command
2:25
here You just need to include this dash
2:29
progress pipe is equal to 1 So this you
2:33
need to do You can do this with any
2:35
command So it will show you a detailed
2:37
progress
2:39
bar So thank you very much for watching
2:42
this video and also check out my website
2:44
freemediattools.com
2:46
uh which contains thousands of tools
#Online Media