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: MP3 320 CBR in Foobar2000 v0.9 (Read 9240 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

MP3 320 CBR in Foobar2000 v0.9

I always used Foobar2000 v0.8.3 to convert my APE and FLAC files to MP3 with a bitrate of 320 CBR. Today I downloaded Foobar2000 v0.9 and I can only choose for conversion to a maximum of ~245kbps (*) V0.

How can I convert to 320 CBR with Foobar2000 v0.9?

MP3 320 CBR in Foobar2000 v0.9

Reply #1
Edit a LAME preset, and change the dropdown list at the top to "Custom"

Change the parameters to:

-b 320 - %d
I'm on a horse.

MP3 320 CBR in Foobar2000 v0.9

Reply #2
Thanks for your reply Synthetic Soul,

How can I edit a LAME preset?

MP3 320 CBR in Foobar2000 v0.9

Reply #3
I think you have to move from "MP3" to Custom

MP3 320 CBR in Foobar2000 v0.9

Reply #4
"Preferences" > "Tools/Converter".

Select an "MP3 (LAME)" preset from the "Encoding presets" list.

Click "Edit".

Change the Encoder dropdown from "MP3 (LAME)" to "Custom".
I'm on a horse.

MP3 320 CBR in Foobar2000 v0.9

Reply #5
Thanks a lot!

MP3 320 CBR in Foobar2000 v0.9

Reply #6
Hi
Normally I use VBR but I wanted to check something so I tried CBR but I always get this error:

Error writing to file (Encoder has terminated prematurely with code -1; please re-check parameters) : file://G:\Bearbeiten\COW\1 Music00.mp3

I used these parameters:
-S --noreplaygain -b 320 - %d

When I replace -b 320 with -V 0 --vbr-new or just -V 0 everything works fine.

First I thought the parameters are wrong but -b 320 works with EAC.
Where is the problem???

MP3 320 CBR in Foobar2000 v0.9

Reply #7
Your command line works fine for me.

I'm on a horse.

MP3 320 CBR in Foobar2000 v0.9

Reply #8
Just played a bit around and converted an mp3 back to wave and then tried to convert it with -b 320 and it worked.

Are there any requirements I have to meet for converting to cbr 320 with lame?

The files that give me the error have these parameters:
Sample Rate : 22050 Hz
Channels : 2
Bits Per Sample : 16
Bitrate : 705 kbps
Codec : PCM
Encoding : lossless

MP3 320 CBR in Foobar2000 v0.9

Reply #9
If you pass LAME a file with a samplerate of 22KHz it will attempt to use MPEG 2 Layer III, which has a maximum bitrate of 160kbps.  Here's the output from LAME on the command line:

Code: [Select]
MPEG-1   layer III sample frequencies (kHz):  32  48  44.1
bitrates (kbps): 32 40 48 56 64 80 96 112 128 160 192 224 256 320

MPEG-2   layer III sample frequencies (kHz):  16  24  22.05
bitrates (kbps):  8 16 24 32 40 48 56 64 80 96 112 128 144 160

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

fatal error during initialization

If you really want your file as 320kbps, although given the quality I don't know why, you should apply resampling before conversion, by checking the DSP checkbox on foobar's Converter dalogue, and selecting "Resampler (PPHS)".  Obviously resampling to 44100Hz is adequate - but you'd need someone who knows what they're talking about to say whether you would do better to use 48000Hz, for example.
I'm on a horse.

MP3 320 CBR in Foobar2000 v0.9

Reply #10
@Synthetic Soul
Thanks, using the Resampler worked fine.
I just wanted 320 because I want to compare those files with the versions I made with -V 0.