Re: [linux-audio-user] wav to mp3 converter

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-user] wav to mp3 converter
From: Malcolm Baldridge (linux-audio_AT_paypc.com)
Date: Sun May 30 2004 - 12:38:16 EEST


> Okay, cool! Lame is gonna do the trick. I did a few
> trial conversions using a command line similar to what
> you used and I'm getting a really good compression rate
> and totally acceptable quality. Bravo!

Keep in mind you can define id3 tags, and all sorts of things.

LAME works very well.

I use FLAC to archive losslessly compressed audio, and VBR LAME-encoded
stuff for rapid retrieval.

BTW, you can pass a scaling factor to LAME to normalise your samples.

If you have sox installed, you can run a prepass with sox to even tell you
what the scaling value should be! :)

I use a script like the following for batch encoding:

#!/bin/bash
# define min/max VBR bitrates for the stream
MAXRATE=256
MINRATE=64
ARTIST="Megarock Gigadeth"
declare -i newscaleint

newscale=`sox "$1" -e stat -v 2>&1 | cut -b1-4`
newscaleint=`echo ${newscale} | cut -f1 -d\.`

if [ ${newscaleint} -gt 20 ] ; then newscale="20.0"; else
if [ ${newscaleint} -lt 1 ] ; then newscale="1.00"; fi ; fi

if [ "${newscale}" == "1.00" ] ; then
{
lame -S --silent --nohist -q 2 -h --vbr-new -b ${MINRATE} -B ${MAXRATE} \
--tt "Music Track" --ta "${ARTIST}" --ty `date +%Y` --add-id3v2 \
--pad-id3v2 "$1" "$2"
}
else
{
lame -S --silent --nohist -q 2 -h --vbr-new -b ${MINRATE} -B ${MAXRATE} \
--tt "Music Track" --ta "${ARTIST}" --ty `date +%Y` --add-id3v2 \
--pad-id3v2 --scale ${newscale} "$1" "$2"
}
fi

=MB=

-- 
A focus on Quality.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sun May 30 2004 - 12:34:20 EEST