Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Batch or one-time convert APE to MP3 via script UNIX
I've written a Ruby script that batch converts ape format files straight to individual ID3-tagged mp3 files for adding to your iTunes library. It uses all free software to do so. The muscle work is done by:
  • Mac ape conversion tool (ape => wav) named SuperMMX. There's no MacPorts version of this utility, so you have to hand install. SuperMMX - Google translation.
  • lame mp3 encoder using --preset extreme to convert to monolithic mp3 (available from MacPorts)
  • mp3splt to read the ape cue files and split the monolithic mp3 into tracks with ID3 tags. (also in MacPorts)
Notes:
  • mp3split uses the -f (frames) setting assuming a variable bitrate. If you tweak the lame settings, then you probably want to read the man page for mp3split and tweak that, too.
  • I've included status bars for conversion and informative output.
  • I've also included fairly robust error checking, but I knocked it out pretty quick. If you run into errors I overlooked, let me know and I'll add them.
  • Contains a verbose mode so you can see exactly what's going on behind the scenes.
  • Uses ansi term colors for easy reading (oooo ahhh colors).
  • Provides a --clean option to move the old files (ape, cue, wav, monolithic mp3) to the trash, leaving only the desired mp3 tracks.
  • --test mode if you just want to see what happens.
  • Complete usage information.
Needed ruby modules:
  • rubygems
  • optparse
  • ostruct
  • term/ansicolor
  • pathname
  • fileutils
I believe all of these packages are in Leopard by default except term-ansicolor.

I just did this pretty quickly, so I could have overlooked a thing or two. Please let me know if I did. As always, YMMV. However, I've successfully converted single ape files as well as over 80 ape files in a batch conversion with no problems.

[robg adds: A queue review site commenter noted the availability of Max, a free GUI tool to do the same thing. I'm running the script because I haven't tested either solution, so I'm not sure if one does things the other can't. Also, a script can more easily be run remotely, in case you're doing this over a network.]
    •    
  • Currently 1.60 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (5 votes cast)
 
[15,431 views]  

Batch or one-time convert APE to MP3 via script | 7 comments | Create New Account
Click here to return to the 'Batch or one-time convert APE to MP3 via script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Batch or one-time convert APE to MP3 via script
Authored by: keytohwy on Mar 17, '08 08:17:09AM

xACT does the same thing in a GUI as well. It also uses LAME mp3 encoding, etc.

keytohwy



[ Reply to This | # ]
Batch or one-time convert APE to MP3 via script
Authored by: cosmin on Mar 17, '08 11:51:32AM

ToolPlayer can batch convert APE to MP3 as well... no need to install anything.



[ Reply to This | # ]
Batch or one-time convert APE to MP3 via script
Authored by: 82times on Mar 17, '08 01:26:38PM

Yes, but those two apps (ToolPlayer and xACT) don't seem to interpret .cue files? That is, yes, they will convert to mp3 or aac, but cannot split up the file into individual tracks.

...unless I've missed something in either ToolPlayer or xACT?



[ Reply to This | # ]
Batch or one-time convert APE to MP3 via script
Authored by: ornette14 on Mar 18, '08 04:40:30AM
xld will do this and handle cue files.

http://tmkk.hp.infoseek.co.jp/xld/index_e.html




[ Reply to This | # ]
Batch or one-time convert APE to MP3 via script
Authored by: asmeurer on Mar 18, '08 04:32:19PM

XLD will also do lossless encoding to Apple Lossless or FLAC.



[ Reply to This | # ]
Batch or one-time convert APE to MP3 via script
Authored by: krunk7 on Apr 04, '08 09:22:09AM

Those all look nice, wish I'd have found them when I set out to write this. Though I did enjoy the coding. :)



[ Reply to This | # ]
Batch or one-time convert APE to MP3 via script
Authored by: Sir Doyle on Jun 20, '08 07:26:55AM
xACT will do this

xACT

[ Reply to This | # ]