[ lame-Support Requests-3469604 ] Make extant MP3 gapless without lossy reencoding?

SourceForge.net <[email protected]>
Newsgroups gmane.comp.audio.mp3.lame
Message-ID <[email protected]>
Support Requests item #3469604, was opened at 2012-01-04 17:09
Message generated for change (Comment added) made by mike_j_brown
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=200290&aid=3469604&group_id=290

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: noah++ (noahplusplus)
Assigned to: Nobody/Anonymous (nobody)
Summary: Make extant MP3 gapless without lossy reencoding?

Initial Comment:
I have some MP3 files that were either not encoded with LAME or were encoded without gapless options enabled. Is it technically possible for LAME to make these files gapless without lossily reencoding them? If so, is there currently a way for the user to do it?

----------------------------------------------------------------------

Comment By: Mike Brown (mike_j_brown)
Date: 2012-01-05 15:57

Message:
There are two kinds of gapless MP3s. The kind produced by LAME's old
gapless options is just a single stream chopped into sections on frame
boundaries, and you (or the player) are supposed to concatenate them before
or during playback. This technique was largely abandoned before it gained
much traction. The other, currently popular kind is what LAME produces by
default (no special options needed), where each file is a separately
encoded stream, with metadata in it telling the player how many delay &
padding samples to skip on each end to get the part of the stream that
corresponds to the original sample set. This may not be perfectly seamless
but is the definition of gapless that people generally want.

If the encoder was LAME, the encoder delay is known, and for CD-sourced
material (multiples of 588 samples), the padding can be guessed at, or even
confirmed if you have access to the exact track length from the original
CD. Otherwise, there's no way to know for sure. If the encoder is unknown,
then not even the delay is certain. So I don't think there's really a way
to do what you want automatically. Further reading:
http://wiki.hydrogenaudio.org/index.php?title=Gapless_playback

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=200290&aid=3469604&group_id=290

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.