Gapless Playback Detection |
Gapless Playback Detection |
Nov 17 2012, 20:00
Post
#1
|
|
|
Group: Members Posts: 2 Joined: 17-November 12 Member No.: 104594 |
Hi,
I'm trying to detect if a mp3 track has been encoded with the gapless option enabled. I'm trying to write a simple player that can quickly detect if the option is enabled. I'm currently testing with tracks encoded using LAME. Wondering if someone can point me to exactly what I should be looking for in the LAME header. Thanks! |
|
|
|
![]() |
Nov 18 2012, 15:02
Post
#2
|
|
|
Group: Members Posts: 592 Joined: 12-May 06 From: Colorado, USA Member No.: 30694 |
I believe there are actually at least 3 places to look for delay and padding:
There's also the older, less widely implemented method of gapless encoding, where one long MP3 stream for a contiguous set of tracks is divided into separate files, such as by the --nogap option in LAME, a similar gapless option in iTunes, or by using MP3 editors/splitters like mp3DirectCut (e.g. to split an album MP3 by cue sheet). The files may (but don't always) include flags to indicate they are part of a gapless set, or it may be possible to deduce this from weird delay & padding values. Since the encoder isn't reset between tracks, these MP3s are theoretically (though probably not ABX-able) better quality at the track boundaries when the files are played in order. However, proper playback requires reassembling the stream before or during decoding; the player must recognize the files as part of a set and avoid resetting the decoder between files. This is only supported by a couple of players (Rockbox and iTunes being the main ones, I think). It's much easier to just use the delay & padding metadata; it's good enough, and is ideal when the tracks aren't going to be played in order. |
|
|
|
jsaund Gapless Playback Detection Nov 17 2012, 20:00
lvqcl http://gabriel.mp3-tech.org/mp3infotag.html#delays Nov 17 2012, 20:07
jsaund Thanks mjb2006 and lvqcl.
For the delay / padding... Nov 19 2012, 01:52
lvqcl Well, the point of non-zero values is to make file... Nov 19 2012, 04:16
mjb2006 Just in case this wasn't clear: the gaplessnes... Nov 19 2012, 06:30![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 16:37 |