Ripping, converting wav to (32 kbps mono) mp3 with RipperX

How to do things, solutions, recipes, tutorials
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#16 Post by MU »

no, I have no mlame here, just lame (Puppy 108)

bugman

#17 Post by bugman »

Actually, I just learned something--I can drag and drop my mp3s to /usr/bin/lame and a good mp3 gets made!

My problem is I have over 100 wavs I need to convert, with complex names I wish to keep. It's gonna be a helluva lot easier dnd'ing 100 files than it is to type all that out in a terminal/ Think I'll go that way...

Thanks for your help!

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#18 Post by MU »

you can check, if you installed another version of lame, that causes problems.

which lame

This should report:
/usr/bin/lame

Now look in /root/.usr/bin/ if there also is a lame.
If yes, then it is not puppys lame.
delete that and reboot ( really: /root/.usr/bin/lame ,NOT /usr/bin/lame ).
Then you have back puppys lame, that is in usr_cram.fs.
Mark

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#19 Post by trapster »

Bugman,

In the directory with your .wav's try this:

for i in *.wav; do lame -h $i `basename $i .wav`.mp3; done

This would save the titles also.
If you have spaces in the titles try this before you convert them (it will replace spaces with underscores):

for i in *.wav; do mv "$i" `echo $i | tr ' ' '_'`; done


I use this little script for burning my cd's.

#!/bin/bash
cd /mnt/home/music/mp3
echo "If the files have spaces in the names, we'll remove them now"
sleep 2
for i in *.mp3; do mv "$i" `echo $i | tr ' ' '_'`; done
echo "Now we need to convert the .mp3's to .wav files"
sleep 2
for i in *.mp3; do lame --decode $i `basename $i .mp3`.wav; done
echo "Files have been converted to .wav"
sleep 2
echo "Now we will burn them to a disc, make sure there is a blank disc in the burner"
echo "The disc tray will open when the burning is complete"
cdrecord dev=ATAPI:0,0,0 -eject speed=2 -pad -audio -text -useinfo *.wav
echo "If the tray has opened, the burn is complete"
sleep 2
echo "Now we'll delete the .wav files that were created for burning"
rm *.wav
sleep 2
echo "The burning process is now complete"


Now if I can only figure out how to extract the titles and artists into an .inf file, I could also have cd text!!
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#20 Post by MU »

for i in *.wav; do lame -h $i `basename $i .wav`.mp3; done

This should with spaces, too:

ls *.wav | while read i; do lame -h "$i" `basename "$i" .wav`.mp3; done

This "piping" avoids problems with spaces.
Mark

bugman

#21 Post by bugman »

For whatever reason, neither of those 2 scripts worked. More excess args errors. Thanks everyone for giving it a go, I'm just going to listen to the music instead of fussing with it.

I know there's probably another thread for this sort of thing, but one of the very few Windows programs I'm longing for at the moment is called RazorLame, and I think you can guess what it does...

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#22 Post by MU »

Now if I can only figure out how to extract the titles and artists into an .inf file, I could also have cd text!!
this looks interesting:
http://www.ibiblio.org/mp3info/

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#23 Post by MU »


User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#24 Post by Flash »

Hey, that looks like a possibe solution to the problem of cataloging my mp3 books, except I need to adjust the rank of the fields (I want the Artist/Author most important, followed by the Album/Book. The track info is unimportant for audio books.) Also I'd need to add new Genres.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#25 Post by MU »

gmp3info is intended to modify the entries IN the .mp3-file.

If you want to get these informations to be used in a database, you would need to write a script, that uses the comandlineversion (mp3info).

The Help-page explains, what parameters you have to add, to extract single fields from the ID3-tags (the text in the mp3).

So you could write such a script (just structure, not executable):

Code: Select all

for each mp3file in thisfolder
 values = mp3info mp3file -autor -title -album
 echo values >> database.txt
end for
If you would write the script so, that it creates CSV (Comma Seperated Values), then you could import the database.txt to gnumeric or OpenOffice Calc:
Jackson Michael;Thriller;Greatest Hits

I'm currently too tired to write that.
But if you find out the corrected syntax for mp3info and tell me, how an example-CSV should look like, I could write a small Puppybasic-program tomorrow.

Mark

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#26 Post by trapster »

This is the .inf file that cdroast creates in the directory of the mp3 or wav that you're burning with cdtext. The only problem is I usually have to type everything into cdroast for the text.

#
# X-CD-Roast 0.98alpha15 - INF-File
# created: Mon Mar 6 17:38:31 2006
# by: root@puppypc
#
file = "/mnt/home/music/mp3/Metallica_-_Turn_The_Page.wav"
title = "Turn the Page"
artist = "Metallica"

I believe this is for tao only which is only what I have tried. I think I read somewhere that dao uses a table of contents or something.

It would be nice to have a script that would create the .inf file for each song for the cdtext.

It would be ideal to pick your songs from an .mp3 directory and have it convert/burn/include the cdtext all at once.
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

Post Reply