Page 1 of 1

Question about gapless playback

Posted: August 11th, 2019, 11:03 am
by bigzero2201
I have read that to get gapless playback working in mpd I need to firstly encode my files as mp3, and secondly I need to encode them with lame so that it adds a special header to the file. Is this correct?

Re: Question about gapless playback

Posted: August 12th, 2019, 9:58 am
by max
Not quite.
If you want to have MP3 files, then you should use LAME, because only LAME adds metadata to the files which allow MPD to do gapless MP3 playback.
But that doesn't imply that you must use MP3 for gapless playback. Other codecs are always gapless (Vorbis!), and don't need this kind of metadata.

So, actually, MP3 is a bad choice for gapless playback, but its problems can be solved. But in any case, it's still better to use other codecs which don't have this problem in the first place. There are other reasons not to use MP3; MP3 is probably the worst choice of all. MP3 was good 25 years ago, but it's obsolete legacy techology these days. Hey, (Ogg) Vorbis is nearly 20 years old, and people still use MP3?