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: What are the internal switches of Alt presets? (Read 37221 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

What are the internal switches of Alt presets?

Hello to all.
Using the alt preset(s) in the Lame 3.92, i must say that
"alt preset 128 cbr" make a good job avoiding common problems
at this bitrate.
Can someone explain the internal switches or commands used by
alt preset 128 and alt preset insane?
And, if possible, the meaning?
[ Commodore 64 Forever...! ]

What are the internal switches of Alt presets?

Reply #1
I'd recommend --alt preset standard; generally if standard fails (VERY FEW samples) extreme or insane will show little to no improvement. or --alt preset 128 (abr) if you need bitrates very close to 128.

Only Dibrom (the presets developer) can answer what the internal switches really do.

HINT: use the SEARCH function once in a while

What are the internal switches of Alt presets?

Reply #2
Quote
Originally posted by Oge_user
Can someone explain the internal switches or commands used by
alt preset 128 and alt preset insane? 
And, if possible, the meaning?
--alt-preset 128 is:
Code: [Select]
-h --abr 128 --nspsytune -m j --lowpass 17500 --athtype 2 --ns-bass -6 --scale 0.93

--alt-preset cbr 128 is otherwise the same except --abr 128 is replaced by -b 128

About the meaning.. well most switches are pretty basic, --athtype 2 chooses more precise absolute threshold of hearing -curve, --ns-bass -6 will give more bits (higher resolution) for low frequencies.

--alt-preset insane : It uses code level tweaks, so you can't find switches which would be identical to it. You can see basic properties with --verbose switch.
Juha Laaksonheimo

What are the internal switches of Alt presets?

Reply #3
Verbose? Sure!
Thanks a lot for the support.
[ Commodore 64 Forever...! ]

What are the internal switches of Alt presets?

Reply #4
1) I thought if you used, say --alt-preset cbr 128, it was the same tunings as the --alt presets only "locked in" to 128

2) I didn't know scale was involved.  Is it also involved in aps, api, ape?
"You can fight without ever winning, but never win without a fight."  Neil Peart  'Resist'

What are the internal switches of Alt presets?

Reply #5
Quote
Originally posted by dreamliner77
1) I thought if you used, say --alt-preset cbr 128, it was the same tunings as the --alt presets only "locked in" to 128
What do you mean "same tuning"? Code level tuning is used with --alt-preset standard,extreme and insane. Other --alt-presets are implemented with different normal switches.
Quote
2) I didn't know scale was involved.  Is it also involved in aps, api, ape?
Scale is not used in standard,extreme or insane -presets.
Juha Laaksonheimo

What are the internal switches of Alt presets?

Reply #6
Well, I surely thought there was some code tweaking also in:
--alt-preset <bitrate>
I thought some switches were affected depending on the bitrate...
(For example, I noticed that if you go too low, you'll get audio resampled to 32Khz...)

Dibrom had plans to introduce some of the tweaks of aps into the ABR presets...

(I hate to ask this, as I certainly do not want to even mildly put any kind of pressure on him, but...) Is there any progress in that? Or all the other projects are keeping him too busy?

It was also nice to hear him say he tried some of the Naoki experimental code and got bitrate to below r3mix levels keeping nice quality... I wonder when that will see public light...

I commonly use --alt-preset between 135 and 145 for my portable needs...

What are the internal switches of Alt presets?

Reply #7
Quote
Originally posted by Kblood
Well, I surely thought there was some code tweaking also in:
--alt-preset <bitrate>
I thought some switches were affected depending on the bitrate...
(For example, I noticed that if you go too low, you'll get audio resampled to 32Khz...)


Lame resamples, if you use a bitrate (abr/cbr) below 112 kbps.

dev0
"To understand me, you'll have to swallow a world." Or maybe your words.

What are the internal switches of Alt presets?

Reply #8
Quote
Originally posted by Kblood
Well, I surely thought there was some code tweaking also in:
--alt-preset <bitrate>
I thought some switches were affected depending on the bitrate...
Sure, there are different switches used for different bitrates, but those are not exactly code-level tweaks. Those are just normal preset alias settings implemented with different switches and bitrates, but which do not include actual code level tweaks like standard,extreme and insane.

Things that change depending on the bitrate are lowpass-values ,ns-bass values, nsmsfix values etc..

But the actual code level tweaks deal with:
- Tweaked block switching threshold
- Adaptive noise measurement (uses X3 when needed)
- Tweaked noise shaping functions
- Short block tweaks (bitrate, nsmsfix values)
etc.etc. which you cannot set with normal switches.
Juha Laaksonheimo

What are the internal switches of Alt presets?

Reply #9
Once again, the hordes of experts lurking in HA rise to the rescue of a poor n00b...

... and, alas, he is retrieved from the mist of darkness of his own ignorance!

Thank you both for your quick reply

I will keep my hopes high for an even higher quality 140-150 bitrate preset...

(the current ABR presets are perfectly good enough for my ears, and surely my Archos loves them -loved them until it died, it's waiting for soldering surgery to be performed on it and be brought back to life...  - but it's good to know you can squeeze more quality of the same bitrate range...)

I actually have wet dreams of 2-pass audio encoding...

What are the internal switches of Alt presets?

Reply #10
I wanted to know what lowpass is used for standard/extreme/insane.

What are the internal switches of Alt presets?

Reply #11
Quote
Originally posted by westgroveg
I wanted to know what lowpass is used for standard/extreme/insane.
standard lowpasses at 19 kHz, extreme at 19.5 kHz, and insane at 20.5 kHz.

What are the internal switches of Alt presets?

Reply #12
Thanks a lot for the support!
[ Commodore 64 Forever...! ]

What are the internal switches of Alt presets?

Reply #13
I searched the FAQ and WIKI some more and come up with the internal preset extreme settings for LAME 3.95.1
Code: [Select]
Switch            equals               target  Y  b  lowpass resample
-V 0            = --preset extreme       240     128  19500

and for LAME 3.96.1
Code: [Select]
Switch   Preset   Target Kbps   Y Switch   -b   Lowpass   Resample
-V 0  --preset extreme  240      128  19383 Hz - 19916 Hz

I would like to know what the settings in LAME 3.90.3 are, since its encoding window shows VBR(q=2) ??? Isn't is supposed to show q=0? (I know, it's just a detail  )

What are the internal switches of Alt presets?

Reply #14
Quote
I searched the FAQ and WIKI some more and come up with the internal preset extreme settings for LAME 3.95.1
Code: [Select]
Switch            equals               target  Y  b  lowpass resample
-V 0            = --preset extreme       240     128  19500

and for LAME 3.96.1
Code: [Select]
Switch   Preset   Target Kbps   Y Switch   -b   Lowpass   Resample
-V 0  --preset extreme  240      128  19383 Hz - 19916 Hz

I would like to know what the settings in LAME 3.90.3 are, since its encoding window shows VBR(q=2) ??? Isn't is supposed to show q=0? (I know, it's just a detail   )
[a href="index.php?act=findpost&pid=323008"][{POST_SNAPBACK}][/a]


Hello, welcome to HA.

I see that you searched before asking, that is very good.

The truth is that the presets use code-level tweaks  that can't be replicated using switches That reference you show is only that, reference.

As for q 2 or 0, that has been discussed many, many times (also, the hmm, "inconvenience" of preset extreme, have you tried standarr? you would save a lot of space and if you can hear a difference you will have the undying respect of a lot of people around here). Search for an answer. Short one: q 2 is more than you can possibly need.

Welcome again.
I'm the one in the picture, sitting on a giant cabbage in Mexico, circa 1978.
Reseñas de Rock en Español: www.estadogeneral.com

What are the internal switches of Alt presets?

Reply #15
Thanks for the warm welcome 

I am going to backup my CD collection and I would like to do so in very high quality - however, CBR 320 seems overkill to me. So I go for the tested LAME 3.90.3 and --alt-preset extreme.

I tried later versions with VBR and q=0. My question is, how --alt-preset extreme in 3.90.3 compares to 3.96.1 and the setting -v -V 0 -q 0 ?

 

What are the internal switches of Alt presets?

Reply #16
Quote
I am going to backup my CD collection and I would like to do so in very high quality - however, CBR 320 seems overkill to me. So I go for the tested LAME 3.90.3 and --alt-preset extreme
I tried later versions with VBR and q=0. My question is, how --alt-preset extreme in 3.90.3 compares to 3.96.1 and the setting -v -V 0 -q 0 ?
[a href="index.php?act=findpost&pid=323013"][{POST_SNAPBACK}][/a]

@Kitanai:  First, there's no need to specify -v when you're already specifying -V0 (which is equivalent to --preset extreme, as it seems you've already discovered).
Second, I (and most others in these forums) would recommend against specifying a different -q value when already specifying a preset VBR setting. The people who set these up know what they're doing, and specifying -q 0 isn't going to improve the encode. More generally, even if you're designing your own commandline switch, -q0 might not be the way to go... the Lame helpfile says the following:
Quote
-q 0 and -q 1 are slow and may not produce significantly higher quality

Finally, the -V settings weren't implemented until 3.95, so -V0 won't work in 3.90.3, or at least it won't get you the equivalent of --preset extreme.

Most people on here would recommend that you use 3.97a11 -V0 --vbr-new (a.k.a. --preset fast standard) which will probably be slightly better in quality - and a whole lot faster - than Lame 3.90.3 --preset extreme. Lame 3.90.3 was specifically optimized for --preset standard, and is still recommended specifically for that switch, because it's been tested so much. (Even so, 3.96.1 is used by more people, and 3.97a11 used by even more people and has tested extremely well when using the --vbr-new switch.)
God kills a kitten every time you encode with CBR 320

What are the internal switches of Alt presets?

Reply #17
Thanks for your thoughts on this issue - it basically supports my decision. I guess I just stick to 3.90.3 since I already encoded quite a few files with its extreme setting. I little extended encoding time won't hurt me 2.8 GHz machine 

Thanks again!