Gapless playback
   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 The compact disc (CD) is a digital optical disc data storage format that was co-developed by Philips and Sony to store and play digital audio recordings. In August 1982, the first compact disc was manufactured. It was then released in October ...
,
gramophone record A phonograph record (also known as a gramophone record, especially in British English), or simply a record, is an analog sound storage medium in the form of a flat disc with an inscribed, modulated spiral groove. The groove usually starts ne ...
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 smooth transition from one topic or section to the next. The term is derived from Italian ''segue'', which literally means "follows". In music In music, ''segue'' is a direction to the performer. It means ''continue (the next ...
into each other, such as some
classical music Classical music generally refers to the art music of the Western world, considered to be distinct from Western folk music or popular music traditions. It is sometimes distinguished as Western classical music, as the term "classical music" al ...
(
opera Opera is a form of theatre in which music is a fundamental component and dramatic roles are taken by singers. Such a "work" (the literal translation of the Italian word "opera") is typically a collaboration between a composer and a libr ...
in particular),
progressive rock Progressive rock (shortened as prog rock or simply prog; sometimes conflated with art rock) is a broad genre of rock music that developed in the United Kingdom and United States through the mid- to late 1960s, peaking in the early 1970s. I ...
,
concept albums A concept album is an album whose tracks hold a larger purpose or meaning collectively than they do individually. This is typically achieved through a single central narrative or theme, which can be instrumental, compositional, or lyrical. Some ...
,
electronic music Electronic music is a genre of music that employs electronic musical instruments, digital instruments, or circuitry-based music technology in its creation. It includes both music made using electronic and electromechanical means ( electro ...
, 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 (PC) is a multi-purpose microcomputer whose size, capabilities, and price make it feasible for individual use. Personal computers are intended to be operated directly by an end user, rather than by a computer expert or te ...
s do not implement the required buffering to play gapless audio. Some of these rely on third-party gapless
audio plug-in An audio plug-in, in computer software, is a plug-in that can add or enhance audio-related functionality in a computer program. Such functionality may include digital signal processing or sound synthesis. Audio plug-ins usually provide their ...
s 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 compressio ...
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. Vorbis is most commonly used in conjun ...
), 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 is "data that provides information about other data", but not the content of the data, such as the text of a message or the image itself. There are many distinct types of metadata, including: * Descriptive metadata – the descriptive ...
for the player to achieve the same. The popular
MP3 MP3 (formally MPEG-1 Audio Layer III or MPEG-2 Audio Layer III) is a coding format for digital audio developed largely by the Fraunhofer Society in Germany, with support from other digital scientists in the United States and elsewhere. Origin ...
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 is "data that provides information about other data", but not the content of the data, such as the text of a message or the image itself. There are many distinct types of metadata, including: * Descriptive metadata – the 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.


Ways to eliminate the gaps


Precise gapless playback

As opposed to
heuristic A heuristic (; ), or heuristic technique, is any approach to problem solving or self-discovery that employs a practical method that is not guaranteed to be optimal, perfect, or rational, but is nevertheless sufficient for reaching an immediate ...
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, is any approach to problem solving or self-discovery that employs a practical method that is not guaranteed to be optimal, perfect, or rational, but is nevertheless sufficient for reaching an immediate, ...
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 si ...
, 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 ...
(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 statistic ...
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 si ...
audio file formats have provisions for gapless encoding: *
Musepack Musepack or MPC is an open source lossy audio codec, specifically optimized for transparent compression of stereo audio at bitrates of 160–180 (manual set allows bitrates up to 320) kbit/s. It was formerly known as MPEGplus, MPEG+ or MP+ ...
*
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. Vorbis is most commonly used in conjun ...
Vorbis and Speex feature gapless support through the Ogg layer. The reference implementation of Speex did not initially ship with gapless metadata support. *
Speex Speex is an audio compression codec specifically tuned for the reproduction of human speech and also a free software speech codec that may be used on VoIP applications and podcasts. It is based on the CELP speech coding algorithm.Xiph.OrIntro ...
*
Opus ''Opus'' (pl. ''opera'') is a Latin word meaning "work". Italian equivalents are ''opera'' (singular) and ''opere'' (pl.). Opus or OPUS may refer to: Arts and entertainment Music * Opus number, (abbr. Op.) specifying order of (usually) publicatio ...
Some other formats do not officially support gapless encoding, but some implementations of encoders or decoders may handle gapless metadata. *
LAME Lame or LAME may refer to: Music * "Lame" (song) by Unwritten Law * ''Lame'' (album) by Iame People * Ibrahim Lame (born 1953), Nigerian educator and politician * Jennifer Lame (), American film editor * Quintín Lame (1880–1967), Colombian ...
-encoded MP3 can be gapless with players that support the LAME Mp3 info tag. * AAC in MP4 encoded with Nero Digital from Nero AG can be gapless with
foobar2000 foobar2000 (often abbreviated as fb2k or f2k) is a freeware audio player for Microsoft Windows, iOS and Android developed by Peter Pawłowski. It has a modular design, which provides user flexibility in configuration and customization. Stan ...
, latest XMMS2, and
iTunes iTunes () is a software program that acts as a media player, media library, mobile device management utility, and the client app for the iTunes Store. Developed by Apple Inc., it is used to purchase, play, download, and organize digital mu ...
7.1.1.5 through 11.4. *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 foobar2000. *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 Windows Media Audio (WMA) is a series of audio codecs and their corresponding audio coding formats developed by Microsoft. It is a proprietary technology that forms part of the Windows Media framework. WMA consists of four distinct codecs. The ...
encoded with
Windows Media Player Windows Media Player (WMP) is the first media player and media library application that was developed by Microsoft for playing audio, video and viewing images on personal computers running the Microsoft Windows operating system, as well as ...
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 Adaptive Transform Acoustic Coding (ATRAC) is a family of proprietary audio compression algorithms developed by Sony. MiniDisc was the first commercial product to incorporate ATRAC in 1992. ATRAC allowed a relatively small disc like MiniDisc to h ...
on
MiniDisc MiniDisc (MD) is an erasable magneto-optical disc-based data storage format offering a capacity of 60, 74, and later, 80 minutes of digitized audio. Sony announced the MiniDisc in September 1992 and released it in November of that year fo ...
is gapless through the use of TOC (Table of Contents).


Player support

Optimal solutions:


Hardware

*
Apple An apple is an edible fruit produced by an apple tree (''Malus domestica''). Apple trees are cultivated worldwide and are the most widely grown species in the genus '' Malus''. The tree originated in Central Asia, where its wild ancest ...
: **
iPod classic The iPod Classic (stylized and marketed as iPod classic and formerly iPod Video or just 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 sp ...
supports gapless playback of MP3s and AACs from the fifth generation onward **
iPod nano The iPod Nano (stylised 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, usin ...
second generation and later **
iPod Touch The iPod Touch (stylized as iPod touch) is a discontinued line of iOS-based mobile devices designed and marketed by Apple Inc. with a touchscreen-controlled user interface. As with other iPod models, the iPod Touch can be used as a musi ...
*
Archos Archos (, stylized as ARCHOS) is a French multinational electronics company that was established in 1988 by Henri Crohas. Archos manufactures tablets, smartphones, portable media players and portable data storage devices. The name is an anagra ...
Gmini XS202S *
Cowon Cowon Systems, Inc. (simply known as Cowon) is a South Korean consumer electronics and software corporation. The company’s initial focus was software development and microelectronics, specializing in speech synthesis and speech recognition tec ...
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 DS network players *All players in the
Logitech Logitech International S.A. ( ; often shortened to Logi) is a Swiss multinational manufacturer of computer peripherals and software, with headquarters in Lausanne, Switzerland, and Newark, California. The company has offices throughout Europe ...
/
Slim Devices Slim Devices, Inc. was a consumer electronics company based in Mountain View, California, United States. Their main product was the Squeezebox network music player which connects to a home ethernet or Wi-Fi network, and allows the owner to stream ...
Squeezebox The term squeezebox (also squeeze box, squeeze-box) is a colloquial expression referring to any musical instrument of the general class of hand-held bellows-driven free reed aerophones such as the accordion and the concertina. The term is so a ...
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 technology corporation producing computer software, consumer electronics, personal computers, and related services headquartered at the Microsoft Redmond campus located in Redmond, Washi ...
Zune Zune is a discontinued line of digital media products and services marketed by Microsoft from November 2006 until its discontinuation in June 2012. Zune consisted of a line of portable media players, digital media player software for Windows Per ...
supports gapless playback with Zune 2.5 or later firmware, though some bugs remain and occasionally small pops or skips can be heard. *
Panasonic formerly between 1935 and 2008 and the first incarnation of between 2008 and 2022, is a major Japanese multinational conglomerate corporation, headquartered in Kadoma, Osaka. It was founded by Kōnosuke Matsushita in 1918 as a lightbulb ...
RX-D55AEG-K, a portable radio recorder with CD player *
Rio Karma The Rio Karma is a digital audio player originally made by the now-defunct Rio. It was released in August 2003. It measures 2.7 × 3 × 0.9 inches (6.9 × 7.6 × 2.3 cm) and weighs 5.5 ounces (160 grams). It has a 20 gigabyte (18.6 gibiby ...
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 Rockbox is a free and open-source software replacement for the OEM firmware in various forms of digital audio players (DAPs) with an original kernel. It offers an alternative to the player's operating system, in many cases without removing the or ...
for various
digital audio player A portable media player (PMP) (also including the related digital audio player (DAP)) is a portable consumer electronics device capable of storing and playing digital media such as audio, images, and video files. The data is typically stored o ...
s. *
Sony , commonly stylized as SONY, is a Japanese multinational conglomerate corporation headquartered in Minato, Tokyo, Japan. As a major technology company, it operates as one of the world's largest manufacturers of consumer and professional ...
: **
MiniDisc MiniDisc (MD) is an erasable magneto-optical disc-based data storage format offering a capacity of 60, 74, and later, 80 minutes of digitized audio. Sony announced the MiniDisc in September 1992 and released it in November of that year fo ...
Walkman Walkman, stylised as , is a brand of portable audio players manufactured and marketed by Japanese technology company Sony since 1979. The original Walkman was a portable cassette player and its popularity made "walkman" an unofficial term for p ...
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 TrekStor GmbH & Co. KG is a German manufacturer of portable storage products, audio devices and tablet computers incorporated in 2001 and located in Bensheim, Germany. The company is primarily known for its MP3 players, hard disk drives, tabl ...
Vibes gapless hardware player with no software dependency * Victor Alneo V Series and C Series


Software

* Amarok, for
Linux Linux ( or ) is a family of open-source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically packaged as a Linux distribution, whi ...
* AIMP for windows *
Audacious Audacious may refer to: * ''Audacious'' (album), a 2016 album by Cupcakke * Audacious (software) Audacious is a Free and open-source software, free and open-source audio player software with a focus on low resource use, high audio quality, ...
, for Linux *
Banshee A banshee ( ; Modern Irish , from sga, ben síde , "woman of the fairy mound" or "fairy woman") is a female spirit in Irish folklore who heralds the death of a family member, usually by screaming, wailing, shrieking, or keening. Her name i ...
, for Linux *
Clementine A clementine (''Citrus × clementina'') is a tangor, a citrus fruit hybrid between a willowleaf mandarin orange ( ''C.'' × ''deliciosa'') and a sweet orange (''C. × sinensis''), named in honor of Clément Rodier, a French missionary who fir ...
,
cross-platform In 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 platforms. Some cross-platform software ...
. * cmus, for
Linux Linux ( or ) is a family of open-source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically packaged as a Linux distribution, whi ...
and BSD. * Cog, for OS X *
DeaDBeeF DeaDBeeF is an audio player software available for Linux, Android and other Unix-like operating systems. DeaDBeeF is free and open-source software, except on Android. History The player was first published in August 2009. Its author cited ...
, for Linux *
foobar2000 foobar2000 (often abbreviated as fb2k or f2k) is a freeware audio player for Microsoft Windows, iOS and Android developed by Peter Pawłowski. It has a modular design, which provides user flexibility in configuration and customization. Stan ...
, for Windows and Mac *
Groove Music Groove Music (formerly Xbox Music or Zune Music Pass) is a discontinued audio player software application included with Windows 8, Windows 8.1 and Windows 10. The app is also associated with a now-discontinued music streaming service, Groov ...
, for Windows 10. *
iTunes iTunes () is a software program that acts as a media player, media library, mobile device management utility, and the client app for the iTunes Store. Developed by Apple Inc., it is used to purchase, play, download, and organize digital mu ...
7.0 through 11.4 supported as default gapless playback on
Macintosh The Mac (known as Macintosh until 1999) is a family of personal computers designed and marketed by Apple Inc., Apple Inc. Macs are known for their ease of use and minimalist designs, and are popular among students, creative professionals, and ...
and
Windows Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for se ...
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 JRiver Media Center is a multimedia application that allows the user to play and organize various types of media on a computer running Windows, macOS, or Linux operating systems. JRiver Media Center is a "jukebox"-style media player, like iTu ...
, for Windows * KODI, 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 softwa ...
when used with option "-gapless-audio". *
mpv (media player) mpv is free and open-source media player software based on MPlayer, mplayer2 and FFmpeg. It runs on several operating systems, including Unix-like operating systems (Linux, BSD-based, macOS) and Microsoft Windows, along with having an And ...
for BSD, Linux, macOS, Windows. *
MusicBee MusicBee is a freeware media player for playback and organization of audio files on Microsoft Windows, built using the audio library. Features * Audio playback: MP3, AAC, M4A, MPC, OGG, FLAC, ALAC, APE, Opus, , WavPack, WMA, WAV, MI ...
, for Windows * Music On Console, for
Linux Linux ( or ) is a family of open-source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically packaged as a Linux distribution, whi ...
and other Unix-like platforms. * Music Player Daemon, for
Linux Linux ( or ) is a family of open-source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically packaged as a Linux distribution, whi ...
and other Unix-like platforms. * Plex, for all supported platforms either through the platform player or PlexAmp * Qlab, for OS X * Quod Libet, multi-platform. *
Rhythmbox Rhythmbox is a free and open-source audio player software, tag editor and music organizer for digital audio files on Linux and Unix-like systems. Rhythmbox is designed to work well under GNOME, but can function on other desktop environments. I ...
, for Linux *
Winamp Winamp is a media player for Microsoft Windows originally developed by Justin Frankel and Dmitry Boldyrev by their company Nullsoft, which they later sold to AOL in 1999 for $80 million. It was then acquired by Radionomy in 2014. Since ve ...
, supports gapless playback for MP3, M4A/AAC, Ogg Vorbis and FLAC files (since version 5.3). *
Windows Media Player Windows Media Player (WMP) is the first media player and media library application that was developed by Microsoft for playing audio, video and viewing images on personal computers running the Microsoft Windows operating system, as well as ...
, has supported gapless ripping and playback of WMA since Windows Media 9. Available on all current Windows machines. *
XMPlay XMPlay is a freeware audio player for Windows. Initially released in 1998, it is often used as a reference player for tracker audio files. Overview Developed by ''Un4seen Developments'' in 1998, it originally only supported the XM file fo ...
, 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 smooth transition from one topic or section to the next. The term is derived from Italian ''segue'', which literally means "follows". In music In music, ''segue'' is a direction to the performer. It means ''continue (the next ...
, the technique in classical music


References

{{Reflist


Notes


External links


MP3 players: Buyer Beware
a description of gapless playback in
digital audio player A portable media player (PMP) (also including the related digital audio player (DAP)) is a portable consumer electronics device capable of storing and playing digital media such as audio, images, and video files. The data is typically stored o ...
s Digital audio