Click to See Complete Forum and Search --> : mp3 format


elitewhiteghost
04-01-2004, 12:31 PM
I new to mp3,How can i format a mp3 to be burn to play i n my cd player in my truck do i need a mp3 decoder?

another_noob
04-01-2004, 12:47 PM
It depends on what cd writing software you are using. If you are using K3B and you have libmad and madplay installed then it will do the job of deoding it for you. If you are using cdrecord or cdrdao at the command line you will have to decode it first. If you download lame it can decode with the --decode option

lame --decode somefile.mp3

Hope this helps

elitewhiteghost
04-01-2004, 12:51 PM
I useing the gnome cdtoaster.

hlrguy
04-01-2004, 01:21 PM
Originally posted by elitewhiteghost
I new to mp3,How can i format a mp3 to be burn to play i n my cd player in my truck do i need a mp3 decoder?

Does your truck have an MP3 CD Player or a regular CD player. Either way, as mentioned, K3B can create a regular CD from MP3s, or you can create a Data CD that contains MP3s that you can listen to in an MP3 CD player. I haven't used GnomeToaster in years, however, it can do the same. The question I have is do you need an audio CD or a data MP3 cd.

hlrguy

elitewhiteghost
04-02-2004, 12:50 AM
A audio cd i need for my truck and i don't have a mp3 in my
truck.

hlrguy
04-02-2004, 11:23 AM
I just checked the xcdroast page, and it does not as yet have MP3/Ogg encoding/decoding. You will find k3b to be very easy to use. After it is installed, creating an audio CD is as simple as 'New Audio Project', then simply drag any MP3s to the list window and k3b will take care of it. Once you reach ~700 Meg, simply select 'Burn'.

hlrguy

elitewhiteghost
04-02-2004, 11:46 AM
So GnomeToaster and xcdroast are the same?

carbon-12
04-02-2004, 11:53 AM
You could also convert your MP3s into WAVs and burn them normally.

I think Audactity [http://audacity.sourceforge.net/] can do that.

movEAX_444
04-03-2004, 12:06 PM
I am a newb but I've written a script which takes all the mp3s in a directory, converts them to wav and puts those in /tmp/wav/ then burns them to a CD.. It is not flexible, I just wrote it as a one-time thing for when I needed a few directories of mp3s burnt (each dir is an album, that's how my mp3 archive is set up) make sure the CD is inside your cdrom drive before you run this. It uses 'lame' to decode but you can change that to whatever you use, mpg321 or sox probably does that. Normalizes them using 'normalize' and uses cdrdao to burn.

Change CDWRITER to whatever your writer is..

It's important that the directory you specify is absolute. so don't do "music/so-and-so" do "/home/abc/music/so-and-so"


# Automates the process of burning mp3s to a CD.
# Decodes the mp3s (makes them .wav) and then normalizes
# them.
#
# It then creates a TOC and uses cdrdao to burn them

# Usage: BurnMP3.sh directory-of-mp3s
#
#!/bin/sh


if [ "$#" -ne 1 ]
then
echo "Usage: $0 directory-of-mp3s"
exit 1
fi


AUDIO_DIR="$1"
WAVE="/tmp/wav"
TOC="/tmp/temp.toc"

CDRDAOFLAGS="--eject"
CDWRITER="0,1,0"

mkdir $WAVE

# Convert all mp3s to 16bit 44.1Khz wav files
echo "Decoding mp3s..."
for file in "$AUDIO_DIR"/*.mp3
do
lame --decode "$file" "$WAVE/`basename "/$file" .mp3`.wav"
done


# Make all the volumes similar
echo "Normalizing audio files..."
normalize -m "$WAVE"/*.wav


# Create Table Of Contents
echo "Creating TOC..."
echo CD_DA > "$TOC"
for file in "$WAVE"/*.wav
do
echo >> "$TOC"
echo TRACK AUDIO >> "$TOC"
echo AUDIOFILE \"$file\" 0 >> "$TOC"
done
echo >> "$TOC"


# Write CD using cdrdao
echo "Writing CD...make sure blank media is inserted into the drive"
cdrdao write --device "$CD_WRITER" "$CDRDAO_FLAGS" "$TOC"


be sure to empty out /tmp/wav when you're done.

elitewhiteghost
04-03-2004, 12:23 PM
Look like a good script.Maybe i make my own script up with cdrecord:)