-ar: Set the audio sampling frequency.-vn: Disable any possible video, just to make sure that there won't be any album cover image attached.-i: the input WAV file that will be converted to MP3 using the libmp3lame encoder.The command to convert WAV to MP3 with a good relation between quality and size can be breakdown like this: WAV to MP3 using FFmpegĪs with everything in our blog, you will find the solution right away so you can immediately use it in your own projects. In this article, I will explain to you how to easily convert a WAV file to MP3 using FFmpeg from the command line. You can easily understand it with the example of a song that in WAV format has a size of about 70MB while in MP3 format, it will have a size of up to 5MB only depending on the bitrate.įFmpeg can be used to convert a huge WAV file into a tiny MP3 file that allows the user to listen to the same song but downloading just a portion of the original size of the WAV file. WAV is used where uncompromised audio quality is required and MP3 where lightweight music files are needed. For people without enough knowledge about these formats will always ask which one is better, WAV or MP3? That's because those are the most common formats of audio nowadays that you can find everywhere.