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: Question about switches -q and -k (Read 8268 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Question about switches -q and -k

I know these have been discussed many times before and that the recommended settings say that, generally, less switches is better. That, for example, doesn't have to include cases like when you know you can't hear frequencies above a certain threshold etc.

Anyway, since LAME 3.98.2 ignores the -k switch, can I keep all frequencies by specifying --lowpass 20.5 -- highpass 0?  It is a purely theoretical question.

And since that same version of LAME apparently makes no distinction between -q from 0 to 3, why are those still present as possible values? I.e. why isn't it all one setting?

Question about switches -q and -k

Reply #1
Keeping them as separate values that give the same result provides backward compatibility.

Question about switches -q and -k

Reply #2
LAME by default does not use a highpass filter, so the --highpass switch is not needed in this case.

Also, -q 0, 1, 2, 3 are the same, just with VBR (and vbr-new). It does have an effect with CBR (because the difference in the algorithms).


Question about switches -q and -k

Reply #3
I've just tried this and, obviously, --lowpass 20.5 --highpass 0 returns an error.

No way to include all the frequencies and go around -k (which doesn't work)?

Question about switches -q and -k

Reply #4
Since there is by default NO highpass, --highpass 0 was redundant and probably caused the error.

Question about switches -q and -k

Reply #5
According to LAME 3.98.2  command line, "highpass" must be at least 0.001

So, the "--highpass 0" specification did cause the error.

Use "--highpass 0.001" if you truly want it.  That specifies one hertz.




EDIT:  changed "must be greater than" to "must be at least"

Question about switches -q and -k

Reply #6
As I recall, the real lowest highpass is several hundred Hz. Anything less than that is still no highpass.

Question about switches -q and -k

Reply #7
Thanks.

But when I used the --lowpass 20.5, LAME said it used polyphase lowpass and then listed a range from which it filtered out the frequencies.

So perhaps, even that didn't serve much purpose.

Question about switches -q and -k

Reply #8
But when I used the --lowpass 20.5, LAME said it used polyphase lowpass and then listed a range from which it filtered out the frequencies.


Please, if you don't know what you are doing or what you are talking about, refrain from doing it.


A filter never filters at an exact Hertz. It has a range of decay, and that's what LAME is telling you when it is used.
I assume you're not as stupid to think that it uses a "passband between 18Khz and 19Khz", do you?


Question about switches -q and -k

Reply #9
But when I used the --lowpass 20.5, LAME said it used polyphase lowpass and then listed a range from which it filtered out the frequencies.

No. It actually told you about the transition band it's using. (and if I remember well, "transition band" is explicitely mentionned)

You might find the transition band to be a bit wide. This is because Lame is directly using the bands from the mp3's polyphase filter to do the filtering. (and anyhow, brickwall filters are not really a good idea for a lowpass)

Question about switches -q and -k

Reply #10
Please, if you don't know what you are doing or what you are talking about, refrain from doing it.


A filter never filters at an exact Hertz. It has a range of decay, and that's what LAME is telling you when it is used.
I assume you're not as stupid to think that it uses a "passband between 18Khz and 19Khz", do you?


Wait. How did this conversation plummet into offensive statements? Now I'm stupid? 

Anyway... I know that presets are the golden standard. I've said it many times. I meant to use these MP3s only in this experiment.

If you knew my command options wouldn't work, why didn't you say so? The basic question was: how do you go around the fact that -k isn't an option anymore? I obviously didn't find the minimum highpass and maximum lowpass and that's the whole point - so I asked.

So yes, I don't know what I'm doing, which is why I'm asking you all here.

Question about switches -q and -k

Reply #11
Couldn't you just use an earlier version of Lame in which the -k switch works?


Question about switches -q and -k

Reply #13
Quote
The basic question was: how do you go around the fact that -k isn't an option anymore? I obviously didn't find the minimum highpass and maximum lowpass and that's the whole point - so I asked.


It depends on what do you want to do.

If you want to "keep all frequencies by specifying --lowpass X -- highpass Y" - then no, you cannot keep all frequencies. LAME 3.98.2 cuts all frequencies above ~20.5 kHz, and you cannot cancel this.

Quote
But when I used the --lowpass 20.5, LAME said it used polyphase lowpass

Surely.

Question about switches -q and -k

Reply #14
I didn't tell you that, but try "--lowpass -1"


Question about switches -q and -k

Reply #16
Quote
try "--lowpass -1"

Wow.

 

Question about switches -q and -k

Reply #17
Wait. How did this conversation plummet into offensive statements? Now I'm stupid?


I wasn't polite, but i didn't really tell you that.
The point was that you weren't clear on your questions, and said some things that didn't make sense.