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):
sudo apt-get install ffmpegbrew install ffmpegGo 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-c:a libmp3lame-q:a 2Replace
input.mp4output.mp3Optional constant bitrate version:
ffmpeg -i input.mp4 -vn -c:a libmp3lame -b:a 192k output.mp3