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: Lame Command Line (Read 29696 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Lame Command Line

Can someone give me the best lame command line for highest quality -v0 vbr new with id32 tags added? I'm not exactly sure how to configure it. Highest quality please, much appreciated!

Lame Command Line

Reply #1
Have you read the pinned topic on this board? http://www.hydrogenaudio.org/forums/index....showtopic=28124

-b320 is the best quality, but gives largest files
-V0 is as good as -b320 in most cases with a lot smaller file size
-V2 is also very good and probably an overkill for most people
-V5 even still sounds very good IMHO

So personally i would take something between -V2 and V5. Just start testing and listen if you can hear any artifacts with those settings. The --vbr-new is enabled by default on new versions of lame, so it's not need anymore in the command line.

BTW consider a lossless format like flac for building a digital backup on your pc. From there you can easily convert to mp3 in any quality for your portable player.


Can't help you with the id32 tags...

Lame Command Line

Reply #2
As for the quality, just use -V0; for the rest, you can find pointers here.

Lame Command Line

Reply #3
I just want to know the command line to get the very best and highest quality of v0 with all features.

Lame Command Line

Reply #4
You've already been provided with the information you need (or at least links to pages in which you can find it for yourself).

Lame Command Line

Reply #5
I just want to know the command line to get the very best and highest quality of v0 with all features.

just -V 0 

Lame Command Line

Reply #6
Yes. But isn't  there replaygain levels, quality, etc.?

Lame Command Line

Reply #7
All necessary quality settings are included with -V 0.

if you want to improve replaygain calculation, add --replaygain-accurate, if you don't want it to be calculated at all (and speed up encoding a bit), add --noreplaygain.

HA wiki is your friend :-)

Lame Command Line

Reply #8
It seems hard to believe -V0 is all you really need, but the devs know what they're doing and made it simple for the rest of us.
foobar2000, FLAC, and qAAC -V90
It just works people!

Lame Command Line

Reply #9
Quote
-b320 is the best quality, but gives largest files


-b 320 -q 0 - preset that gives the best possible quality for LAME 3.98
🇺🇦 Glory to Ukraine!

Lame Command Line

Reply #10
Quote
-b320 is the best quality, but gives largest files


-b 320 -q 0 - preset that gives the best possible quality for LAME 3.98

I suspect -q0 likely gives negligible benefits, if any. There's probably a reason it's not included in the recommended settings.

Lame Command Line

Reply #11
From LAME documentation:

Quote
-q 0: use slowest & best possible version of all algorithms. -q 0 and -q 1 are slow and may not produce significantly higher quality.

-q 2: recommended. Same as -h.


default is -q 3

So if you whant to get higher quality  you can use -q 2 or -h switch (it really sounds better, I can ABX -q 2 and default -q 3, -q 2 gives lower pre-echo effect)
If you don't care about compression speed you can use -q 0 and get theoretically highest possible quality.
🇺🇦 Glory to Ukraine!

Lame Command Line

Reply #12
Theoretically, or as it says "may[be] not".  In any case, anyone using vbr-new should note that -q 0-3 are equivalent. (Incidentally, I somewhat assumed that -h/-q2 was default. It can be hard to find recent information for some settings.)

Lame Command Line

Reply #13
I forgot one thing: for VBR (in LAME 3.98 and 3.98) default mode is -q 0 (in fact LAME VBR has only two quality modes - and the best mode is set by default, faster compression enables by -f switch)

So if you use -V switch you don't need to specify any other parameter for getting higher quality (theoretically)

-q 3 is default only for CBR and ABR  in this case you can use -q 2 or -q 0
🇺🇦 Glory to Ukraine!

Lame Command Line

Reply #14
Theoretically, or as it says "may[be] not".  In any case, anyone using vbr-new should note that -q 0-3 are equivalent. (Incidentally, I somewhat assumed that -h/-q2 was default. It can be hard to find recent information for some settings.)


bitcompare:

lame -b 320 -q 3
vs
lame -b 320

(I use foo_bitcompare)

you'll get "No differences found" message
🇺🇦 Glory to Ukraine!

Lame Command Line

Reply #15
I said I hadn't known that -q3 was default, not that I disbelieved you, so I've no need to bitcompare.


Lame Command Line

Reply #17
Don't know why, but today ABXing was extremely hard....

LAME 3.98.3 -b 320 -q 2
    vs
LAME 3.98.3 -b 320

Code: [Select]
foo_abx 1.3.4 report
foobar2000 v1.0.1
2010/03/20 20:40:27

File A: D:\Show_Me_Your_Spine__Sample__lame_q2.mp3
File B: D:\Show_Me_Your_Spine__Sample__lame_def.mp3

20:40:27 : Test started.
20:40:49 : 00/01  100.0%
20:41:24 : 01/02  75.0%
20:41:30 : 02/03  50.0%
20:41:41 : 03/04  31.3%
20:42:01 : 04/05  18.8%
20:42:12 : 05/06  10.9%
20:42:22 : 06/07  6.3%
20:42:35 : 07/08  3.5%
20:42:45 : 07/09  9.0%
20:42:49 : 08/10  5.5%
20:43:03 : 09/11  3.3%
20:44:05 : 10/12  1.9%
20:44:24 : 10/13  4.6%
20:44:35 : 11/14  2.9%
20:44:44 : 12/15  1.8%
20:44:54 : 13/16  1.1%
20:45:46 : Test finished.

----------
Total: 13/16 (1.1%)

🇺🇦 Glory to Ukraine!


Lame Command Line

Reply #19
Uploading is in process...
🇺🇦 Glory to Ukraine!

Lame Command Line

Reply #20
edit:

Sorry for delay. Internet connection problems...

Here is the sample

Show_Me_Your_Spine__Sample.flac
🇺🇦 Glory to Ukraine!

Lame Command Line

Reply #21
LAME 3.97 320kbps CBR

Default vs -q 2

Code: [Select]
foo_abx 1.3.4 report
foobar2000 v1.0.1
2010/03/20 20:00:23

File A: C:\Temp\Show Me Your Spine 320 CBR.mp3
File B: C:\Temp\Show Me Your Spine 320 CBR -q 2.mp3

20:00:23 : Test started.
20:00:52 : 01/01  50.0%
20:00:59 : 02/02  25.0%
20:01:07 : 03/03  12.5%
20:01:13 : 04/04  6.3%
20:01:22 : 05/05  3.1%
20:01:26 : 06/06  1.6%
20:01:35 : 07/07  0.8%
20:01:45 : 08/08  0.4%
20:01:51 : 09/09  0.2%
20:02:09 : 10/10  0.1%
20:02:14 : 11/11  0.0%
20:02:19 : 12/12  0.0%
20:02:20 : Test finished.

 ----------
Total: 12/12 (0.0%)
The obivous pre-echo artifact at the very start improves greatly when using the -q 2 switch. However there is a encoding speed decrease (16x with q 2 and 25x with the default setting, on a Core 2 Duo E6600 CPU).

Using -q 2 on this sample is still far from transparent:

Code: [Select]
foo_abx 1.3.4 report
foobar2000 v1.0.1
2010/03/20 20:02:48

File A: J:\Music\Lossless\Ministry - Side Trax\13. Show Me Your Spine (PTP).flac
File B: C:\Temp\Show Me Your Spine 320 CBR -q 2.mp3

20:02:48 : Test started.
20:03:01 : 01/01  50.0%
20:03:07 : 02/02  25.0%
20:03:15 : 03/03  12.5%
20:03:22 : 04/04  6.3%
20:03:38 : 05/05  3.1%
20:03:51 : 06/06  1.6%
20:04:03 : 07/07  0.8%
20:04:14 : 08/08  0.4%
20:04:29 : 09/09  0.2%
20:04:35 : 10/10  0.1%
20:04:44 : 11/11  0.0%
20:04:52 : 12/12  0.0%
20:04:53 : Test finished.

 ----------
Total: 12/12 (0.0%)

I have also tried out -q 0 with a more pre-echo prone sample:

Code: [Select]
foo_abx 1.3.4 report
foobar2000 v1.0.1
2010/03/20 19:42:58

File A: C:\Temp\musique-non-stop 320 CBR.mp3
File B: C:\Temp\musique-non-stop 320 CBR -q 0.mp3

19:42:58 : Test started.
19:43:33 : 01/01  50.0%
19:43:55 : 02/02  25.0%
19:44:14 : 03/03  12.5%
19:44:41 : 04/04  6.3%
19:45:16 : 04/05  18.8%
19:45:26 : 05/06  10.9%
19:45:35 : 06/07  6.3%
19:45:57 : 07/08  3.5%
19:46:13 : 08/09  2.0%
19:46:35 : 09/10  1.1%
19:46:42 : 10/11  0.6%
19:46:50 : 11/12  0.3%
19:46:57 : 12/13  0.2%
19:47:06 : 13/14  0.1%
19:47:14 : 14/15  0.0%
19:47:26 : 15/16  0.0%
19:47:35 : 16/17  0.0%
19:47:47 : 17/18  0.0%
19:47:54 : Test finished.

 ----------
Total: 17/18 (0.0%)
This sample is just riddled with pre-echo that even -q 0 barely makes any improvement. The only noticable improvement was the artifact at 0:05 was clear on the -q 0.

Also the speed for -q 0 is pretty bad, i got 10x - 11x and IMO not really worth the small improvement.
"I never thought I'd see this much candy in one mission!"


Lame Command Line

Reply #23
So, can someone tell me what is a difference between:

-b 320 -q 0

and

-V 0 -b 320 --lowpass 20.5

I think the results might be identical because for both presets all frames are 320 kbps (and lowpass filter is on 20.5 kHz)...

Someone was talking about different psy models for VBR and CBR, but here is what I see in EncSpot:



On the Details page I see some differences in the distribution of ss/ms frames and long/short blocks .
🇺🇦 Glory to Ukraine!

Lame Command Line

Reply #24
as it turned out, in fact LAME didn't use 320 kbps for every frame and I've got 274 kbps (avg) bitrate after using mp3 repacker on VBR file
Repacked CBR file has 317 kbps average bitrate.

I wonder why this happens - encoder don't use all bits for encoding
🇺🇦 Glory to Ukraine!