How-To Example Code

Lame Usage Examples

We use Lame for converting user uploaded audio files into mp3s for streaming or user download, but we like to keep them of the same quality, so we convert any audio types that are not 128kbps down to 128kbps. We also use Lame to in conjunction with our Video conversion software, Mencoder

If you want to convert an audio file to a 128kbps, 44khz MP3 file, use the following code:

/path/to/lame --tt "$title" --tl "$album" --ta "$band" --tc "$website" --mp3input --resample 44 -b 128 "$filein" "$fileout"
Site hosted on Zoob Internet