FFMPEG Commands and usages
FFmpeg is a free software project that produces libraries and programs for handling multimedia data. FFmpeg includes libavcodec, an audio/video codec library used by several other projects, libavformat (Lavf), an audio/video container mux and demux library, and the ffmpeg command line program for transcoding multimedia files.
This article explains the different ffmpeg commands and their usages.
WAV - Waveform Audio File Format
Convert wav to mp3 with ffmpeg:
#ffmpeg -i audio.wav -acodec libmp3lame audio.mp3
Convert wav to ogg with ffmpeg:
#ffmpeg -i audio.wav -acodec libvorbis audio.ogg
Convert wav to acc with ffmpeg:
#ffmpeg -i audio.wav -acodec libfaac audio.aac
Convert wav to ac3 with ffmpeg:
#ffmpeg -i audio.wav -acodec ac3 audio.mp3
OGG - Free, open standard container
Convert ogg to mp3 with ffmpeg:
#ffmpeg -i audio.ogg -acodec libmp3lame audio.mp3
Convert ogg to wav with ffmpeg:
#ffmpeg -i audio.ogg audio.wav
Convert ogg to aac with ffmpeg:
#ffmpeg -i audio.ogg -acodec libfaac audio.aac
Convert ogg to ac3 with ffmpeg:
#ffmpeg -i audio.ogg -acodec ac3 audio.ac3
AC3 - Acoustic Coder 3
Convert ac3 to mp3 with ffmpeg:
#ffmpeg -i audio.ac3 -acodec libmp3lame audio.mp3
Convert ac3 to wav with ffmpeg:
#ffmpeg -i audio.ac3 audio.wav
Convert ac3 to aac with ffmpeg:
#ffmpeg -i audio.ac3 -acodec libfaac audio.aac
Convert ac3 to ogg with ffmpeg:
#ffmpeg -i audio.ac3 -acodec libvorbis audio.ogg