You are currently viewing How to convert an AAC file to MP3 format in the Linux terminal

How to convert an AAC file to MP3 format in the Linux terminal

AAC (Advanced Audio Coding) is an audio file format used for compressing and encoding high-quality audio. When compared to MP3, it offers improved sound quality at lower bit rates. Usually, when recording using some mobile application, the resulting file could be AAC as opposed to the expected MP3. Mp3 being the widespread and common format, some applications may not recognize what AAC format is; hence necessitating a need to convert it. In this article, we cover how to convert an AAC file format to MP3 on a Linux machine in a few steps.

step 1: Install FFmpeg

convert an AAC file to MP3

FFmpeg is the module that is required to undertake this operation. By default, this is not installed. To install it, open your terminal and run the command:

sudo apt-get install ffmpeg    #if you are on ubuntu

For Centos users, run the following command to install FFmpeg

sudo dnf install ffmpeg #for centos8 and newer
OR
sudo yum install ffmpeg   #for Centos7 and older

Step 2: Converting an AAC file to an MP3 file

Once the FFmpeg module is installed, open the terminal, navigate to the folder where the AAC file is, and run the following command.

ffmpeg -i name-of-aac-file.aac -c:v copy -c:a libmp3lame -q:a 2 expected-name-of-mp3.mp3

In the above command, edit name-of-acc-file.aac to match the name of the AAC file you wish to convert and expected-name-of-mp3.mp3 to match the name of the file output. Once the above command is executed, it takes some time, depending on the size of the audio file. Once done, you can confirm that the MP3 file generated is playing as expected.

Should you face a challenge with the above process, you can always reach out to us:: Contact us or visit our Main website for more: Dynamic Technologies or drop a comment in the comment section.


Web Hosting and email hosting Packages




For web development services, SEO services, Digital marketing strategies, website set up services, web hosting and domain registration; contact Dynamic Technologies.



Related content