Tutorial

Extract Audio to MP3 with FFmpeg

In this tutorial, you will learn how to quickly create an MP3 file from a video with FFmpeg. It includes the standard command and an optional constant bitrate variant.

Install FFmpeg (if not already installed):

Go to your video folder

Open a command prompt or terminal and navigate to the folder containing your video file.

Export audio as MP3

Run this command:

ffmpeg -i input.mp4 -vn -c:a libmp3lame -q:a 2 output.mp3
  • -vn
    removes the video stream.
  • -c:a libmp3lame
    selects the MP3 encoder.
  • -q:a 2
    sets high variable audio quality.

Replace

input.mp4
and
output.mp3
with your file names.

Optional constant bitrate version:

ffmpeg -i input.mp4 -vn -c:a libmp3lame -b:a 192k output.mp3