foobar not gapless on MP3's encoded with LAME 3.94b |
Please read foobar2000 Tech Support Forum Rules before posting and comply with all the points.
Failure to provide all the information pointed out in the above document in your post is considered wasting other people's time and in extreme cases will lead to your topic getting locked without a reply.
See also: Hydrogenaudio Terms of Service.
![]() ![]() |
foobar not gapless on MP3's encoded with LAME 3.94b |
Sep 25 2012, 14:58
Post
#1
|
|
|
Group: Members Posts: 6 Joined: 25-September 12 Member No.: 103416 |
I know 3.94b is an ancient version of LAME; however the files it creates appear to play gaplessly fine in both Winamp and XMPlay. In foobar2000 there is a noticeable glitch between tracks. Running "Fix VBR header" on the files appears to make them work again, but this is a bit strange as they are supposedly 320KB CBR (lame -b 320 infile outfile).
Files encoded with LAME 3.97 play fine without such "fixing". Why is the fixing needed, and why doesn't this seem to affect two other popular players? Many thanks! James |
|
|
|
Sep 25 2012, 16:07
Post
#2
|
|
![]() Group: FB2K Moderator Posts: 4321 Joined: 1-November 06 From: Cincinnati Member No.: 37036 |
Can you upload sample files to the upload forum?
This post has been edited by shakey_snake: Sep 25 2012, 16:08 -------------------- "It must be 'Take A Worm For A Walk' week!"
|
|
|
|
Sep 25 2012, 22:18
Post
#3
|
|
|
Group: Members Posts: 6 Joined: 25-September 12 Member No.: 103416 |
Can you upload sample files to the upload forum? done, a very short sample file uploaded, in original wav, 3.94b encoded mp3 and then the resulting mp3 after VBR fix. sample files Thanks! |
|
|
|
Sep 26 2012, 09:42
Post
#4
|
|
![]() Group: Admin Posts: 3226 Joined: 30-September 01 Member No.: 84 |
Thanks for the sample file.
The LAME header of this file is obviously broken (nonsensical frame count). Other applications may play this file gaplessly because they do not rely on the frame count field. foobar2000 could potentially cope with this but it still cannot show correct file duration (only possible workaround == scan whole file when reading tags, too slow to be feasible). I recommend using the File Integrity Verifier component to detect such files in your library and then fix headers on them all. I will keep this issue in mind, to be possibly fixed in some future foobar2000 update. -------------------- This job would be great if it wasn't for the users.
|
|
|
|
Sep 26 2012, 09:56
Post
#5
|
|
|
Group: Members Posts: 6 Joined: 25-September 12 Member No.: 103416 |
I see that Foobar2000 shows the length of the WAV file as 53248 samples, and the length of the "fixed" MP3 as the same, but the original MP3 is shown as being 54400 samples - a difference of 1152 samples. This happens to be double the "ENC_DELAY" value. Probably not a coincidence? All the failing files seem to exhibit the same issue (1152 samples too long).
|
|
|
|
Sep 26 2012, 11:18
Post
#6
|
|
|
Group: Members Posts: 6 Joined: 25-September 12 Member No.: 103416 |
I recommend using the File Integrity Verifier component to detect such files in your library and then fix headers on them all. Thanks. Although that component spots the fault in these two files I just uploaded, it doesn't seem to spot the issue in all files I have, which seems weird. |
|
|
|
Sep 26 2012, 12:55
Post
#7
|
|
![]() Group: Admin Posts: 3226 Joined: 30-September 01 Member No.: 84 |
1152 samples = MP3 frame duration. The header indicates file duration longer by one frame than it really is (I guess it counts the header itself as a frame which is against the spec).
-------------------- This job would be great if it wasn't for the users.
|
|
|
|
Oct 1 2012, 17:41
Post
#8
|
|
![]() Group: Members Posts: 120 Joined: 31-May 05 From: Netherlands Member No.: 22417 |
(only possible workaround == scan whole file when reading tags, too slow to be feasible). Excuse my intrusion, but too slow for what exactly? Would this cause such a performance hit, even with today's computers?
-------------------- DC-Bass Source Mod: http://reino.degeelebosch.nl
|
|
|
|
Oct 1 2012, 17:52
Post
#9
|
|
|
Group: Members Posts: 2268 Joined: 19-May 08 Member No.: 53637 |
do you really want peter to work on this?
Version in question is 9 years old File integrity component is available as already mentioned |
|
|
|
Oct 1 2012, 18:00
Post
#10
|
|
![]() Group: Members Posts: 120 Joined: 31-May 05 From: Netherlands Member No.: 22417 |
Not at all, I'm just looking for some info. I am allowed to ask, aren't I?
-------------------- DC-Bass Source Mod: http://reino.degeelebosch.nl
|
|
|
|
Oct 1 2012, 18:17
Post
#11
|
|
![]() Group: Admin Posts: 3226 Joined: 30-September 01 Member No.: 84 |
Do you really want your whole MP3 collection to be read from the hard disk when indexing your music library? It could possibly be bearable with modern storage devices in your local computer but certainly not on any network share; I can guarantee that would cause more annoyance than benefit.
-------------------- This job would be great if it wasn't for the users.
|
|
|
|
Oct 1 2012, 18:24
Post
#12
|
|
![]() Group: Members Posts: 120 Joined: 31-May 05 From: Netherlands Member No.: 22417 |
I can perfectly imagine in Foobar's case that undesirable, but in DC-Bass Source Mod's case (1 file at a time) I believe it wouldn't do much harm. I'm just trying to decide what I should do.
-------------------- DC-Bass Source Mod: http://reino.degeelebosch.nl
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 18th May 2013 - 09:04 |