Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Is there a way to improve Lame setting for this sample (Read 18188 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Is there a way to improve Lame setting for this sample

I have tried to encode this song to MP3 for distribution (this is my own song, I composed it) but I find that the encoded song is always ABXable, even if I tried CBR 320, which AFAIK is the highest bitrate for standard MP3. I have tried disable lowpass but that didn't help, the encoded hi-hats sound blurry.

For the record, the Lame version I've tried is v3.97 and v3.98b8. Both -V0 and -b 320. I get straight 20/20 in ABX test because it's so obvious (notice how short the time it took me).

Here are some of my test results:

Code: [Select]
foobar2000 v0.9.5.3
2008/06/11 23:41:36

File A: F:\Music Projects\2006\Nitade 2006\_Final Audio\Enchanting! sample.wav
File B: F:\Music Projects\2006\Nitade 2006\_Final Audio\Enchanting! sample-lamev3.98b8-b320.mp3

23:41:36 : Test started.
23:42:04 : 01/01  50.0%
23:42:11 : 02/02  25.0%
23:42:27 : 03/03  12.5%
23:42:31 : 04/04  6.3%
23:42:38 : 05/05  3.1%
23:42:44 : 06/06  1.6%
23:42:51 : 07/07  0.8%
23:43:08 : 08/08  0.4%
23:43:14 : 09/09  0.2%
23:43:21 : 10/10  0.1%
23:43:32 : 11/11  0.0%
23:43:38 : 12/12  0.0%
23:43:49 : 13/13  0.0%
23:44:01 : 14/14  0.0%
23:44:13 : 15/15  0.0%
23:44:29 : 16/16  0.0%
23:44:35 : 17/17  0.0%
23:44:41 : 18/18  0.0%
23:44:48 : 19/19  0.0%
23:44:54 : 20/20  0.0%
23:44:56 : Test finished.

----------
Total: 20/20 (0.0%)


Code: [Select]
foo_abx 1.3.3 report
foobar2000 v0.9.5.3
2008/06/11 23:48:24

File A: F:\Music Projects\2006\Nitade 2006\_Final Audio\Enchanting! sample.wav
File B: F:\Music Projects\2006\Nitade 2006\_Final Audio\Enchanting! sample-lamev3.97-v0.mp3

23:48:24 : Test started.
23:48:30 : 01/01  50.0%
23:48:33 : 02/02  25.0%
23:48:37 : 03/03  12.5%
23:48:40 : 04/04  6.3%
23:48:43 : 05/05  3.1%
23:48:46 : 06/06  1.6%
23:48:53 : 07/07  0.8%
23:48:56 : 08/08  0.4%
23:49:05 : 09/09  0.2%
23:49:09 : 10/10  0.1%
23:49:14 : 11/11  0.0%
23:49:20 : 12/12  0.0%
23:49:23 : 13/13  0.0%
23:49:27 : 14/14  0.0%
23:49:33 : 15/15  0.0%
23:49:39 : 16/16  0.0%
23:49:43 : 17/17  0.0%
23:49:52 : 18/18  0.0%
23:49:59 : 19/19  0.0%
23:50:05 : 20/20  0.0%
23:50:06 : Test finished.

----------
Total: 20/20 (0.0%)


Is there a way to improve Lame for this sample? Or is it the limit of MP3? I don't find any artifact in other codec (OGG, AAC, MPC) for this sample (except lossyWAV, which is also very easy to ABX but that's off topic) but other codecs are not suitable for distribution. I'd like to put it on a website through flash player but flash only support WAV and MP3.

Here is the sample:
[attachment=4562:attachment]

Is there a way to improve Lame setting for this sample

Reply #1
Can you point out which seconds you are hearing an artifact? I heard no difference between WAV and V0.

Is there a way to improve Lame setting for this sample

Reply #2
Can you point out which seconds you are hearing an artifact? I heard no difference between WAV and V0.


I heard the difference in the hi-hats, right there at the beginning of the song.
Maybe because it's my own song that I can spot an artifact right away.

Is there a way to improve Lame setting for this sample

Reply #3
Yes, there is something wrong with the hi-hats at v0 and CBR 320.
I only did 4 tests, but the problem was pretty clear to me.

Code: [Select]
foo_abx 1.3.3 report
foobar2000 v0.9.5.2
2008/06/11 21:45:52

File A: \\.host\shared folders\retro On My Mac\Enchanting__sample.flac
File B: \\.host\shared folders\retro On My Mac\Enchanting__sample.mp3

21:45:52 : Test started.
21:50:04 : 01/01  50.0%
21:50:31 : 02/02  25.0%
21:50:56 : 03/03  12.5%
21:51:30 : 04/04  6.3%
21:51:43 : Test finished.

----------
Total: 4/4 (6.3%)

Is there a way to improve Lame setting for this sample

Reply #4
All I can hear is some kind of pre-echo. (ABX 8/8). But it isn't annoyable.

Is there a way to improve Lame setting for this sample

Reply #5
Did you master this? The WAV is too aggressive anyway...

Is there a way to improve Lame setting for this sample

Reply #6
I... except lossyWAV, which is also very easy to ABX but that's off topic)...

Which lossyWAV quality option did you use?
lame3995o -Q1.7 --lowpass 17

Is there a way to improve Lame setting for this sample

Reply #7
I... except lossyWAV, which is also very easy to ABX but that's off topic)...
Which lossyWAV quality option did you use?
.... and as development is still ongoing, did you use 1.0.0b or one of the subsequent beta versions?
lossyWAV -q X -a 4 -s h -A --feedback 2 --limit 15848 --scale 0.5 | FLAC -5 -e -p -b 512 -P=4096 -S- (having set foobar to output 24-bit PCM; scaling by 0.5 gives the ANS headroom to work)

Is there a way to improve Lame setting for this sample

Reply #8
I have tried to encode this song to MP3 for distribution (this is my own song, I composed it) but I find that the encoded song is always ABXable, even if I tried CBR 320, which AFAIK is the highest bitrate for standard MP3. I have tried disable lowpass but that didn't help, the encoded hi-hats sound blurry.
Try using ABR@320, not CBR. Also try encoding in an older LAME version, 3.96 for example.

Is there a way to improve Lame setting for this sample

Reply #9
I... except lossyWAV, which is also very easy to ABX but that's off topic)...
Which lossyWAV quality option did you use?
.... and as development is still ongoing, did you use 1.0.0b or one of the subsequent beta versions?


I use 1.0.1s and I use foobar2000 converter setting from the lossyWAV thread so it is -q 0. The artifect is clearly present at 0.09-0.10 where the drum is sampled repeatly (I don't know how to describe it). The lossyWAV file introduces higher level of hiss. Here is my ABX result:

Code: [Select]
foo_abx 1.3.3 report
foobar2000 v0.9.5.3
2008/06/11 13:37:00

File A: F:\Music Projects\2006\Nitade 2006\_Final Audio\Enchanting!\Enchanting! (Mix Revisited).tak
File B: F:\Music Projects\2006\Nitade 2006\_Final Audio\Enchanting!\1 Enchanting!.lossy.tak

13:37:00 : Test started.
13:37:54 : 01/01  50.0%
13:38:03 : 02/02  25.0%
13:38:12 : 03/03  12.5%
13:38:20 : 04/04  6.3%
13:38:31 : 05/05  3.1%
13:38:40 : 06/06  1.6%
13:38:44 : 07/07  0.8%
13:38:55 : 08/08  0.4%
13:39:03 : 09/09  0.2%
13:39:07 : 10/10  0.1%
13:39:13 : 11/11  0.0%
13:39:17 : 12/12  0.0%
13:39:24 : 13/13  0.0%
13:39:32 : 14/14  0.0%
13:39:42 : 15/15  0.0%
13:39:49 : 16/16  0.0%
13:39:59 : 17/17  0.0%
13:40:08 : 18/18  0.0%
13:40:18 : 19/19  0.0%
13:40:28 : 20/20  0.0%
13:40:30 : Test finished.

----------
Total: 20/20 (0.0%)


However, I have running nose today and I feel so dizzy I don't think I can do any test now.

I have tried to encode this song to MP3 for distribution (this is my own song, I composed it) but I find that the encoded song is always ABXable, even if I tried CBR 320, which AFAIK is the highest bitrate for standard MP3. I have tried disable lowpass but that didn't help, the encoded hi-hats sound blurry.
Try using ABR@320, not CBR. Also try encoding in an older LAME version, 3.96 for example.


Why would ABR provide better result to CBR 320. Is Lame using difference switch internally?
Which older version version would you suggest and where can I find it. ReallyRareWares seems to have only up to 3.93.1. Anyway, I will have to do a test later because I'm not very well today.

Is there a way to improve Lame setting for this sample

Reply #10
Which older version version would you suggest and where can I find it. ReallyRareWares seems to have only up to 3.93.1. Anyway, I will have to do a test later because I'm not very well today.

You can find 3.90.3 and 3.96.1 here: http://homepage.ntlworld.com/jfe1205/LAME/. But don't expect too much. 

Is there a way to improve Lame setting for this sample

Reply #11
...I use 1.0.1s and I use foobar2000 converter setting from the lossyWAV thread so it is -q 0. The artifect is clearly present at 0.09-0.10 where the drum is sampled repeatly ...

Thanks a lot for your test.
-q 0 sure is a setting full of compromises not really in line with what is intended with lossyWAV.
Something like -q 1.5 is the minimum where good results can be expected.
It should definitely be very good (though not necessarily perfect) when using the --portable quality.
Quality should be perfect with quality setting --standard.
It would be nice if you could try a higher quality setting than -q 0 if you have the time and feel like that.

Back to the topic:
It's quite interesting comparing different Lame versions even though a priori it is not expected that things will improve with older versions as 3.98b8 is very good IMO especially with respect to pre-echo behavior.
In case you give 3.90.3 a try: it may be useful to test the older gpsycho model as well which was often said to have the better pre-echo behavior. You get a gpsycho result when using 3.90.3 -b 320 -h. It would be interesting to see how it compares to the nspsytune result of --preset insane.

If you like to it would also be interesting to see how the Fraunhofer mp3 encoders are behaving. A FhG mp3 encoder is available for instance with WMP11, dBPoweramp, or as a free CLI surround encoder version which can be downloaded from All4mp3 (oh: I've just seen there is new version out if I remember well the version I downloaded recently).

But I'm afraid that with mp3 we have to accept the fact that quality can be restricted even with highest bitrate.
lame3995o -Q1.7 --lowpass 17

Is there a way to improve Lame setting for this sample

Reply #12
I use 1.0.1s and I use foobar2000 converter setting from the lossyWAV thread so it is -q 0. The artifect is clearly present at 0.09-0.10 where the drum is sampled repeatly (I don't know how to describe it). The lossyWAV file introduces higher level of hiss.....
....However, I have running nose today and I feel so dizzy I don't think I can do any test now.
The foobar2000 setting in the thread is my fault - I've amended it to --standard in the thread. Thanks for your ear-time and I hope you shake your illness quickly .

Nick.
lossyWAV -q X -a 4 -s h -A --feedback 2 --limit 15848 --scale 0.5 | FLAC -5 -e -p -b 512 -P=4096 -S- (having set foobar to output 24-bit PCM; scaling by 0.5 gives the ANS headroom to work)

Is there a way to improve Lame setting for this sample

Reply #13
Quality should be perfect with quality setting --standard.
It would be nice if you could try a higher quality setting than -q 0 if you have the time and feel like that.

Oh, at first I thought the -q setting works like Lame's -V that lower means better. I've just downloaded 1.0.1t and tried the --standard setting and I cannot ABX that, I get like 5/12.

In case you give 3.90.3 a try: it may be useful to test the older gpsycho model as well which was often said to have the better pre-echo behavior. You get a gpsycho result when using 3.90.3 -b 320 -h. It would be interesting to see how it compares to the nspsytune result of --preset insane.

Tried both 3.90.3 and 3.96.1 with CBR 320 (-b 320 -h) and 3.90.3 with --alt-preset insane (3.96.1 gives the same mp3 file as CBR 320). All is ABXable (I got 12/12 for all of them). Then I've tried ABR 320 for v3.96.1 but this time, maybe because I'm ill or because my ears are getting fatigue, I miss once but still got 14/15.

But is it possible for ABR to outperform (quality-wise) CBR at 320?

Here's the result for v3.96.1 ABR 320:

Code: [Select]
foo_abx 1.3.3 report
foobar2000 v0.9.5.3
2008/06/13 15:32:10

File A: F:\Music Projects\2006\Nitade 2006\_Final Audio\Enchanting! sample.wav
File B: F:\Music Projects\2006\Nitade 2006\_Final Audio\Enchanting! sample-lamev3.96.1-abr320.mp3

15:32:10 : Test started.
15:32:15 : 01/01  50.0%
15:32:18 : 02/02  25.0%
15:32:28 : 03/03  12.5%
15:32:50 : 04/04  6.3%
15:32:59 : 05/05  3.1%
15:33:07 : 06/06  1.6%
15:33:18 : 07/07  0.8%
15:33:21 : 07/08  3.5%
15:33:27 : 08/09  2.0%
15:33:30 : 09/10  1.1%
15:33:35 : 10/11  0.6%
15:33:40 : 11/12  0.3%
15:33:45 : 12/13  0.2%
15:33:49 : 13/14  0.1%
15:33:55 : 14/15  0.0%
15:34:01 : Test finished.

 ----------
Total: 14/15 (0.0%)

If you like to it would also be interesting to see how the Fraunhofer mp3 encoders are behaving. A FhG mp3 encoder is available for instance with WMP11, dBPoweramp, or as a free CLI surround encoder version which can be downloaded from All4mp3 (oh: I've just seen there is new version out if I remember well the version I downloaded recently).

But I'm afraid that with mp3 we have to accept the fact that quality can be restricted even with highest bitrate.

Fraunhofer is far worse. (I use dBPoweramp)

Code: [Select]
foo_abx 1.3.3 report
foobar2000 v0.9.5.3
2008/06/13 16:10:15

File A: F:\Music Projects\2006\Nitade 2006\_Final Audio\Enchanting! sample.wav
File B: F:\Music Projects\2006\Nitade 2006\_Final Audio\Enchanting! sample-FraunhoferIIS-320.mp3

16:10:15 : Test started.
16:10:21 : 01/01  50.0%
16:10:23 : 02/02  25.0%
16:10:26 : 03/03  12.5%
16:10:29 : 04/04  6.3%
16:10:31 : 05/05  3.1%
16:10:34 : 06/06  1.6%
16:10:36 : 07/07  0.8%
16:10:38 : 08/08  0.4%
16:10:40 : Test finished.

 ----------
Total: 8/8 (0.4%)


Oh, almost forget, even tried Freeformat at 550 with Lame v3.96.1. I've tried higher bitrate but the result cannot be decoded correctly, always get MAXFRAMESIZE not large enough. Anyway, foobar2000 doesn't support Freeformat so I have to get Lame to decode them first. It's still ABXable and I've got 11/12, here is the result:

Code: [Select]
foo_abx 1.3.3 report
foobar2000 v0.9.5.3
2008/06/13 15:55:49

File A: F:\Music Projects\2006\Nitade 2006\_Final Audio\Enchanting! sample.wav
File B: F:\Music Projects\2006\Nitade 2006\_Final Audio\Enchanting! sample-lamev3.96.1-freeformat550.mp3.wav

15:55:49 : Test started.
15:56:17 : 01/01  50.0%
15:56:28 : 02/02  25.0%
15:56:33 : 03/03  12.5%
15:56:54 : 04/04  6.3%
15:57:14 : 05/05  3.1%
15:57:32 : 06/06  1.6%
15:57:44 : 06/07  6.3%
15:57:57 : 07/08  3.5%
15:58:21 : 08/09  2.0%
15:58:40 : 09/10  1.1%
15:59:04 : 10/11  0.6%
15:59:22 : 11/12  0.3%
15:59:27 : Test finished.

 ----------
Total: 11/12 (0.3%)


So if it's even ABXable at 550, I think maybe this is a killer sample for Lame. Do you think Lame can be further tuned to handle these cases, or is this the limitation of MP3 format itself?

Is there a way to improve Lame setting for this sample

Reply #14
Oh, at first I thought the -q setting works like Lame's -V that lower means better. I've just downloaded 1.0.1t and tried the --standard setting and I cannot ABX that, I get like 5/12.....

....So if it's even ABXable at 550, I think maybe this is a killer sample for Lame. Do you think Lame can be further tuned to handle these cases, or is this the limitation of MP3 format itself?
Many thanks for the additional ABX'ing, I'm glad that --standard is still transparent with this sample and it's interesting that the --standard lossyFLAC version comes out at 501 kbit/s.
lossyWAV -q X -a 4 -s h -A --feedback 2 --limit 15848 --scale 0.5 | FLAC -5 -e -p -b 512 -P=4096 -S- (having set foobar to output 24-bit PCM; scaling by 0.5 gives the ANS headroom to work)

Is there a way to improve Lame setting for this sample

Reply #15
I have tried to encode this song to MP3 for distribution (this is my own song, I composed it) but I find that the encoded song is always ABXable...
I know that this isn't an answer and I also find it ABXable, but if you're only distributing the MP3 version then nobody else will have anything to ABX it against, so it won't be ABXable. I personally still find it perfectly listenable encoded with LAME in VBR at -V3. Apart from yourself (and us), who's going to know the difference?

Cheers, Slipstreem. 

Is there a way to improve Lame setting for this sample

Reply #16
...So if it's even ABXable at 550, I think maybe this is a killer sample for Lame. Do you think Lame can be further tuned to handle these cases, or is this the limitation of MP3 format itself? ...

You did a lot of tests with various encoders, so your sample should be considered a mp3 killer sample.
I think there's always a certain room for improvement (and Lame 3.98 did improve on the very bad pre-echo sample eig), but pre-echo is something where we can't get perfection with each sample.

As far as I've seen it from the posts here your sample is abxable, but it is not really annoying. Guess that's what we can expect at best from such samples.

Thanks for your lossyWAV test using --standard. Glad everything's fine.
lame3995o -Q1.7 --lowpass 17

Is there a way to improve Lame setting for this sample

Reply #17
... But is it possible for ABR to outperform (quality-wise) CBR at 320? ...

Usually not. There's a very slight chance that restrictions on 320 kbps frames (relevant for the newer Lame versions in order to be compatible with WMP11's mp3 decoder) can reduce the effective audio bitrate on certain frames. At least in theory using unrestricted 256 kbps frames can locally produce a higher audio data bitrate than 320 kbps frames.
So using CBR 256 or ABR in the same bitrate region can locally outperform CBR 320.
In practice this is not expected to be of significant relevance. Moreover there shouldn't be a significant audible difference no matter whether you use CBR 256, CBR 320, or ABR with a bitrate in between (with my personal favorite being ABR 270).
And as you've seen going extremely high in bitrate using freeformat doesn't solve your problem. guruboolez encountered the same experience with castanets which he also was able to abx at >400 kbps.
lame3995o -Q1.7 --lowpass 17

Is there a way to improve Lame setting for this sample

Reply #18
So if it's even ABXable at 550, I think maybe this is a killer sample for Lame. Do you think Lame can be further tuned to handle these cases, or is this the limitation of MP3 format itself?


MP3 format has several limitations indeed (for example, length of short block is 192 samples). What can you say about "Everything is green" sample (eig.wv). Does it has the same kind of artifact as your own sample?

Is there a way to improve Lame setting for this sample

Reply #19
Yes, 0:09-0:10 has a sharp pulse sequence that reminds me of "EIG.WV". there is a pre-echo but I don't find it annoying. I wouldn't even notice it was there If I wasn't told.

 

Is there a way to improve Lame setting for this sample

Reply #20
It seems like a strong brick wall filter was used, since the highest freqs' attacks aren't sharp at all, they're smeared considerably. Still short blocks are used when appropriate, it even trips older versions of lame with --alshort enabled. It probably has something to do with the smeared high freqs playing with psychoacoustic computations with the lower freqs. Then again, maybe I'm taking theories too far, as I often do...

Is there a way to improve Lame setting for this sample

Reply #21
This weekend I bought Magix Cleaning Lab 2007 for little money, and I found the included mp3 encoder quite interesting as it gives an astonishing good result for the very bad pre-echo sample eig.

I used 256 kBit, stereo, encoder quality: highest, padding-mode: ISO padding, and: allow mid/size stereo encoding. Encspot says it's a FhG encoder (fastenc or mp3enc), and - typical for FhG encoders at this bitrate - it doesn't use joint stereo though I explicitly allowed for it. Using 320 kbps BTW yields the usual bad result for eig.

This encoder's result for Enchanting__sample is here.
It would be interesting to learn about the quality. To me personally is fine (but it has been fine with Lame at pretty mediocre bitrate as I'm pretty deaf towards this problem).
lame3995o -Q1.7 --lowpass 17

Is there a way to improve Lame setting for this sample

Reply #22
MP3 format has several limitations indeed (for example, length of short block is 192 samples). What can you say about "Everything is green" sample (eig.wv). Does it has the same kind of artifact as your own sample?


Yes, it has the same artifact.

This encoder's result for Enchanting__sample is here.
It would be interesting to learn about the quality. To me personally is fine (but it has been fine with Lame at pretty mediocre bitrate as I'm pretty deaf towards this problem).


There is an obvious change in the encoded file, it's like it has some filter applied to it. Definitely very easy to ABX and it's not even about the pre-echo thing.

Is there a way to improve Lame setting for this sample

Reply #23

This encoder's result for Enchanting__sample is here.
It would be interesting to learn about the quality. To me personally is fine (but it has been fine with Lame at pretty mediocre bitrate as I'm pretty deaf towards this problem).


There is an obvious change in the encoded file, it's like it has some filter applied to it. Definitely very easy to ABX and it's not even about the pre-echo thing.

Sorry, looks like Magix Cleaning Lab has some default 'cleaning' active and I didn't manage so far to get rid of it.
I've found a way to circumvent the issue. There's a separate music editor within the software where effects have to be given explicitly. So it's possible to just encode the track. You can use the old link to download the encoding produced this way. Maybe you want to give it a try. I've tried all 'my' problem sample with this encoder, and I'm pretty impressed by the quality.
lame3995o -Q1.7 --lowpass 17

Is there a way to improve Lame setting for this sample

Reply #24
Maybe you want to give it a try. I've tried all 'my' problem sample with this encoder, and I'm pretty impressed by the quality.

I still can ABX it, but impressive quality indeed. But I can't ABX it from Lame encoded so I can't say which is better.

Code: [Select]
foo_abx 1.3.3 report
foobar2000 v0.9.5.3
2008/06/17 02:50:06

File A: F:\Music Projects\2006\Nitade 2006\_Final Audio\Enchanting! sample.wav
File B: E:\Documents and Settings\Varoot\Desktop\Enchanting__sample.mp3

02:50:06 : Test started.
02:50:37 : 01/01  50.0%
02:50:43 : 02/02  25.0%
02:50:55 : 03/03  12.5%
02:51:09 : 04/04  6.3%
02:51:20 : 05/05  3.1%
02:51:44 : 06/06  1.6%
02:51:53 : 07/07  0.8%
02:52:00 : 08/08  0.4%
02:52:11 : 09/09  0.2%
02:52:20 : 10/10  0.1%
02:52:27 : 11/11  0.0%
02:52:34 : 12/12  0.0%
02:52:35 : Test finished.

 ----------
Total: 12/12 (0.0%)