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: Encoding to FLAC failure in v2.0 (Read 994 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Encoding to FLAC failure in v2.0

I recently installed v2.0 of FB2K, and now whenever I try to convert something to FLAC, I get this error:

  An error occurred while writing to file (The encoder has terminated prematurely with code 1 (0x00000001); please re-check parameters) : "C:\audio\05 John Cope.flac"
  Additional information:
  Encoder stream format: 44100Hz / 2ch / 16bps
  Command line: flac.exe -s --ignore-chunk-sizes -5 - -o "05 John Cope.flac"
  Working folder: C:\audio\
  Conversion failed: The encoder has terminated prematurely with code 1 (0x00000001); please re-check parameters

When I convert using the old version (0.9.4.5), it works fine.

Possible reasons that occur to me:
1. Perhaps v2.0 requires a newer FLAC.EXE than the one I have (which is v1.3.2)?
2. Perhaps the location of FLAC.EXE is not set up correctly in FB2k v2.0 - but I can't find anywhere to check this.

Any suggestions for what may be wrong?

Re: Encoding to FLAC failure in v2.0

Reply #1
2. Perhaps the location of FLAC.EXE is not set up correctly in FB2k v2.0 - but I can't find anywhere to check this.
There's probably an easier way, but you could temporarily change the name of your flac.exe.  Next time you attempt a conversion, foobar2000 will ask for the location of the file.

P.S. FLAC 1.3.2 should be fine, but maybe there is a 32/64-bit compatibility issue?  Now, I'm just guessing.

Re: Encoding to FLAC failure in v2.0

Reply #2
Possible reasons that occur to me:
1. Perhaps v2.0 requires a newer FLAC.EXE than the one I have (which is v1.3.2)?
2. Perhaps the location of FLAC.EXE is not set up correctly in FB2k v2.0 - but I can't find anywhere to check this.
Use the version of flac.exe compiled by Case (which is version 1.4.3 minus the separate DLL dependency).  It is contained in the Free Encoder Pack (https://www.foobar2000.org/encoderpack) and installed by default to the Foobar2000/encoders subfolder, which is the default location for all encoders unless you specify otherwise as mentioned by Apesbrain.

Re: Encoding to FLAC failure in v2.0

Reply #3
@cliveb : the console gives no additional info?

Similar has been reported before, does this ring any bell? https://hydrogenaud.io/index.php/topic,85009.0.html

Anyway, if you try to reinstall the Free Encoder Pack and the problem is gone, what then? Trying to copy your old 1.3.2 over the encoder pack's exe, would you then get the same problem returning?