Audio conversion with ffmpeg

Hi Guys!

Do you ever stuck with DVD’s or CD’s player while playing your favourite audio’s?
If yes, you are in right place. I will told you how to convert your audio formats with this simple trick in one go.

So, first you all need to know about ffmpeg.
ffmpeg : It is a free software which helps you to convert your audio formats.

To use this, you have to compile it on your system. Follow this below given link.

After compilation, you can convert any type of audio and video according to your requirement.

Basic command to run ffmpeg is

ffmpeg -i inputfilename..mp3 outputfilename.m4a

Here -i means input file.

So simple, isn’t it.

Well if you want to play with ffmpeg, like setting its bit rate, channel and frequency.
You need to compile ffmpeg with libfdk_aac library for high quality output.

I will tell you by giving some examples.

To convert .wav to .aac

ffmpeg -i song003.wav -c:a libfdk_aac -ar 44100 -ab 128000 -ac 2 wav.aac

ar to set frequency
ab to set bitrate
ac to channel like stereo or mono.

To convert .m4a to .aac

ffmpeg MediaCoder.m4a -c:a libfdk_aac -vbr 4 m4a.aac

vbr stands for variable bit rate. It may vary from 1 to 5. For further detail you can check this link.

To convert .wma to .aac

ffmpeg -i Kronke.wma -c:a libfdk_aac -vbr 4 wma.aac

Above given commands convert your audio file specifications to Stream #0:0: Audio: aac (LC), 44100 Hz, stereo, fltp, 128 kb/s.


Leave a Reply

Your email address will not be published. Required fields are marked *