Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 28 Aug 2014, 01:26
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Ripping, converting wav to (32 kbps mono) mp3 with RipperX
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [26 Posts]   Goto page: Previous 1, 2
Author Message
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 04 Apr 2006, 19:33    Post subject:  

no, I have no mlame here, just lame (Puppy 108)
Back to top
View user's profile Send private message Visit poster's website 
bugman


Joined: 20 Dec 2005
Posts: 2131
Location: buffalo commons

PostPosted: Tue 04 Apr 2006, 19:38    Post subject:  

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!
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 04 Apr 2006, 19:38    Post subject:  

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
Back to top
View user's profile Send private message Visit poster's website 
trapster


Joined: 28 Nov 2005
Posts: 1999
Location: Maine, USA

PostPosted: Tue 04 Apr 2006, 20:57    Post subject:  

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: Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Slacko AND lupu52 w/ fluxbox
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 04 Apr 2006, 21:12    Post subject:  

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
Back to top
View user's profile Send private message Visit poster's website 
bugman


Joined: 20 Dec 2005
Posts: 2131
Location: buffalo commons

PostPosted: Tue 04 Apr 2006, 21:29    Post subject:  

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...
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 04 Apr 2006, 21:40    Post subject:  

Quote:
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/
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 04 Apr 2006, 22:01    Post subject:  

Dotpup:
http://www.murga.org/~puppy/viewtopic.php?p=44615#44615
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11025
Location: Arizona USA

PostPosted: Wed 05 Apr 2006, 00:19    Post subject:  

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.
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Wed 05 Apr 2006, 01:04    Post subject:  

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:

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
Back to top
View user's profile Send private message Visit poster's website 
trapster


Joined: 28 Nov 2005
Posts: 1999
Location: Maine, USA

PostPosted: Wed 05 Apr 2006, 18:52    Post subject:  

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: Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Slacko AND lupu52 w/ fluxbox
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 2 of 2 [26 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0664s ][ Queries: 13 (0.0047s) ][ GZIP on ]