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 Tue 02 Sep 2014, 10:52
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 1 of 2 [26 Posts]   Goto page: 1, 2 Next
Author Message
Flash
Official Dog Handler


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

PostPosted: Tue 27 Dec 2005, 01:17    Post subject:  Ripping, converting wav to (32 kbps mono) mp3 with RipperX  

Flash wrote:
Would it be possible to add the choice of "32k mono" to RipperX's mp3 configuration? Currently the lowest choice of bitrate is 56k.

MU wrote:
you can try to add the option
-b 32 -m m
in the bottom-field of the mp3-options.

Mark

Mark, it works! At least in 1.0.7(b). It took me about 4 hours to get everything right, but I finally ripped the wav files from a CD to a temporary location on the hd, then converted them to (32 bps mono) mp3 and stored the mp3 files on a USB flash memory, all with RipperX. Very Happy

It looks like I was wrong about how slow RipperX is though. It took at least 12 minutes to convert a 700MB CD to mp3 files with RipperX. RealPlayer did the same thing in less than 4 minutes.

Possibly it's so slow because I have a setting wrong. I've included screenshots of the RipperX configuration settings I used. Perhaps someone can see what I did wrong. (I tried for 2 hours but could not find a way with mtPaint to combine all 4 screenshots into one composite image.)
Files.jpg
 Description   
 Filesize   18.5 KB
 Viewed   2078 Time(s)

Files.jpg

Mp3.jpg
 Description   
 Filesize   23.96 KB
 Viewed   2071 Time(s)

Mp3.jpg

Wav.jpg
 Description   
 Filesize   18.67 KB
 Viewed   2039 Time(s)

Wav.jpg

General.jpg
 Description   
 Filesize   23.14 KB
 Viewed   2069 Time(s)

General.jpg

Back to top
View user's profile Send private message 
MU


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

PostPosted: Tue 27 Dec 2005, 03:08    Post subject:  

I had no closer look at ripperX yet.
But often such programs work "sequentially", thats to say they convert one file after the other.
You could speed up things by converting them parallel, not sequentially.
I can't tell you, how much it will speed up things, just try yourself.

One solution:
Install the DragNDrop-icons:
http://www.murga.org/~puppy/viewtopic.php?t=4632

they have an icon to convert mp3 to wav.
This is the opposite of what you need, so patch it to your needs:
Open /usr/local/DragnDrop-Icons/scripts-mp3towav/action1 in leafpad.

replace
Code:

     filename &= ".wav"
     target = savefolder & "/" & filename
     shell("xterm -e \"lame --decode \\\"" & result &"\\\" \\\"" & target & "\\\"\" &")



with
Code:

     filename=cutright(filename , ".wav")
      filename &= ".mp3"
     target = savefolder & "/" & filename
     shell("xterm -e \"lame -b 32 -m m \\\"" & result &"\\\" \\\"" & target & "\\\"\" &")


Now you can rip a CD with ripperX as .wav, and then drag the .wav-Files from ROX to the icon.
Then all files will be converted at same time to mp3.

Mark
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


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

PostPosted: Wed 28 Dec 2005, 01:17    Post subject:  

Thanks Mark.

RipperX does a fine job of converting wav files to mp3, taking approximately 15 seconds to convert a 3 minute track. Where it seems really sloooow is the step where it rips the wav files from the CD to the hd. Probably 95% of the time was spent ripping the track -- from a brand-new CD -- and 5% converting it to mp3. Sad
Back to top
View user's profile Send private message 
MU


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

PostPosted: Wed 28 Dec 2005, 01:23    Post subject:  

cdparanoia --help

-S --force-read-speed <n> : read from device at specified speed

So in ripperX try the option
-S 12
in config - wav - extra options.
Mark
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Wed 28 Dec 2005, 04:10    Post subject:  

In the Puppy recorder I save in Wav format (for pod cast) - do we have an easy way to save or convert to MP3 or ogg vorbis? (I normally have to download Audacity to do this) The best way to find Audacity I believe is at grafpup.com or is it on the wiki pages too?

The reason I ask - a lot of people use MP3 players (which is a compressed format) ogg vorbis is higher compression and better sound and open source but not all MP3 players support playing in this. Ideally I would like to offer pawed casts in triplicate:

wav - for CD players and Windows users players
mp3 - Windows and Mp3 players
ogg vorbis - for elite Puppy users, with speek potential for future usage ) more compression - optimised for speech

Perhaps even a fourth format .au for SUN solaris and Unix users

Cool

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Guest
Guest


PostPosted: Wed 28 Dec 2005, 09:27    Post subject:  

lame -m mono --preset 24 in.wav out.mp3

lame -h
Back to top
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Wed 28 Dec 2005, 11:24    Post subject:  

Would that be G2?
Smile

Anyways . . .
This deserves its own wiki page - what else can we convert? And
http://puppylinux.org/wikka/ConvertingFormats

Check out this - one of the hidden gems in Puppy
Start / utilities / calculators / tkconvert

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Wed 28 Dec 2005, 21:24    Post subject:  

you could write a script, and drag wav files to the script (or shortcut to the script)

#!/bin/sh
lame -m mono --preset 24 "$1" /tmp/out.mp3

or

#!/bin/sh
rxvt -e lame -m mono --preset 24 "$1" /tmp/out.mp3

this will create out.mp3 in /tmp

you may prefer a higher or lower bitrate ... or a different preset, or to set your own parameters
Back to top
View user's profile Send private message 
bugman


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

PostPosted: Tue 04 Apr 2006, 17:41    Post subject:  

Quote:
you could write a script, and drag wav files to the script (or shortcut to the script)

#!/bin/sh
lame -m mono --preset 24 "$1" /tmp/out.mp3

or

#!/bin/sh
rxvt -e lame -m mono --preset 24 "$1" /tmp/out.mp3

this will create out.mp3 in /tmp

you may prefer a higher or lower bitrate ... or a different preset, or to set your own parameters



Is there a way to do this so the mp3 keeps the name of the original wav, instead of becoming "out.mp3"?


Btw, the Drag 'n' Drop patch shown above doesn't seem to work, I get a brief flurry of activity (a window opens and closes quickly) but no mp3 is made, I must be doing something wrong...
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, 18:02    Post subject:  

try multiconvert:
http://www.murga.org/~puppy/viewtopic.php?t=3755
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, 18:55    Post subject:  

Multiconvert, perl downloaded and multiconvert run. More windows open and close very quickly but again no mp3s are made. Is my computer allergic to mp3s? Crikey...
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:04    Post subject:  

what for errors do you get when running
lame -m mono --preset 24 /root/test.wav /tmp/out.mp3
in a consolewindow?
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:27    Post subject:  

No errors, worked fine.

When I try to use wildcards in a lame command line I get excess arg errors.
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:29    Post subject:  

btw, lame appears to have a script called mlame to handle batches, but it doesn't work when I try it. Is it included in the puppy version of lame?
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:31    Post subject:  

what do you enter exactly?
What error do you get exactly?

hmm.. did you install the xterm I mentioned in the multiconvert-posting?
I think with Puppys xterm it does not work.
Mark
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [26 Posts]   Goto page: 1, 2 Next
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.0827s ][ Queries: 12 (0.0093s) ][ GZIP on ]