LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Enconding MP3 to lower bitrate (https://www.linuxquestions.org/questions/linux-software-2/enconding-mp3-to-lower-bitrate-334375/)

Gonto 06-16-2005 07:49 PM

Enconding MP3 to lower bitrate
 
Hi,

I've al my MP3 in 128 or 192 KBPS and i need to encode them to 32 KBPS (better if it's MP3PRO. If it's MP3 that's fine too) to play them in My MP3 Player.
In windows i used to use DBowerAmp or something like that. I want a GUI to do so if it existrs. My player doesn0t support OGG
I have the Lame library installed but i want a GUI

Thanks

cs-cam 06-16-2005 09:47 PM

I think transcode should be able to do that, it's mainly for video but it might help you.

Why not just use LAME though? It's really easy I use it to convert MP3s to 24kpbs to listen to on my mobile phone. This bash script takes a directory as an argument (where the MP3 files are) and it'll create a directory in there called output and chuck your files there. Couldn't be any easier if you wanted it to be :)
Code:

#/bin/bash

IFS='
'
FILES=`ls $1`

for file in $FILES
do

        echo "$file"
        mkdir $1/output &>/dev/null
        lame -b 32 -f -m m "$1/$file" "$1/output/$file"

done

echo
echo "FINISHED!"

exit 0


Skrid 07-20-2005 04:50 AM

first at all thank you cs-cam this was exact that what i needed.

If you want to copy your ID3-Tags to the new file, just add a id3cp to the script (by using the id3-lib)

Code:

#/bin/bash

IFS='
'
FILES=`ls $1`

for file in $FILES
do

        echo "$file"
        mkdir $1/output &>/dev/null
        lame -b 32 -f -m m "$1/$file" "$1/output/$file"
        id3cp "$1/$file" "$1/output/$file"

done

echo
echo "FINISHED!"

exit 0


here is my script, it converts all files in a directory to 96kbit-joint-stereo
Code:

#/bin/bash

IFS='
'
FILES=`ls $1`

for file in $FILES
do

        echo "$file"

        mkdir $1/output &>/dev/null
        lame -b 96 -h -m j "$1/$file" "$1/output/$file"
        id3cp "$1/$file" "$1/output/$file"
done

mv $1/output/* $1
rm -Rf $1/output

echo
echo "FINISHED!"

exit 0



All times are GMT -5. The time now is 06:31 AM.