· How can I create files that will play back gaplessly on the player?
(Entry last updated on August 21st, 2002)
There are a few ways to go about this, and none of them are perfect.
Recent versions of the LAME and BladeEnc encoders have options for encoding your MP3s gaplessly. Reportedly, there is still a very tiny, almost imperceptible blip between some tracks when doing this.
According to those who have experimented with the "nogap" parameter in LAME, it only works if you do the following:
Whatever you do, it's important that you read the documentation for your encoder very closely to make sure you are using the correct command line parameters.
- You must have all of the wave files pre-ripped on your hard disk, then put them all on the same command line to LAME. You cannot do them individually, they must be done as a group. This prevents you from being able to do it with most of the automated ripping packages since they do the rip/encodes one at a time. An example of a proper command line would be:
LAME --nogap track01.wav track02.wav track03.wav
- Because of the command-line limitations, you will probably have to hand-tag the files after the fact. The tagging should not affect gapless playback on the car player.
- LAME disables VBR headers when it encodes with the nogap parameter. It seems to do this on purpose, perhaps because VBR headers cause problems with gapless playback on certain players. Those who have tried adding the VBR headers back in with an after-the-fact VBR fixing tool have reported that it does cause a glitch to appear between tracks on playback. However, it was recently reported that that the problem might have simply been due to a bug in VBRFix which truncates the last frame of the files it fixes. The Rio Car player should (in theory) be able to play the files gaplessly even if they have VBR headers added as long as the headers were added properly.
- Because adding VBR headers might possibly cause a problem, but they are required if you want to be able to FF/REW properly in a VBR file, then you might choose to just not even use VBR at all. It's probably easier to encode to a fixed (CBR) bit rate for the albums you want gapless. To achieve the same quality as VBR in a CBR file, you should use a high bit rate such as 160, 192, or higher. This means that the popular parameter "alt preset standard" cannot be used, although "alt preset cbr 192" would be just fine.
Here are some other ways to create gapless MP3 files:
- Rip your CD as one huge single track (usually done by selecting only the last track then editing the track start time in the ripper software). Encode it and listen to it this way, as one huge track. This will always work perfectly every time, but is very unwieldy.
- Rip your CD as one huge single track, encode it as one huge MP3, then hand-split the MP3 into individual tracks. Split it cleanly at frame boundaries. The GapKiller utility (available from the Download section of this site) has a feature to help you do this.
This method isn't perfect, because MP3 frames are not fully independent of one another. If a file is split at a frame boundary, some of the data from the previous file is not carried over when the next file starts playing. This creates a tiny "blip" at the transition point between two songs. It's much less annoying than an actual gap of silence, though.
This also causes a problem with VBR headers, which causes the split files to display incorrect seek times. So you might wish to only use this method on CBR files.
- Rip and encode your CD normally, as individual tracks. Then hand-trim frames off of the beginning and end of adjacent file pairs. This method is tricky, because you must use trial-and-error. You're trimming some valid audio data as well as trimming silence, and it will take several tries before you can make the transition sound smooth. The GapKiller utility (available from the Download section of this site) can help you do this by making this trial-and-error previewing as painless as possible.
This last technique seems to work quite well, although it's still not 100 percent perfect. There are some song pairs which simply refuse to trim into a smooth set. But you can certainly make every song pair listenable, and you can get about 95 percent of them sounding great.