ffmpeg – Extract Audio From Video

There are many ways you can extract audio from a video file.

But my favorite way is using ffmpeg from the command line.

To extract audio from mp4, I run a simple command:

ffmpeg -i video.mp4 audio.wav

Replace the name video.mp4 with your actual video file name.

If the file name has spaces in it, surround the video file name in quotes (“video.mp4”).

You can extract audio from other video formats as well, e.g. mkv.

ffmpeg will work with other video formats as well.

Replace audio.wav with the desired audio file name.

I suggest exporting to WAV because mp3 is a lossy format.

Here’s the command line in action:

Video To Audio ffmpeg

I just have to make sure the current directory is where my video file exists.

In this case, it’s D:\TEMP

To change the drive, type D: followed by Enter.

And then use the CD command to navigate to that folder (cd D:\TEMP)

If all goes well, you should now have audio.wav in the same folder as VIDEO.mp4

If it doesn’t, make sure you Installed FFMpeg Correctly

 

Leave a Reply

Your email address will not be published. Required fields are marked *