[linux-audio-user] wav to mp3 converter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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.


[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux