planetmike wrote: If the Project Rate (Hz) isn't at the same sample rate of the track, then the output is not what is expected. But when the sample rate and project rate are the same, then the export works fine.
Not quite, the answer is complex. Were you using a very low project rate? The operative factor is that if the project rate is low, you may well get the bit rate adjusted downwards irrespective of whether the sample rate of the track is the same as the project rate.
For example, if the bit rate is set in Options at 128 kbps, you need a project rate of 16000 Hz or more to get 128 kbps, otherwise at 12000 Hz or below the MP3 will produce 64 kbps instead.
If for example you want to produce a 8000 Hz 128 kbps MP3, you have to use LAME at the command line by choosing "(external program)" when you export, then click "Options" and enter:
Code: Select all
<path to LAME in quotes> lame -b 128 - "%f"
On Mac. I'm guessing you would use the front end (non-dylib file) from
http://www.rarewares.org/files/mp3/lame_3.98.2.dmg to point "(external program)" to.
If you omit the "-b 128" above which specifies 128 kbps, LAME at the command line (on Windows) gives you only 24 kbps (constant bit rate). This is probably because LAME tends to regard higher bit rate/ low sample rate (and lower bit rate / high sample rate) combinations as being problematic for quality.
Without a lot of digging, I''m not sure why Audacity only gives you 64 kbps at 8000 to 12000 Hz when you ask for 128 kbps, but it may be due to how Audacity is set up to control the dynamic LAME library used for "MP3 Files" export. Or it may be due to confusion in the MPEG 2.5 specification for very low 8000 to 12000 Hz sample rates - 2.5 is only an unofficial extension of the MP3 standard. On
http://lame.cvs.sourceforge.net/viewvc/lame/lame/USAGE, it quotes MPEG-2.5 as
Code: Select all
For MPEG-2.5 (sampling frequencies of 8, 11.025 and 12 kHz)
bit rate = 8, 16, 24, 32, 40, 48, 56, 64
which shows that 64 kbps is the maximum permitted bit rate with those low sample rates, which might explain what Audacity does when exporting using "MP3 files". However, other definitions including the one that Lame.exe 3.98.3 at the command line gives show:
Code: Select all
MPEG-2.5 layer III sample frequencies (kHz): 8 12 11.025
bitrates (kbps): 8 16 24 32 40 48 56 64 80 96 112 128 144 160
thus providing support for higher bit rates at low sample rates.
I would certainly listen to what 8000 Hz files sound like at 128 kbps to see if 64 kbps might not sound better.
Gale