Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to:

  1. Rip a CD
  2. Set ID3 tags
  3. Create snippets (45 seconds)
  4. Add a 5sec fadeout at the end (40s-45s)
  5. Convert to mp3

I've tried several tools now (Goobox, Grip, lame, ecasound, vorbis-tools, abcde...) but i couldnt find a way to achieve all those points.

The problem is: ID3 tags are lost during conversion in ecasound.

Any idea how to solve this?

share|improve this question

migrated from stackoverflow.com Nov 18 '09 at 14:19

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers

If you already have a process that's close to working, all you need to do is find a commandline tagger that can "copy" tags from one file to another. id3cp from the id3lib package might be what you need.

If I were to do this, I'd rip the CD to WAV files (in EAC, because I've never seen anything compare to its accuracy with a good drive), then run a script that does the following pseudocode. I'd probably select the clips manually, because programmatically grabbing 45 useful seconds out of an arbitrarily-long track won't always work. But here's the basic process:

for each *.WAV:
   1. convert <name>.wav to <name>.mp3
   2. create a 45-second <name>.snippet.wav from <name>.wav
   3. apply fade-out to <name>.snippet.wav
   4. convert <name>.snippet.wav to <name>.snippet.mp3
   5. apply id3 tags to both <name>.mp3 and <name>.snippet.mp3

Steps 1 and 4 can be accomplished with the lame commandline encoder.

Steps 2 and 3 can be done with sox or ecasound (you might be able to combine them into a single command).

Step 5 can be done with id3v2, mid3v2 (from the excellent mutagen python tagging library), mp3info (if you just want ID3v1 tags), or some other commandline tagger -- essentially your script would call the tagger twice, once for each MP3 created in this pass of the for-loop.

This process has the advantage of not creating transcoded snippets, since you haven't encoded to MP3, then decoded and re-encoded during the trim-and-apply-fadeout process.

share|improve this answer
add comment

From the sound of your question, youre not trying to create a program to accomplish this. That being said, I would suggest this post be moved to superuser.com where others more familiar with this type of software could be of assistance.

If you are looking to do this programmaticlly, please let us know and we would be happy to help.

What distro are you running, some people have been able to get media monkey to work in deb/ubuntu.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.