Recently I splashed out on an iRiver H340 music player. Which means my little computer has been constantly ripping my CDs to OGG format for the last three weeks. However I have noticed two problems.

(1) Sound-juicer sometimes cuts off the beginning of tracks.

The first OGG file will start some random number of seconds into the music, say for example, 27 seconds. The end of the file would then contain the first 27 seconds of the next track, and then the next track begins at 27 seconds into the next tune. And so on.

The delay doesn't happen on all CDs (but it's repeatable - the same CD will give the same error no matter how many times I've tried). There seems no way of predicting which CDs will rip properly and which will cut off the track beginnings. And the length of the delay seems random too. I have a DVD drive and a CD drive and it doesn't matter which one I use.

Doing it "manually" with cdparanoia and then oggenc has worked fine on the problem CDs. But this doesn't pick up the CDDB information automatically and it's just a big pain to rename everything. I wouldn't mind but I have hundreds of CDs I want to rip and so I want a totally automatic solution.

Is there a fix for this?

(2) How do you "concatenate" OGG files?

My iRiver player's one fault (it's brilliant otherwise) is that it can't play two tracks without a gap between them. So for dance mix tapes and some classical music it's not great. This would not be a problem for me if I knew how to just combine several OGG files into one (I normally listen to these things in one session anyway). Sound-juicer can't do this though.

What I want is a concatenate command that can deal with OGGs. A command-line solution would be fine for this problem, because I'd have to manually rename the files anyway.

Ideas anyone? I'm using Debian Sarge, though I haven't apt-get upgraded for several weeks. Guess that's one thing to try as soon as I get home from work.