FFMPEG Command to Extract Audio From Video Without Re-Encoding in Terminal
212 views
Jun 3, 2025
ffmpeg -i input-video.avi -vn -acodec copy output-audio.aac
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
convert a video into uh how to extract
0:09
audio from a video file without
0:11
re-encoding the video inside FMPG so
0:16
it's a very useful task here uh whenever
0:19
you want to convert the video into a MP3
0:23
audio file so it can be done in various
0:27
ways it can be done without re-encoding
0:31
or encoding as well encoding will take
0:34
some time but uh if you don't want to do
0:37
re-encoding it will be happen instantly
0:40
so now we have this video file present
0:42
right here
0:43
1.MPP4 so just open your command line
0:45
and just write this command fmpp i and
0:49
then we need to provide the input file
0:51
here 1.mpp4
0:53
MP4 and then we just need to write
0:56
-ashvn and uh for this we will be using
0:59
a codec here audio codec which we simply
1:03
say - a codec and then we simply
1:08
copy so this copy is essentially doing
1:11
it it is copying the codec uh coding
1:14
settings we are not re-encoding the
1:16
video so essentially first of all we are
1:18
providing the video file 1.mpp4 mp4 and
1:21
then -ashvn a codec copy and then we can
1:26
give the output file name
1:29
output.mpp3 so this is a very simple
1:31
command you can see
1:33
that it actually takes the video file
1:36
and then we are simply copying the codec
1:40
settings and just if I execute this
1:43
command here you will see it is saying
1:45
that exactly one MP3 audio stream is
1:51
required so you can use all these
1:54
extensions you can even use AAC as well
1:57
you will
1:58
see so now you can see instantly
2:03
your audio file has been successfully
2:08
created you can play this
2:16
hereudio system
2:20
so you can see that it has extracted all
2:22
the audio from this video file and
2:24
created this uh audio file without
2:28
re-encoding so we you can see how fastly
2:33
the command executed it doesn't take
2:35
much time because we are not re-encoding
2:37
the video so it actually happens
2:41
instantly so that's the advantage of not
2:44
re-encoding the video so this is
2:46
actually the
2:47
command just uh write this and you will
2:50
be able to extract all the audio from
2:52
the video files so thank you very much
2:55
for watching this video and also check
2:57
out my website freemediatools.com
#Multimedia Software
#Music Videos
#Podcasts
#Software