Contents[Hide]

This article describes some basic audio format conversions using ffmpeg utility. All ffmpeg format conversion commands use default ffmpeg setting. User should alter below commands to increase or decrease audio quality with additional ffmpeg options. All commands are performed on the following environment:

OS: Debian 6.0 Squeeze ( with multimedia repository, package: libavcodec52 )

Kernel: 2.6.32-5.686

1. Audio

1.1. WAV - Waveform Audio File Format

1.1.1. wav to mp3

Convert wav to mp3 with ffmpeg:

ffmpeg -i audio.wav -acodec libmp3lame audio.mp3

1.1.2. wav to ogg

Convert wav to ogg with ffmpeg:

ffmpeg -i audio.wav  -acodec libvorbis audio.ogg

1.1.3. wav to aac

Convert wav to acc with ffmpeg:

ffmpeg -i audio.wav  -acodec libfaac audio.aac

1.1.4. wav to ac3

Convert wav to ac3 with ffmpeg:

ffmpeg -i audio.wav -acodec ac3 audio.mp3

1.2. OGG - Free, open standard container

1.2.1. ogg to mp3

Convert ogg to mp3 with ffmpeg:

ffmpeg -i audio.ogg -acodec libmp3lame audio.mp3

1.2.2. ogg to wav

Convert ogg to wav with ffmpeg:

ffmpeg -i audio.ogg audio.wav

1.2.3. ogg to aac

Convert ogg to aac with ffmpeg:

ffmpeg -i audio.ogg  -acodec libfaac audio.aac

1.2.4. ogg to ac3

Convert ogg to ac3 with ffmpeg:

ffmpeg -i audio.ogg -acodec ac3 audio.ac3

1.3. AC3 - Acoustic Coder 3

1.3.1. ac3 to mp3

Convert ac3 to mp3 with ffmpeg:

ffmpeg -i audio.ac3 -acodec libmp3lame audio.mp3

1.3.2. ac3 to wav

Convert ac3 to wav with ffmpeg:

ffmpeg -i audio.ac3 audio.wav

1.3.3. ac3 to aac

Convert ac3 to aac with ffmpeg:

ffmpeg -i audio.ac3  -acodec libfaac audio.aac

1.3.4. ac3 to ogg

Convert ac3 to ogg with ffmpeg:

ffmpeg -i audio.ac3 -acodec libvorbis audio.ogg

1.4. AAC - Advanced Audio Coding

1.4.1. aac to mp3

Convert aac to mp3 with ffmpeg:

ffmpeg -i audio.aac -acodec libmp3lame audio.mp3

1.4.2. aac to wav

Convert aac to wav with ffmpeg:

ffmpeg -i audio.aac audio.wav

1.4.3. aac to ac3

Convert aac to ac3 with ffmpeg:

ffmpeg -i audio.aac  -acodec ac3 audio.ac3

1.4.4. aac to ogg

Convert aac to ogg with ffmpeg:

ffmpeg -i audio.aac -libvorbis audio.ogg

Free Linux eBooks

Do you have the right skills?

Our IT Skills Watch page reflects an up to date IT skills demand leaning towards the Linux and Unix environment. We have considered a number of skills and operating systems.

See the result...

Linux Online Training

Learn to run Linux servers and prepare for LPI certification with Linux Academy. 104 available video lessons with PDF course notes with your own server!

Go to top