Question about switches -q and -k |
![]() ![]() |
Question about switches -q and -k |
May 30 2009, 13:08
Post
#1
|
|
![]() Group: Members Posts: 141 Joined: 1-February 08 Member No.: 50965 |
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? 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? |
|
|
|
May 30 2009, 14:38
Post
#2
|
|
|
Group: Members Posts: 1708 Joined: 1-September 05 From: SE Pennsylvania Member No.: 24233 |
Keeping them as separate values that give the same result provides backward compatibility.
|
|
|
|
May 30 2009, 14:43
Post
#3
|
|
|
Group: Members Posts: 1047 Joined: 24-June 02 From: Catalunya(Spain) Member No.: 2383 |
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). |
|
|
|
Jun 1 2009, 16:51
Post
#4
|
|
![]() Group: Members Posts: 141 Joined: 1-February 08 Member No.: 50965 |
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)? |
|
|
|
Jun 1 2009, 17:08
Post
#5
|
|
|
Group: Members Posts: 1708 Joined: 1-September 05 From: SE Pennsylvania Member No.: 24233 |
Since there is by default NO highpass, --highpass 0 was redundant and probably caused the error.
|
|
|
|
Jun 1 2009, 18:24
Post
#6
|
|
|
Group: Members Posts: 170 Joined: 6-February 08 From: San Diego, CA Member No.: 51066 |
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" This post has been edited by WonderSlug: Jun 1 2009, 18:32 |
|
|
|
Jun 1 2009, 18:50
Post
#7
|
|
|
Group: Members Posts: 1708 Joined: 1-September 05 From: SE Pennsylvania Member No.: 24233 |
As I recall, the real lowest highpass is several hundred Hz. Anything less than that is still no highpass.
|
|
|
|
Jun 1 2009, 19:16
Post
#8
|
|
![]() Group: Members Posts: 141 Joined: 1-February 08 Member No.: 50965 |
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. |
|
|
|
Jun 1 2009, 23:17
Post
#9
|
|
|
Group: Members Posts: 1047 Joined: 24-June 02 From: Catalunya(Spain) Member No.: 2383 |
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? |
|
|
|
Jun 2 2009, 10:37
Post
#10
|
|
![]() LAME developer Group: Developer Posts: 2950 Joined: 1-October 01 From: Nanterre, France Member No.: 138 |
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) |
|
|
|
Jun 2 2009, 14:09
Post
#11
|
|
![]() Group: Members Posts: 141 Joined: 1-February 08 Member No.: 50965 |
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. |
|
|
|
Jun 2 2009, 15:52
Post
#12
|
|
|
Group: Members Posts: 1708 Joined: 1-September 05 From: SE Pennsylvania Member No.: 24233 |
Couldn't you just use an earlier version of Lame in which the -k switch works?
|
|
|
|
Jun 2 2009, 15:54
Post
#13
|
|
|
ReplayGain developer Group: Developer Posts: 3203 Joined: 5-November 01 From: North Yorkshire Member No.: 409 |
|
|
|
|
Jun 2 2009, 16:04
Post
#14
|
|
![]() Group: Developer Posts: 821 Joined: 2-December 07 Member No.: 49183 |
QUOTE (Sylph) 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 (Sylph) But when I used the --lowpass 20.5, LAME said it used polyphase lowpass Surely. |
|
|
|
Jun 2 2009, 16:15
Post
#15
|
|
![]() LAME developer Group: Developer Posts: 584 Joined: 22-September 01 Member No.: 5 |
I didn't tell you that, but try "--lowpass -1"
|
|
|
|
Jun 2 2009, 16:47
Post
#16
|
|
|
Group: Members Posts: 1708 Joined: 1-September 05 From: SE Pennsylvania Member No.: 24233 |
|
|
|
|
Jun 2 2009, 17:47
Post
#17
|
|
![]() Group: Developer Posts: 821 Joined: 2-December 07 Member No.: 49183 |
QUOTE try "--lowpass -1" Wow. |
|
|
|
Jun 2 2009, 18:00
Post
#18
|
|
|
Group: Members Posts: 1047 Joined: 24-June 02 From: Catalunya(Spain) Member No.: 2383 |
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st November 2009 - 17:20 |