Help - Search - Members - Calendar
Full Version: LAME: Command line help please
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - Tech
Boombox
Hi all, great forum smile.gif

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
-b 320 --add-id3v2 --pad-id3v2 --ta "%a" --tt "%t" --tl "%g" --ty "%y" --tn "%n" %s %d


Any help greatly appreciated

Thanks
Synthetic Soul
I would use:

CODE
-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.

Edit: clarified "in some frames"
DARcode
Synthetic Soul is right on the money, anyway from the docs in the LAME bundle available on RareWares.org:
CODE
* -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.
Jebus
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.