FFMPEG Bulk Batch Processing Command to Convert Entire Directory of MP4 Videos to MP3 Files in CMD
796 views
Jun 3, 2025
Buy the full source code of application here:
View Video Transcript
0:00
uh hello guys uh welcome to this video
0:02
so in this video I will show you a
0:04
ffmppg batch processing script or
0:08
command that you can actually run to
0:10
process multiple videos at a single time
0:13
so if let's suppose if you have a
0:15
directory containing multiple videos
0:17
let's suppose it can contain either 10
0:20
videos or it can contain 100 videos as
0:23
well
0:24
so using this ffmppg script or command
0:27
that I will show you it will process and
0:29
convert all these videos into MP3 so it
0:32
will extract all the sound from this
0:34
videos and save it as a MP3 file so just
0:38
go to your command line and as you can
0:40
see we have four videos present in my
0:42
directory so this is first second third
0:46
fourth all these videos are in MP4
0:48
format MP4 so what I will do is that I
0:52
will convert all these four videos into
0:54
MP3 so just go to the directory wherever
0:58
your videos are present so simply open
1:02
the command line right here so I just
1:05
open command line in the directory where
1:08
all the videos are present so once you
1:11
open it this is actually a very simple
1:14
oneline command that you simply write
1:17
here for and then you write percentage
1:22
sign I so we are simply running a for
1:26
loop right here in the command line so
1:28
for percentage sign I after that we just
1:32
need to say in and then parenthesis and
1:36
then we just need to write
1:38
here asterric sign right here and then
1:43
MP4 so this is essentially what it is
1:46
doing right here it is looping through
1:47
all the videos which are present in this
1:49
folder it is saying for and we have put
1:52
this placeholder variable I in and this
1:56
parenthesis is doing it
1:59
is MP4 so we are not providing names
2:02
right here names can be anything but we
2:05
just provided this extension that ismpp4
2:08
so it is essentially it is saying that
2:10
if all the videos are present in this
2:12
folder is MP4 so one by one it is uh do
2:16
the processing of each video and after
2:19
that we just need to execute the command
2:21
here so we simply write
2:23
do
2:25
ffmppg dash i so we take each video and
2:29
we execute this simple command ffmpg- i
2:32
and after that we just say in double
2:35
quotes percentage sign i we take the
2:40
video and after that again we write uh
2:43
double quotes and we convert that video
2:46
into MP4 so we simply write here this
2:49
symbol which
2:52
is right in the keyboard right here you
2:54
throw just put shift key you will see
2:58
this is actually the key right here and
3:01
then you
3:03
can
3:05
ni.mpp3 so I have given the command in
3:07
the description of this video so you can
3:10
copy this command so you just need to
3:12
write this
3:13
command in double quotes percentage sign
3:18
ni.mpp3 so as soon as I execute this
3:20
command right here you will see it will
3:22
process each video and it will create
3:24
this MP3 file for each video in the same
3:27
directory so you can see it will save
3:31
you a lot of time because if you have
3:33
thousands of videos present and if you
3:35
just want to convert videos into MP3 you
3:38
can just execute the script in the
3:40
command line and you will see the
3:43
processing has been complete and the
3:45
four MP3 videos have been created
3:47
automatically so you can see if I so in
3:51
this video I will show you variable by
3:54
these three so see it is extracted all
3:58
the sound here it
4:01
is dot
4:06
up do machine W6 so all the four videos
4:11
sound has been extracted which comes
4:14
right here four different MP3 files so I
4:17
have given this command uh with a little
4:20
bit detailed article as well of stra
4:22
overflow.com where I got this command
4:26
so they have explained each option in
4:29
detail and after that they have also
4:31
given command from Linux this command
4:34
will only work for Windows machine but
4:36
if you are on Mac or Linux they have
4:38
also given command from for that as well
4:41
so you can refer this article i've given
4:44
this article in the description of this
4:46
video so if you are on Linux or Mac you
4:48
basically copy this command and it will
4:51
do the same task for you so thank you
4:53
very much for watching this video and
4:55
also check out my website
4:56
freemediattools.com
4:58
uh which contains thousands of tools
5:00
regarding audio video and image
#Multimedia Software
#Podcasts
#Software
#Video Sharing