Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Gapless playback

From Wikipedia, the free encyclopedia
(Redirected fromGapless)
Uninterrupted playback of consecutive audio tracks

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 withcompact discs,gramophone records, 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 tosegue into each other, such as someclassical music (opera in particular),progressive rock,concept albums,electronic music, and live recordings with audience noise between tracks.

Causes of gaps

[edit]

Playback latency

[edit]

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 (seeharddisk 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 onpersonal computers do not implement the required buffering to play gapless audio. Some of these rely on third-party gaplessaudio plug-ins to buffer output. Most recent players and newer versions of old players now support gapless playback directly.

Compression artifacts

[edit]

Lossy audio 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.[1] 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), where the start and end are precisely defined, the padding is implicitly trimmed off in the decoding process. Other formats may require extrametadata for the player to achieve the same. The popularMP3 format defines no way to record the amount of delay or padding for later removal.[notes 1] Also, the encoder delay may vary from encoder to encoder, making automatic removal difficult.[2] Even if two tracks are decompressed and merged into a single track, a pause will usually remain between them.

CD recorded in TAO mode

[edit]
Main article:Optical disc recording modes

Audio-CDs can be recorded in eitherdisc at once (DAO) ortrack 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.[citation needed]

Ways to eliminate the gaps

[edit]

Precise gapless playback

[edit]

As opposed toheuristic techniques, what is often meant byprecise gapless playback, is that playback timing isguaranteed 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 thecorrect 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

[edit]

Heuristics 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 oflossy compression, 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 (DSP) algorithms can also be used tocrossfade 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.[3] 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

[edit]

A common workaround is to encode consecutive tracks as one single file, relying oncue 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

[edit]
This sectionmay containexcessive orirrelevant examples. Please helpimprove the article by adding descriptive text and removingless pertinent examples.(October 2018)

Format support

[edit]

Sincelossless data compression excludes the possibility of the introduction of padding, all lossless audio file formats are inherently gapless.

Theselossy audio file formats have provisions for gapless encoding:

Some other formats do not officially support gapless encoding, but some implementations of encoders or decoders may handle gapless metadata.

  • LAME-encoded MP3 can be gapless with players that support the LAME Mp3 info tag.[5]
  • AAC inMP4 encoded with Nero Digital fromNero AG can be gapless withfoobar2000, latest XMMS2, andiTunes 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.[6][irrelevant citation]
  • 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 withWindows Media Player 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.[7]
  • ATRAC onMiniDisc is gapless through the use of TOC (Table of Contents).

Player support

[edit]

Optimal solutions:

Hardware

[edit]
  • Apple:
  • 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 DS network players
  • All players in theLogitech/Slim DevicesSqueezebox range support gapless playback for all gapless formats (lame MP3, FLAC, Vorbis, etc.). Crossfading is also optionally available.
  • MicrosoftZune supports gapless playback with Zune 2.5 or later firmware, though some bugs remain and occasionally small pops or skips can be heard.[9]
  • Panasonic 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[10]
  • Roberts Sound 48, a clock radio with CD player
  • Rockbox for variousdigital audio players.
  • Sony:
    • MiniDiscWalkman 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.[11]
  • TrekstorVibes gapless hardware player with no software dependency
  • Victor Alneo V Series and C Series[12][13]

Software

[edit]

Alternative or partial solutions:

  • XMMS2 – has native support for gapless MP3 / Ogg Vorbis and FLAC

See also

[edit]
  • Segue, the technique in classical music

References

[edit]
  1. ^Taylor, Mark (2003)."LAME Technical FAQ". Retrieved2006-07-06.
  2. ^Robinson, David (2001)."lame v3.81 and 3.87 beta mp3 decoding quality test results". Retrieved2006-08-24. Features a table of encoder delay values.
  3. ^"256734 – precise gapless playback".bugs.kde.org. Retrieved7 December 2017.
  4. ^"Speex News". 2004-07-28. Retrieved2008-04-25.
  5. ^"LAME Technical FAQ". June 2000. Retrieved2012-01-28.
  6. ^"Guides and Sample Code".developer.apple.com. Retrieved7 December 2017.
  7. ^"再生制御".www.project9k.jp. Retrieved7 December 2017.
  8. ^abc"What is Gapless Playback?".Apple Inc. Archived fromthe original on 2008-05-08. Retrieved2008-05-13.
  9. ^"Thread on gapless playback on Zune HD". 2010-02-25. Retrieved2010-05-04.
  10. ^"Rio Karma 20Gb MP3 Player". 24 April 2004.
  11. ^"Sony NWZ-F806 Specification Guide - Page 1 of 4".
  12. ^Ittousai."ビクターAlneo にギャップレス再生・AAC対応の新モデル - Engadget Japanese". Retrieved7 December 2017.
  13. ^"【新製品レビュー】".av.watch.impress.co.jp. Retrieved7 December 2017.
  14. ^"Thread on Gapless Playback on Amarok Mailing List". 2006-09-06. Retrieved2007-01-19.
  15. ^"[Implemented] Gapless Playback". 23 December 2018.

Notes

[edit]
  1. ^Despite this, there are encoders which store the amount of padding introduced inmetadata to allow gapless playback. This can only be used if the playback software is able to interpret the metadata information.
  2. ^abcVorbis and Speex feature gapless support through theOgg layer. The reference implementation of Speex did not initially ship with gapless metadata support.

External links

[edit]
Retrieved from "https://en.wikipedia.org/w/index.php?title=Gapless_playback&oldid=1282260223"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp