Needed to quickly convert a bunch of wav’s to mp3 files.
ffmpeg -i audio.wav -acodec libmp3lame -ab 192k audio.mp3
- -i audio.wav – the input wav file
- -acodec libmp3lame – the codec use in converting the file. Can use “mp3”
- -ab 192k – bit rate to use. The higher the number, the better the quality, but larger the file. 192 kbit/s is pretty good quality audio.
- audio.mp3 – the name of the output file
Here is how to convert it to a ogg file:
ffmpeg -i audio.wav -acodec vorbis -aq 60 audio.ogg