IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Question about switches -q and -k
Sylph
post 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? blink.gif 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?
Go to the top of the page
 
+Quote Post
pdq
post 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.
Go to the top of the page
 
+Quote Post
[JAZ]
post 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).

Go to the top of the page
 
+Quote Post
Sylph
post 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)?
Go to the top of the page
 
+Quote Post
pdq
post 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.
Go to the top of the page
 
+Quote Post
WonderSlug
post 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
Go to the top of the page
 
+Quote Post
pdq
post 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.
Go to the top of the page
 
+Quote Post
Sylph
post 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.
Go to the top of the page
 
+Quote Post
[JAZ]
post Jun 1 2009, 23:17
Post #9





Group: Members
Posts: 1047
Joined: 24-June 02
From: Catalunya(Spain)
Member No.: 2383



QUOTE (Sylph @ Jun 1 2009, 20:16) *
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?

Go to the top of the page
 
+Quote Post
Gabriel
post Jun 2 2009, 10:37
Post #10


LAME developer


Group: Developer
Posts: 2950
Joined: 1-October 01
From: Nanterre, France
Member No.: 138



QUOTE (Sylph @ Jun 1 2009, 19:16) *
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)
Go to the top of the page
 
+Quote Post
Sylph
post Jun 2 2009, 14:09
Post #11





Group: Members
Posts: 141
Joined: 1-February 08
Member No.: 50965



QUOTE ([JAZ] @ Jun 2 2009, 00:17) *
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? blink.gif

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.
Go to the top of the page
 
+Quote Post
pdq
post 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?
Go to the top of the page
 
+Quote Post
2Bdecided
post Jun 2 2009, 15:54
Post #13


ReplayGain developer


Group: Developer
Posts: 3203
Joined: 5-November 01
From: North Yorkshire
Member No.: 409



QUOTE (pdq @ Jun 2 2009, 15:52) *
Couldn't you just use an earlier version of Lame in which the -k switch works?
Like the equivalent alpha version?
Go to the top of the page
 
+Quote Post
lvqcl
post 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.
Go to the top of the page
 
+Quote Post
robert
post 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"
Go to the top of the page
 
+Quote Post
pdq
post Jun 2 2009, 16:47
Post #16





Group: Members
Posts: 1708
Joined: 1-September 05
From: SE Pennsylvania
Member No.: 24233



QUOTE (robert @ Jun 2 2009, 11:15) *
I didn't tell you that, but try "--lowpass -1"

Are you sure you want to encourage this silliness? rolleyes.gif
Go to the top of the page
 
+Quote Post
lvqcl
post Jun 2 2009, 17:47
Post #17





Group: Developer
Posts: 821
Joined: 2-December 07
Member No.: 49183



QUOTE
try "--lowpass -1"

Wow.
Go to the top of the page
 
+Quote Post
[JAZ]
post Jun 2 2009, 18:00
Post #18





Group: Members
Posts: 1047
Joined: 24-June 02
From: Catalunya(Spain)
Member No.: 2383



QUOTE (Sylph @ Jun 2 2009, 15:09) *
Wait. How did this conversation plummet into offensive statements? Now I'm stupid? blink.gif


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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st November 2009 - 21:36