witchboy
Dec 17 2001, 09:34
Hi. Anyone could please tell me where can I find the FULL commands that --alt-preset standard and the likes do?
I've already downloaded the source code, but since i am not much of a programmer, i dont know where to start looking.
I am sorry if this is the Nth time this question is asked. I tried the search function of the forum, but couldnt find what I was looking for.
This seems like a F.A.Q. candidate
Thanks in advance.
tangent
Dec 17 2001, 10:41
QUOTE
Originally posted by witchboy
Hi. Anyone could please tell me where can I find the FULL commands that --alt-preset standard and the likes do?
I've already downloaded the source code, but since i am not much of a programmer, i dont know where to start looking.
I am sorry if this is the Nth time this question is asked. I tried the search function of the forum, but couldnt find what I was looking for.
This seems like a F.A.Q. candidate
Thanks in advance.
You can look in parse.c for some of the settings --alt-preset uses, but it's not going to help much because --alt-preset does a lot of other things internally which is not possible with normal switches.
Dibrom
Dec 18 2001, 03:58
Tangent is correct, the actual "standard" command line options themselves now have little meaning with the new modes (which are no longer actually just presets.. I'll get to that in a minute).
If you want to know what's going on, first look at parse.c where you will see the normal LAME options, then look in set_get.c for the "lame_set_preset_expopts" function. You can find documentation for some of the variables set there in util.h under the "presetTune" struct.
Basically, the reason the command lines themselves are useless now is because most of the "experimental" stuff (-X, -Z, --nsmsfix, etc) is overriden, adaptively, as the file is encoded. The new "modes" (standard and extreme as an example) are actually more like modifications to the psymodel itself, much like nspsytune. They are similar in both implementation and behavior in that the --alt-presets are psymodel modifications with "extras" (which would be the "normal" switches) like how nspsytune is basically a cloned and modified GPSYCHO with further options switched on by default (noise shaping 2 for example).
I'm not sure if that makes sense or not but because of the way it works there is not going to be a way to break down the entire behavior of these new "modes" into discrete command line options... if I were to do that, it would add probably about 7 or 8 (or more) new "experimental" options that wouldn't make sense to most users and which have only a very specific useful range for tuning anyway.
That's not to say that other presets can't use this work though, the parameters for the modes are set internally just like most of the command line options.. it's just a little bit more complex.
On a somewhat related note... now that this framework is in place in LAME, I'm hoping that all future preset work will expand upon this foundry instead of fragmenting everything back out into preset's with people's names on them (no offense intended), defined by a third party. This kind of approach is "hackish" and implies that there are faults in LAME's preset implementation (which there was/is depending on how you look at it). Instead of making the problem worse, the effort should then be unified and consolidated so that things are improved for everyone.