---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# lame

> Encode WAV to MP3 files.
> More information: <https://svn.code.sf.net/p/lame/svn/trunk/lame/USAGE>.

- Encode an audio file to MP3 using CBR 320 kbit/second:

`lame -b 320 {{path/to/file}}.wav {{path/to/output}}.mp3`

- Encode an audio file to MP3 using the V0 preset:

`lame -V 0 {{path/to/file}}.wav {{path/to/output}}.mp3`

- Encode an audio file to AAC:

`lame {{path/to/file}}.wav {{path/to/output}}.aac`
