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: Foobar can't transcode OGG to MP3 (Read 2046 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Foobar can't transcode OGG to MP3

On a portable version of the 64 bit version of foobar2000 v2.1.5 I can play Ogg vorbis files but can't convert it to any other format. I understand transcoding lossy to lossy is bad but I just unearthed my old iPod and want to put some MP3s because it can't read OGG. So I tried converting to MP3 lame VBR v3 and this popped up immediately, before the conversion process even started:

1 out of 1 files converted with major problems.

Source: "D:\Have You Ever Seen the Rain.ogg"
  An error occurred while writing to file (The encoder has terminated prematurely with code 1 (0x00000001); please re-check parameters) : "D:\Have You Ever Seen the Rain.mp3"
  Additional information:
  Encoder stream format: 44100Hz / 2ch / 32bps floating-point
  Command line: lame.exe -S --noreplaygain -V 2 - "Have You Ever Seen the Rain.mp3"
  Working folder: D:\
  Conversion failed: The encoder has terminated prematurely with code 1 (0x00000001); please re-check parameters

I have tried a few other OGG files and the same thing happened. I have tried converting them to other formats like WAV, FLAC, Wavpack, all work fine except MP3. At first I thought the problem was the MP3 encoder, however I tried converting other formats to MP3 and they work fine. Wavpack to MP3 is fine. Flac to mp3 also fine. Just OGG to MP3 is not. Any idea what I'm doing wrong? I have installed the free encoder pack from foobar official website but the problem persists.

Re: Foobar can't transcode OGG to MP3

Reply #1
If nothing else, you can go OGG > WAV > MP3 without additional degradation.
It's your privilege to disagree, but that doesn't make you right and me wrong.

Re: Foobar can't transcode OGG to MP3

Reply #2
Source audio codec is irrelevant but Vorbis is probably the only source format you tried that produces floating point output. Is it possible you didn't install the Free Encoder Pack to the same location where your foobar2000 v2.1.5 is? Or have you perhaps made foobar2000 use custom encoder paths? Only explanation I can think of is that you are actually using some decades old lame.exe that didn't yet support floating point intput.

Check that there are no wrong paths at Preferences -> Advanced -> Tools -> Converter -> Additional command-line encoder paths. By default it should be blank.

Re: Foobar can't transcode OGG to MP3

Reply #3
Source audio codec is irrelevant but Vorbis is probably the only source format you tried that produces floating point output.
But wouldn't that mean the OP can't convert OGG to anything at all?  He says:
I have tried a few other OGG files and the same thing happened. I have tried converting them to other formats like WAV, FLAC, Wavpack, all work fine except MP3.
It's your privilege to disagree, but that doesn't make you right and me wrong.

Re: Foobar can't transcode OGG to MP3

Reply #4
If nothing else, you can go OGG > WAV > MP3 without additional degradation.

Interesting
192kbps MP3 > WAV > 192kbps(q6.0) OGG
If I do this, will I be able to manage tags consistently with FLAC files?
Oh my god why didn't I think of this before?


Re: Foobar can't transcode OGG to MP3

Reply #5
If nothing else, you can go OGG > WAV > MP3 without additional degradation.

Interesting
192kbps MP3 > WAV > 192kbps(q6.0) OGG
I didn't mean there will be no degradation, only that there will be no additional degradation than going directly from one lossy format to another lossy format (because that involves an intermediate decode just the same).
It's your privilege to disagree, but that doesn't make you right and me wrong.

Re: Foobar can't transcode OGG to MP3

Reply #6
If nothing else, you can go OGG > WAV > MP3 without additional degradation.

Interesting
192kbps MP3 > WAV > 192kbps(q6.0) OGG
I didn't mean there will be no degradation, only that there will be no additional degradation than going directly from one lossy format to another lossy format (because that involves an intermediate decode just the same).

Yes, I understood
I've tested some files and found some cases where the loss is noticeable.
I've never thought of converting to a WAV file first and then converting it back to another format, so I was just excited for a very short time.
Thank you.

Re: Foobar can't transcode OGG to MP3

Reply #7
If tags don't come out right, try to go by way of WavPack instead.
I was about to suggest FLAC, because it uses the same tagging scheme as Ogg Vorbis, but floating-point may clip when converted to an integer format. WavPack can carry float. You don't need any good compression, so use -f.

Re: Foobar can't transcode OGG to MP3

Reply #8
Source audio codec is irrelevant but Vorbis is probably the only source format you tried that produces floating point output.
But wouldn't that mean the OP can't convert OGG to anything at all?  He says:
I have tried a few other OGG files and the same thing happened. I have tried converting them to other formats like WAV, FLAC, Wavpack, all work fine except MP3.
Not at all. All converter presets have the option to define what kind of data the encoder accepts. WAV accepts everything and would support float too but foobar2000 by default will truncate the lossy output to 16-bit integer PCM. FLAC will be limited to integer PCM too. But OP using ancient lame.exe before it received float input support does not affect anything else. I don't know how old lame has to be but in 2009 lame didn't yet have wildly available float input.

If nothing else, you can go OGG > WAV > MP3 without additional degradation.
Interesting
192kbps MP3 > WAV > 192kbps(q6.0) OGG
If I do this, will I be able to manage tags consistently with FLAC files?
Oh my god why didn't I think of this before?
This makes no sense. It offers absolutely no benefits and only makes encoding process slower. It also doesn't affect how tags can be transferred from the source.

Re: Foobar can't transcode OGG to MP3

Reply #9
Source audio codec is irrelevant but Vorbis is probably the only source format you tried that produces floating point output. Is it possible you didn't install the Free Encoder Pack to the same location where your foobar2000 v2.1.5 is? Or have you perhaps made foobar2000 use custom encoder paths? Only explanation I can think of is that you are actually using some decades old lame.exe that didn't yet support floating point intput.

Check that there are no wrong paths at Preferences -> Advanced -> Tools -> Converter -> Additional command-line encoder paths. By default it should be blank.

Thank you that's exactly it!! Somehow my foobar points to a codecs folder and the lame.exe inside was from 2010. Phew, finally!