Re: Opus ReplayGain / Gapless? Reply #25 – 2020-06-04 21:30:41 There are no "hacks", no special hoops to jump through to make Opus play gapless, in the sense that there is no silence between one track and the next. The way that it is encoded means that tracks can play back continuously without any tags or special processing. libopusfile is a library that does this (more or less) automatically. Programs that don't use libopusfile are a little more complex to write and apparently some of them did not play back tracks gaplessly, but that could be considered a bug of the player.The lossy processing that Opus uses means that the value of an encoded sample can depend on the value of several previous samples. This does not automatically happen at the start of a track, so that there is potentially a small glitch in the audio between the last sample of one track and the first sample of the next. This is not a gap as such and it isn't usually audible, or at least not noticeable. The examples where it is audible are not exactly typical music. This isn't an issue which is unique to Opus, but its LPC and built-in resampling mean it can be much more significant in Opus. I went through half a dozen gapless albums tonight and couldn't spot any glitches.libopusenc is a relatively new library for encoding that includes functions to encode the start of one track relative to the end of the previous track so that there is no such glitch. To do that special processing it must be aware that the two tracks are "continuous", so the input tracks cannot be handled as separate files. opusenc in opus-tools 0.2 uses libopusenc, but only processes individual files so not much help. I'm not sure that there any issues left when the tracks are encoded using the correct LPC extension code from libopusenc, but that's a moot point if there are no encoders doing it. Maybe I'm missing something?