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 help please (Read 2727 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

LAME: Command line help please

Hi all, great forum

I need to set a VBR compression so that the minimum compression is 192 and the max is 256. Can this be done?

Currently I have a basic 320 setup:

Code: [Select]
-b 320 --add-id3v2 --pad-id3v2 --ta "%a" --tt "%t" --tl "%g" --ty "%y" --tn "%n" %s %d


Any help greatly appreciated

Thanks

LAME: Command line help please

Reply #1
I would use:

Code: [Select]
-V1 --vbr-new --add-id3v2 --pad-id3v2 --ta "%a" --tt "%t" --tl "%g" --ty "%y" --tn "%n" %s %d


It doesn't exactly answer your question, but your requirements are, quite frankly, plain silly.

According to this table in the wiki the VBR preset -V1 matches your requirements most accurately.  The presets are a way more sensible way to attain a certain quality for your music.  This may result in MP3s with a bitrate lower than 192 or higher than 256 in some frames, at the price of a better quality MP3.

[span style='font-size:8pt;line-height:100%']Edit: clarified "in some frames"[/span]
I'm on a horse.

LAME: Command line help please

Reply #2
Synthetic Soul is right on the money, anyway from the docs in the LAME bundle available on RareWares.org:
Code: [Select]
* -b n    bitrate 
For MPEG1 (sampling frequencies of 32, 44.1 and 48 kHz)
n = 32,40,48,56,64,80,96,112,128,160,192,224,256,320

For MPEG2 (sampling frequencies of 16, 22.05 and 24 kHz)
n = 8,16,24,32,40,48,56,64,80,96,112,128,144,160

Default is 128 kbps for MPEG1 and 64 kbps for MPEG2.

When used with variable bitrate encoding (VBR), -b specifies the minimum bitrate to be used. However, in order to avoid wasted space, the smallest frame size available will be used during silences.

--------------------------------------------------------------------------------

* -B n    maximum VBR/ABR bitrate  
For MPEG1 (sampling frequencies of 32, 44.1 and 48 kHz)
n = 32,40,48,56,64,80,96,112,128,160,192,224,256,320

For MPEG2 (sampling frequencies of 16, 22.05 and 24 kHz)
n = 8,16,24,32,40,48,56,64,80,96,112,128,144,160

Specifies the maximum allowed bitrate when using VBR/ABR

The use of -B is NOT RECOMMENDED. A 128kbps CBR bitstream, because of the bit reservoir, can actually have frames which use as many bits as a 320kbps frame. VBR modes minimize the use of the bit reservoir, and thus need to allow 320kbps frames to get the same flexibility as CBR streams.
WavPack 5.7.0 -b384hx6cmv / qaac64 2.80 -V 100

 

LAME: Command line help please

Reply #3
If you insist on creating such weird, needlessly bloated and poor sounding MP3s, you could use:

-V1 -b 192 -B 256
or
-V0 -b 192 -B 256

I'd be irresponsible though if i didn't point out that setting a -b option will needlessly increase bloat, and setting a -B option will needlessly decrease quality. Let the Lame developers decide how best to make MP3s and just use a -V setting.