HOME

TheInfoList



OR:

Gapless playback is the uninterrupted playback of consecutive audio tracks, such that relative time distances in the original audio source are preserved over track boundaries on playback. For this to be useful, other artifacts (than timing-related ones) at track boundaries should not be severed either. Gapless playback is common with compact discs,
gramophone record A phonograph record (also known as a gramophone record, especially in British English) or a vinyl record (for later varieties only) is an analog sound storage medium in the form of a flat disc with an inscribed, modulated spiral groove. The g ...
s, or tapes, but is not always available with other formats that employ compressed digital audio. The absence of gapless playback is a source of annoyance to listeners of music where tracks are meant to
segue A segue ( , ; ) is a transition from one topic or section to the next. In music In music, ''segue'' is a direction to the performer. It means ''continue (the next section) without a pause''. The term ''attacca'' is used synonymously. For writ ...
into each other, such as some
classical music Classical music generally refers to the art music of the Western world, considered to be #Relationship to other music traditions, distinct from Western folk music or popular music traditions. It is sometimes distinguished as Western classical mu ...
(
opera Opera is a form of History of theatre#European theatre, Western theatre in which music is a fundamental component and dramatic roles are taken by Singing, singers. Such a "work" (the literal translation of the Italian word "opera") is typically ...
in particular),
progressive rock Progressive rock (shortened as prog rock or simply prog) is a broad genre of rock music that primarily developed in the United Kingdom through the mid- to late 1960s, peaking in the early-to-mid-1970s. Initially termed " progressive pop", the ...
, concept albums,
electronic music Electronic music broadly is a group of music genres that employ electronic musical instruments, circuitry-based music technology and software, or general-purpose electronics (such as personal computers) in its creation. It includes both music ...
, and live recordings with audience noise between tracks.


Causes of gaps


Playback latency

Various software, firmware, and hardware components may add up to a substantial delay associated with starting playback of a track. If not accounted for, the listener is left waiting in silence as the player fetches the next file (see harddisk access time), updates metadata, decodes the whole first block, before having any data to feed the hardware buffer. The gap can be as much as half a second or more — very noticeable in "continuous" music such as certain classical or dance genres. In extreme cases, the hardware is even reset between tracks, creating a very short "click". To account for the whole chain of delays, the start of the next track should ideally be readily decoded before the currently playing track finishes. The two decoded pieces of audio must be fed to the hardware continuously over the transition, as if the tracks were concatenated in software. Many older audio players on
personal computer A personal computer, commonly referred to as PC or computer, is a computer designed for individual use. It is typically used for tasks such as Word processor, word processing, web browser, internet browsing, email, multimedia playback, and PC ...
s do not implement the required buffering to play gapless audio. Some of these rely on third-party gapless audio plug-ins to buffer output. Most recent players and newer versions of old players now support gapless playback directly.


Compression artifacts

Lossy audio compression In information theory, data compression, source coding, or bit-rate reduction is the process of encoding information using fewer bits than the original representation. Any particular compression is either lossy or lossless. Lossless compression ...
schemes that are based on overlapping time/frequency transforms add a small amount of padding silence to the beginning and end of each track. These silences increase the playtime of the compressed audio data. If not trimmed off upon playback, the two silences played consecutively over a track boundary will appear as a pause in the original audio content. Lossless formats are not prone to this problem. For some audio formats (e.g.
Ogg Vorbis Vorbis is a free and open-source software project headed by the Xiph.Org Foundation. The project produces an audio coding format and software reference encoder/decoder (codec) for lossy audio compression, libvorbis. Vorbis is most common ...
), where the start and end are precisely defined, the padding is implicitly trimmed off in the decoding process. Other formats may require extra
metadata Metadata (or metainformation) is "data that provides information about other data", but not the content of the data itself, such as the text of a message or the image itself. There are many distinct types of metadata, including: * Descriptive ...
for the player to achieve the same. The popular MP3 format defines no way to record the amount of delay or padding for later removal.Despite this, there are encoders which store the amount of padding introduced in
metadata Metadata (or metainformation) is "data that provides information about other data", but not the content of the data itself, such as the text of a message or the image itself. There are many distinct types of metadata, including: * Descriptive ...
to allow gapless playback. This can only be used if the playback software is able to interpret the metadata information.
Also, the encoder delay may vary from encoder to encoder, making automatic removal difficult. Even if two tracks are decompressed and merged into a single track, a pause will usually remain between them.


CD recorded in TAO mode

Audio-CDs can be recorded in either ''disc at once'' (DAO) or ''track at once'' (TAO) mode. The latter is more flexible, but has the drawback of inserting approximately 2 seconds of silence between tracks. Disc at once (DAO) mode allows recording the entire CD in one continuous session, without any pauses between tracks. This mode allows for a playback without an interruption between songs. DAO is commonly used for live recordings, DJ mixes, or concept albums where tracks blend into each other.


Ways to eliminate the gaps


Precise gapless playback

As opposed to
heuristic A heuristic or heuristic technique (''problem solving'', '' mental shortcut'', ''rule of thumb'') is any approach to problem solving that employs a pragmatic method that is not fully optimized, perfected, or rationalized, but is nevertheless ...
techniques, what is often meant by ''precise'' gapless playback, is that playback timing is ''guaranteed'' to be identical to the source. By this definition, a precise gapless player is not allowed to introduce either gaps or overlaps (crossfading) between successive tracks, and is not allowed to use guesswork. Apart from accounting for playback latency, the preciseness here lies in treating lossless data as-is, and removing the ''correct'' amount of padding from lossy data. This is not possible for file formats with loosely defined encoder specifications and no metadata and therefore no way for encoders to record the duration of extraneous silence.


Approximate methods

Heuristics A heuristic or heuristic technique (''problem solving'', '' mental shortcut'', ''rule of thumb'') is any approach to problem solving that employs a pragmatic method that is not fully optimized, perfected, or rationalized, but is nevertheless ...
are used by some music players to detect silence between tracks and trim the audio as necessary on playback. Due to the loss of time resolution of
lossy compression In information technology, lossy compression or irreversible compression is the class of data compression methods that uses inexact approximations and partial data discarding to represent the content. These techniques are used to reduce data size ...
, this method is inexact. In particular, the silence is not exactly zero. If the silence threshold is too low, some silences go undetected. Too high, and entire sections of quiet music at the beginning or end of a track may be removed.
Digital signal processing Digital signal processing (DSP) is the use of digital processing, such as by computers or more specialized digital signal processors, to perform a wide variety of signal processing operations. The digital signals processed in this manner are a ...
(DSP) algorithms can also be used to crossfade between tracks. This eliminates gaps that some listeners find distracting, but also greatly alters the audio signal, which may have undesirable effects on the listening experience. Some listeners dislike these effects more than the gap they attempt to remove. For example, crossfading is inappropriate for files that are already gapless, in which case the transition may feel artificially short and disturb the rhythm. Also, depending on the length of untrimmed silence and the particular crossfader, it may cause a large volume drop. These methods defeat the purpose of intentional spacing between tracks. Not all albums are mix albums; perhaps more typically, there is an aesthetic pause between unrelated tracks. Also, the artist may intentionally leave in silences for dramatic effect, which should arguably be preserved regardless of whether there is a track boundary there. Compared to precise gapless playback, these methods are a different approach to erroneous silence in audio files, but other required features are the same. However, this approach requires more computation. In portable digital audio players, this means a reduced playing time on batteries.


User workarounds

A common workaround is to encode consecutive tracks as one single file, relying on cue sheets (or something similar) for navigation. While this method results in gapless playback within consecutive tracks, it can be unwieldy because of the possibly large size of the resulting compressed file. Furthermore, unless the playback software or hardware can recognize the cue sheets, navigating between tracks may be difficult. It may be possible to add gapless metadata to existing files. If the encoder is known, it is possible to guess the encoder delay. Also, if the compression was performed on CD audio, the original playback length will be an integer multiple of 588 samples, the size of one CD sector. Thus the total playback time can also be guessed. Adding such information to audio files will enable precise gapless playback in players that support this.


Prerequisites


Format support

Since
lossless data compression Lossless compression is a class of data compression that allows the original data to be perfectly reconstructed from the compressed data with no loss of information. Lossless compression is possible because most real-world data exhibits Redundanc ...
excludes the possibility of the introduction of padding, all lossless audio file formats are inherently gapless. These
lossy In information technology, lossy compression or irreversible compression is the class of data compression methods that uses inexact approximations and partial data discarding to represent the content. These techniques are used to reduce data size ...
audio file formats have provisions for gapless encoding: * Musepack *
Ogg Vorbis Vorbis is a free and open-source software project headed by the Xiph.Org Foundation. The project produces an audio coding format and software reference encoder/decoder (codec) for lossy audio compression, libvorbis. Vorbis is most common ...
Vorbis and Speex feature gapless support through the Ogg layer. The reference implementation of Speex did not initially ship with gapless metadata support. * Speex * Opus Some other formats do not officially support gapless encoding, but some implementations of encoders or decoders may handle gapless metadata. AAC does officially support gapless playback, but the standard is rather complex, so a lot of libraries never implemented it properly, still
Google Chrome Google Chrome is a web browser developed by Google. It was first released in 2008 for Microsoft Windows, built with free software components from Apple WebKit and Mozilla Firefox. Versions were later released for Linux, macOS, iOS, iPadOS, an ...
supports it. *
LAME LAME is a software encoder that converts digital audio into the MP3 audio coding format. LAME is a free software project that was first released in 1998 and has incorporated many improvements since then, including an improved psychoacoustic ...
-encoded MP3 can be gapless with players that support the LAME Mp3 info tag or Apple's iTunSMPB tag. * AAC in MP4 encoded with Nero Digital from Nero AG can be gapless with foobar2000, latest XMMS2, and
iTunes iTunes is a media player, media library, and mobile device management (MDM) utility developed by Apple. It is used to purchase, play, download and organize digital multimedia on personal computers running the macOS and Windows operating s ...
7.1.1.5 through 11.4. AAC is usually gapless in Google Chrome. *AAC in MP4 encoded with iTunes (current and previous versions) is gapless in iTunes 7.0 through 11.4, 2nd generation iPod nanos, all video-capable iPods with the latest firmware, and recent versions of foobar2000m, but most apps do not support Apple's iTunSMPB tag. *iTunes-encoded MP3 is gapless when played back in iTunes 7.0 through 11.4, 2nd generation iPod nanos, and all video-capable iPods with the latest firmware. * Windows Media Audio encoded with
Windows Media Player Windows Media Player (WMP, officially referred to as Windows Media Player Legacy to retronym, distinguish it from Windows Media Player (2022), the new Windows Media Player introduced with Windows 11) is the first media player (application soft ...
9 can be gapless with Windows Media Player 9 and onwards. *Windows Media Audio encoded with Sound Player Lilith can be gapless with latest Sound Player Lilith onwards. * ATRAC on MiniDisc is gapless through the use of TOC (Table of Contents).


Player support

Optimal solutions:


Hardware

*
Apple An apple is a round, edible fruit produced by an apple tree (''Malus'' spp.). Fruit trees of the orchard or domestic apple (''Malus domestica''), the most widely grown in the genus, are agriculture, cultivated worldwide. The tree originated ...
: **
iPod classic The iPod Classic (stylized and marketed as iPod classic and originally simply iPod) is a discontinued portable media player created and formerly marketed by Apple Inc. There were six generations of the iPod Classic, as well as a spin-off (the ...
supports gapless playback of MP3s and AACs from the fifth generation onward **
iPod nano The iPod Nano (stylized and marketed as iPod nano) is a discontinued portable media player designed and formerly marketed by Apple Inc. The first-generation model was introduced on September 7, 2005, as a replacement for the iPod Mini, using ...
second generation and later **
iPod Touch The iPod Touch (stylized as iPod touch) is a discontinued line of iOS-based mobile devices designed and formerly marketed by Apple Inc. with a touchscreen-controlled user interface. As with other iPod models, the iPod Touch can be used as a po ...
* Archos Gmini XS202S * Cowon S9 supports gapless playback without software dependency since 2.31b firmware. Most newer Cowon players support gapless playback right out of the box (J3, X7, iAudio 9) *
Linn Products Linn Products is an engineering company that manufactures hi-fi and audio equipment. Founded by Ivor Tiefenbrun in Glasgow, Scotland, in 1972, the company is best known as the manufacturer of the Linn Sondek LP12 turntable. From 2007 Linn was o ...
DS network players *All players in the Logitech/ Slim Devices Squeezebox range support gapless playback for all gapless formats (lame MP3, FLAC, Vorbis, etc.). Crossfading is also optionally available. *
Microsoft Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
Zune supports gapless playback with Zune 2.5 or later firmware, though some bugs remain and occasionally small pops or skips can be heard. *
Panasonic is a Japanese multinational electronics manufacturer, headquartered in Kadoma, Osaka, Kadoma, Japan. It was founded in 1918 as in Fukushima-ku, Osaka, Fukushima by Kōnosuke Matsushita. The company was incorporated in 1935 and renamed and c ...
RX-D55AEG-K, a portable radio recorder with CD player * Rio Karma gapless hardware player with no software dependency (FLAC, Ogg, MP3, WMA), first portable DAP with the feature * Roberts Sound 48, a clock radio with CD player * Rockbox for various digital audio players. *
Sony is a Japanese multinational conglomerate (company), conglomerate headquartered at Sony City in Minato, Tokyo, Japan. The Sony Group encompasses various businesses, including Sony Corporation (electronics), Sony Semiconductor Solutions (i ...
: ** MiniDisc
Walkman is a brand of Personal stereo, portable audio players manufactured by Sony since 1979. It was originally introduced as a portable Compact Cassette, cassette player and later expanded to include a range of portable audio products. Since 2011, ...
supports gapless playback (including non-Sony Walkman MiniDisc players) **CD Walkman (such as D-NE330) supports gapless playback of ATRAC-encoded CDs ** VAIO Pocket supports gapless playback (through a firmware update) of ATRAC files **Network Walkman NW-HDx and NW-A (1x00, 3000, 60x, 80x) DAPs supports gapless playback of ATRAC files - after this Walkman DAPs lost the feature when ATRAC support ceased, but continued in Japan where players still came with ATRAC. Gapless playback returned outside Japan 5 years later with Walkman NWZ-F80x through the FLAC format. * Trekstor Vibes gapless hardware player with no software dependency * Victor Alneo V Series and C Series


Software

* Amarok, for
Linux Linux ( ) is a family of open source Unix-like operating systems based on the Linux kernel, an kernel (operating system), operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically package manager, pac ...
* AIMP for windows * Audacious, for Linux * Banshee, for Linux * Clementine,
cross-platform Within computing, cross-platform software (also called multi-platform software, platform-agnostic software, or platform-independent software) is computer software that is designed to work in several Computing platform, computing platforms. Some ...
. * Cog, for OS X * DeaDBeeF, for Linux * foobar2000, for Windows and Mac * Groove Music, for Windows 10. *
iTunes iTunes is a media player, media library, and mobile device management (MDM) utility developed by Apple. It is used to purchase, play, download and organize digital multimedia on personal computers running the macOS and Windows operating s ...
7.0 through 11.4 supported as default gapless playback on
Macintosh Mac is a brand of personal computers designed and marketed by Apple Inc., Apple since 1984. The name is short for Macintosh (its official name until 1999), a reference to the McIntosh (apple), McIntosh apple. The current product lineup inclu ...
and
Windows Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
without having to combine tracks during encoding (a limitation of previous releases). Some users in unusual situations have complained that the one-time analysis is a system-intensive process that can stall or crash computers. * JRiver Media Center, for Windows *
KODI Kodi may refer to: Arts, entertainment, and media * KODI, a radio station in Cody, Wyoming, USA * Kodi (film), ''Kodi'' (film), India, 2016 * Kodi, a dog in the 2004 film ''Balto III: Wings of Change'' Other uses * Kodi (software), an open sour ...
, for Windows, Linux, OS X, Android and others. * mplayer2, for Linux, OS X, and Windows supports gapless playback of
flac FLAC (; Free Lossless Audio Codec) is an audio coding format for lossless compression of digital audio, developed by the Xiph.Org Foundation, and is also the name of the free software project producing the FLAC tools, the reference software ...
when used with option "-gapless-audio". * mpv (media player) for BSD, Linux, macOS, Windows. * MusicBee, for Windows * Music On Console, for
Linux Linux ( ) is a family of open source Unix-like operating systems based on the Linux kernel, an kernel (operating system), operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically package manager, pac ...
and other Unix-like platforms. *
Music Player Daemon Music Player Daemon (MPD) is a free software, free and Open-source software, open-source music player Server (computing), server. It plays audio files, organizes playlists and maintains a music database. In order to interact with it, a Client (co ...
, for
Linux Linux ( ) is a family of open source Unix-like operating systems based on the Linux kernel, an kernel (operating system), operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically package manager, pac ...
and other Unix-like platforms. *Neutron Music Player, for Android, Windows, Linux, OS X, iOS. * Plex, for all supported platforms either through the platform player or PlexAmp * Qlab, for OS X * Quod Libet, multi-platform. * Rhythmbox, for Linux * Winamp, supports gapless playback for MP3, M4A/AAC, Ogg Vorbis and FLAC files (since version 5.3). *
Windows Media Player Windows Media Player (WMP, officially referred to as Windows Media Player Legacy to retronym, distinguish it from Windows Media Player (2022), the new Windows Media Player introduced with Windows 11) is the first media player (application soft ...
, has supported gapless ripping and playback of WMA since Windows Media 9. Available on all current Windows machines. * XMPlay, supports gapless playback for all format files Alternative or partial solutions: * XMMS2 – has native support for gapless MP3 / Ogg Vorbis and FLAC


See also

*
Segue A segue ( , ; ) is a transition from one topic or section to the next. In music In music, ''segue'' is a direction to the performer. It means ''continue (the next section) without a pause''. The term ''attacca'' is used synonymously. For writ ...
, the technique in classical music * Loop (music)


References

{{Reflist


Notes


External links


MP3 players: Buyer Beware
a description of gapless playback in digital audio players. Digital audio