Convert Mp3 Audio to Aac M4A Audio

It may be easy, but I'm new to ffmpeg and struggle with converting an mp3 audio to an aac audio file with .m4a file extension using ffmpeg on the command line (Win10).

input: Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s

desired output: Stream #0:0: Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s

The output details are taken from a file that works for my requirements and that was created using Audacity ("Export: M4A (AAC) files (FFmpeg)"). The output file should have .m4a file extension, but I could change that in another step if that's not possible.

I assume that the quality of the output remains (at least almost) the same. If that's not true, please let me know.

Any help is much appreciated!

1

1 Answer

If you want to convert with the best quality and your ffmpeg have libfdk_aac (Fraunhofer AAC encoder) you can use command:

ffmpeg -i inFile.mp3 -c:a libfdk_aac outFile.m4a

otherwise, you can use the command:

ffmpeg -i inFile.mp3 -c:a aac -b:a 192k outFile.m4a

with bitrate control

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest