Help - Search - Members - Calendar
Full Version: Flac Error
Hydrogenaudio Forums > Lossless Audio Compression > FLAC
walla
Hello!
I just tried to convert some big wav-files (25-55MB) with foobar2k into flac. But everytime this error occurs:

CODE
Error writing to file (Encoder has terminated prematurely with code 1; please re-check parameters)


If I convert e.g. a mp3-file with the same flac-preferences it works without a problem.
I use flac.exe v1.1.2 (ICL8.1 compile, "P3 and Generic") and have libmmd.dll in the foobar-folder, too.

Can anyone give a hint what to do?
Egor
QUOTE(walla @ Jul 31 2006, 18:44) *
Can anyone give a hint what to do?

What is the format of source wav files (you can view it in the Properties dialogue in foobar2000)? Did you try original flac.exe from http://flac.sourceforge.net?
walla
Here the Info of the Files:
CODE
Sample Rate : 36000 Hz
Channels : 2
Bits Per Sample : 16
Bitrate : 1152 kbps
Codec : PCM
Encoding : lossless


If I use the flac.exe of flac.sourceforge.net the same error occurs.
Egor
You're getting this error because of 36000 Hz samplerate. Here is the detailed explanation:
QUOTE
test.wav: ERROR initializing encoder
state = FLAC__STREAM_ENCODER_NOT_STREAMABLE

The encoding parameters specified do not conform to the FLAC Subset and may not
be streamable or playable in hardware devices. Add --lax to the command-line
options to encode with these parameters.

You need to specify custom encoding parameters in foobar2000:
- go to Preferences -> Tools -> Converter
- doubleclick on FLAC entry
- in the Encoder dropdown menu change FLAC to Custom
- change the Parameters string from "-s -8 - -o %d" to "--lax -s -8 - -o %d" (add --lax option in the beginning of the string).

With the --lax option FLAC will encode 36 kHz files just fine.
walla
Thank you very much! Now it works. smile.gif
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-2008 Invision Power Services, Inc.