FFmpeg is convert audio format
sudo add-apt-repository ppa:mc3man/trusty-media
And confirm the following message by pressing <enter>:
Also note that with apt-get a sudo apt-get dist-upgrade is needed for initial setup & with some package upgrades More info: https://launchpad.net/~mc3man/+archive/ubuntu/trusty-media Press [ENTER] to continue or ctrl-c to cancel adding it
Update the package list.
sudo apt-get update sudo apt-get dist-upgrade
Now FFmpeg is available to be installed with apt:
sudo apt-get install ffmpeg
Example to Convert audio format:
ffmpeg -i foo.wav -vn -acodec libfaac -ab BITRATE output.mp4
***********To be on safe side I removed ffmpeg completely before: ***********
sudo apt-get --purge remove ffmpeg
sudo apt-get --purge autoremove
sudo apt-get install ppa-purge
sudo ppa-purge ppa:jon-severinsson/ffmpeg
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ffmpeg
****
1.find version : $ ffmpeg –version
2. install : $ sudo apt-get install ffmpeg
3. for help : $ ffmpeg –help
4. example : $ ffmpeg -i filename.mp3 newfilename.wav
Ok that was easy, but how can we determine what are the supported file types that we can convert from/to? That is as simple as typing
ffmpeg -formats
and
ffmpeg -codecs
and all supported forms will be displayed.
You can use one input file to get several different output files by just entering the name and the prefix like this:
ffmpeg -i filename.mp3 newfilename.wav newfilename.ogg newfilename.mp4
This will result in converting 3 output audio files (wav,ogg,mp4) from one mp3 file. Alternatively, you can set the desired codec using the -c command like this: