Gapless Playback: Encoder Delay and Padding in MP3, AAC, Opus and FLAC, Measured
Lossy encoders add samples before and after the music. Measured with ffmpeg: an MP3 without its Info frame starts 1105 samples late, and two halves joined back together leave 37.57 ms of silence at the seam. With the fields honoured, MP3, Opus and Vorbis join seamlessly, while AAC still left a gap of 20.16 ms until the track duration was honoured as well.












