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: f2k FLAC to MP3 fail error (Read 4779 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

f2k FLAC to MP3 fail error

Hi folks....long time lurker - learned so much around these parts over the years.  But now am in need of some help that I have never encountered before.  The culprit?  WIN 10-64Home.

Been using f2k for years as my quick, go-to player.  Just got a new i7 laptop with Win 10 on it.  Prior laptop was workhorse i5 Win 7 64.  Had zero issues with conversion of formats on the Win7 machine.  I basically cloned the settings and f2k install main and components folders over to the new Win 10 machine.  Most other f2k components I use work fine on the new machine.  But the primary one I rely on, FLAC to LAME MP3 now is refusing to work.   Quick machine/OS specs below and the f2k error message I'm getting.  I am using of course the latest LAME distro from RAREWARZ.

OS: Win10 64Home v.1803
RAM: 16GB
CPU: i7-8th gen
foobar v.1.4
LAME v3.99.5-64

f2k error message - this is 100% recurring with ALL FLAC to MP3 conversions I try.

Please help me out folks!  Have of course searched high and low but no recent similar examples to be found anywhere I knew to look.  So, decided to come here where the big brains hang... :)

Cheers and thanks so much in advance!
-les

1 out of 1 tracks converted with major problems.

Source: "D:\_Downloads\Sithu Aye (Progressive Metal • United Kingdom)\2016 - Cassini (5th Anniversary Remaster)\Sithu Aye - Cassini (5th Anniversary Remaster) - 01 Pillars of Creation.flac"
  An error occurred while writing to file (The encoder has terminated prematurely with code -1073741819 (0xC0000005); please re-check parameters) : "D:\_Downloads\Sithu Aye (Progressive Metal • United Kingdom)\2016 - Cassini (5th Anniversary Remaster)\Sithu Aye - Cassini (5th Anniversary Remaster) - 01. Pillars of Creation.mp3"
  Additional information:
  Encoder stream format: 44100Hz / 2ch / 16bps
  Command line: "D:\AppData\LAME MP3 Binaries_x64\lame3.99.5-64\lame.exe" -S --noreplaygain -V 0 - "Sithu Aye - Cassini (5th Anniversary Remaster) - 01. Pillars of Creation.mp3"
  Working folder: D:\_Downloads\Sithu Aye (Progressive Metal • United Kingdom)\2016 - Cassini (5th Anniversary Remaster)\
 
  Conversion failed: The encoder has terminated prematurely with code -1073741819 (0xC0000005); please re-check parameters

Re: f2k FLAC to MP3 fail error

Reply #1
maybe, you need a lame 32bit...

Re: f2k FLAC to MP3 fail error

Reply #2
Using 64-bit binaries is fine. Can you encode a simple WAV file with the same lame.exe from command line?

Re: f2k FLAC to MP3 fail error

Reply #3
Using 64-bit binaries is fine. Can you encode a simple WAV file with the same lame.exe from command line?

Many thanks for the reply Case...

Hmmm, perhaps here is a clue to my problems...?  And probably irrelevant, but I launched the CMD window with admin rights.

D:\AppData\LAME MP3 Binaries_x64>lame.exe -h -v 0 organfinale.wav organfinale.mp3
'lame.exe' is not recognized as an internal or external command,
operable program or batch file.


Re: f2k FLAC to MP3 fail error

Reply #5
Based on the original error reported on the console you performed your test in a wrong directory. Either you need to cd into "lame3.99.5-64" or call "lame3.99.5-64\lame.exe" for the test.

Re: f2k FLAC to MP3 fail error

Reply #6
Based on the original error reported on the console you performed your test in a wrong directory. Either you need to cd into "lame3.99.5-64" or call "lame3.99.5-64\lame.exe" for the test.

@Case, @lvqcl:  Doh!  Indeed, I was not in correct subdirectory, thanks.

Have corrected, testing in the final folder, LAME3.99.5-64.   Still getting an error, but now different errors.  Second example, I removed the -h switch, thinking that might be the "excess arg" error notation, but still no joy.

\D:\AppData\LAME MP3 Binaries_x64\lame3.99.5-64>lame.exe -h -v 0 organfinale.wav organfinale.mp3
lame.exe: excess arg organfinale.mp3

D:\AppData\LAME MP3 Binaries_x64\lame3.99.5-64>lame.exe -v 0 organfinale.wav organfinale.mp3
lame.exe: excess arg organfinale.mp3

Folks, the bottom line is that I would dearly love to restore the f2K FLAC to LAMEconversion functionality.  I just have found it to be the most elegant, simple way as I use f2k as my main audio player anyway.   Of course, I can grab standalone FLAC to LAME gui utils to achieve the same thing.   But really want to try and figure out what's up with my f2k Win 10 install.

Maybe not really tasteful to ask on a f2k forum, but any recommendations for a reasonably granular FLAC to LAME gui frontend util?  I have grabbed opensource LameXP and it seems to work fine, but I appear to be unable to use different [more recent] LAME binaries with that util [for some reason.

Thanks much folks!
-les

Re: f2k FLAC to MP3 fail error

Reply #7
Your parameters need some adjustment. The VBR quality setting is capital V and not v. Switch -v seems to be an alias for "-V 4".

Re: f2k FLAC to MP3 fail error

Reply #8
\D:\AppData\LAME MP3 Binaries_x64\lame3.99.5-64>lame.exe -h -v 0
holy cow!
D:\AppData\"LAME MP3 Binaries_x64"\lame3.99.5-64\lame.exe -V 0 -q 0 --noreplaygain "input.wav" "output.mp3"

Re: f2k FLAC to MP3 fail error

Reply #9
Your parameters need some adjustment. The VBR quality setting is capital V and not v. Switch -v seems to be an alias for "-V 4".

@Case:  OK...fixed LAME command line, and now no errors.   However, seems I get a 0 byte mp3 file as a result.  Refreshed within Win10 Explorer and still 0 byte mp3 file result:

D:\AppData\LAME MP3 Binaries_x64\lame3.99.5-64>lame.exe -V 0 organfinale.wav organfinale.mp3

D:\AppData\LAME MP3 Binaries_x64\lame3.99.5-64>dir
 Volume in drive D is DATA
 Volume Serial Number is 4E64-0074

 Directory of D:\AppData\LAME MP3 Binaries_x64\lame3.99.5-64

07/06/2019  06:53 PM    <DIR>          .
07/06/2019  06:53 PM    <DIR>          ..
12/03/2010  07:46 PM             5,406 about.html
11/21/2010  08:07 PM             4,349 abr.html
07/28/2005  01:05 PM             4,764 basic.html
11/21/2010  08:07 PM             4,645 cbr.html
06/11/2010  05:44 PM             4,519 contact.html
06/11/2010  05:44 PM             5,998 contributors.html
10/15/2011  02:31 PM            52,475 detailed.html
02/29/2012  05:59 AM           104,627 history.html
04/22/2019  03:02 PM    <DIR>          images
06/11/2010  05:44 PM             2,898 index.html
06/11/2010  05:44 PM             7,791 introduction.html
05/22/2014  10:18 PM         1,020,928 lame.exe
05/22/2014  10:18 PM           844,800 lame_enc.dll
06/11/2010  05:44 PM            25,559 links.html
06/11/2010  05:44 PM             2,532 list.html
06/11/2010  05:44 PM             5,639 ms_stereo.html
07/06/2019  06:53 PM                 0 organfinale.mp3
07/06/2019  02:38 PM         4,587,112 organfinale.wav
04/22/2019  03:02 PM    <DIR>          styles
11/21/2010  08:45 PM             5,695 usage.html
06/11/2010  05:44 PM             3,421 vbr.html
              19 File(s)      6,693,158 bytes
               4 Dir(s)  240,948,580,352 bytes free

D:\AppData\LAME MP3 Binaries_x64\lame3.99.5-64>


 

Re: f2k FLAC to MP3 fail error

Reply #11
You should try with some regular sized file. It's very possible the encoder doesn't accept a file exceeding 4 GB.

Re: f2k FLAC to MP3 fail error

Reply #12
You should try with some regular sized file. It's very possible the encoder doesn't accept a file exceeding 4 GB.

Uh, that's a 4MB wav test file I grabbed online.   4,480 KB.  :)

Re: f2k FLAC to MP3 fail error

Reply #13
Can you try different compiles of lame.exe? New (2019-07-03) 3.100 from rarewares or other one from foobar2000 free encoder pack.

Re: f2k FLAC to MP3 fail error

Reply #14
Can you try different compiles of lame.exe? New (2019-07-03) 3.100 from rarewares or other one from foobar2000 free encoder pack.

GENIUS!  Thanks!  So now command line LAME 3.100 64 is working....now getting valid mp3 output.  Verified in f2k and plays fine.

D:\AppData\LAME MP3 Binaries_x64\lame3.100-64>dir
 Volume in drive D is DATA
 Volume Serial Number is 4E64-0074

 Directory of D:\AppData\LAME MP3 Binaries_x64\lame3.100-64

07/06/2019  08:21 PM    <DIR>          .
07/06/2019  08:21 PM    <DIR>          ..
07/06/2019  08:21 PM    <DIR>          doc
07/03/2019  02:40 PM         1,759,744 lame.exe
07/03/2019  02:40 PM         1,472,512 lame_enc.dll
07/06/2019  02:38 PM         4,587,112 organfinale.wav
               3 File(s)      7,819,368 bytes
               3 Dir(s)  239,775,334,400 bytes free

D:\AppData\LAME MP3 Binaries_x64\lame3.100-64>lame.exe -V 0 -q 0 --noreplaygain organfinale.wav organfinale.mp3
LAME 3.100.1 64bits (http://lame.sf.net)
CPU features: SSE (ASM used), SSE2
polyphase lowpass filter disabled
Encoding organfinale.wav to organfinale.mp3
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III VBR(q=0)
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA
   499/499   (100%)|    0:00/    0:00|    0:00/    0:00|   56.922x|    0:00
 32 [  0]
 40 [  0]
 48 [  0]
 56 [  0]
 64 [  0]
 80 [  0]
 96 [  0]
112 [  0]
128 [  1] %
160 [  0]
192 [  1] %
224 [  9] %%
256 [395] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
320 [ 93] %%%%%%%%%%%%%%%%%
-------------------------------------------------------------------------------
   kbps        LR    MS  %     long  %
  267.0       99.8   0.2       100.0
Writing LAME Tag...done

D:\AppData\LAME MP3 Binaries_x64\lame3.100-64>


So...folks....how can I now properly sort out my original problem with f2k FLAC to MP3 failing to even execute? 

I just tried copying the working 3.100-64 LAME.exe and LAME.dll into my foobar encoder subfolder...renamed the existing 2 files to .old extension.   Still fails with this f2k error:

1 out of 1 tracks converted with major problems.

Source: "D:\MP3\_New Downloads\Thomas Blug\2010 - Blug Plays Hendrix [Spotify FLAC]\11. All Along The Watchtower.flac"
  An error occurred while writing to file (The encoder has terminated prematurely with code -1073741819 (0xC0000005); please re-check parameters) : "D:\MP3\_New Downloads\Thomas Blug\2010 - Blug Plays Hendrix [Spotify FLAC]\Thomas Blug - Blug Plays Hendrix - 11. All Along The Watchtower.mp3"
  Additional information:
  Encoder stream format: 44100Hz / 2ch / 16bps
  Command line: "D:\AppData\LAME MP3 Binaries_x64\lame3.99.5-64\lame.exe" -S --noreplaygain -V 0 - "Thomas Blug - Blug Plays Hendrix - 11. All Along The Watchtower.mp3"
  Working folder: D:\MP3\_New Downloads\Thomas Blug\2010 - Blug Plays Hendrix [Spotify FLAC]\
 
  Conversion failed: The encoder has terminated prematurely with code -1073741819 (0xC0000005); please re-check parameters

So....how can I change in f2k the pointer to the command line working 3.100-64 LAME folder?  Can't seem to find the setting inside of f2k.

Thanks and sorry for being so dumb...


Re: f2k FLAC to MP3 fail error

Reply #15
Uh, that's a 4MB wav test file I grabbed online.   4,480 KB.  :)
Silly me. Somehow I was thinking in kilobytes. Also I didn't realize you had copy pasted the full output from the command prompt. It would have also revealed that the encoder binary didn't print anything because it crashed.

So...folks....how can I now properly sort out my original problem with f2k FLAC to MP3 failing to even execute?
If you didn't create a custom encoder for Converter where you pointed the program to always use the lame.exe from certain directory then it's enough to navigate to Preferences -> Advanced -> Tools -> Converter and clear out the "Additional command-line encoder paths" setting.

Re: f2k FLAC to MP3 fail error

Reply #16
Uh, that's a 4MB wav test file I grabbed online.   4,480 KB.  :)
Silly me. Somehow I was thinking in kilobytes. Also I didn't realize you had copy pasted the full output from the command prompt. It would have also revealed that the encoder binary didn't print anything because it crashed.

So...folks....how can I now properly sort out my original problem with f2k FLAC to MP3 failing to even execute?
If you didn't create a custom encoder for Converter where you pointed the program to always use the lame.exe from certain directory then it's enough to navigate to Preferences -> Advanced -> Tools -> Converter and clear out the "Additional command-line encoder paths" setting.


SUCCESS!!  I KNEW this was the place to get help.  Thanks so much to all you kind folks!  I did in fact setup the specific LAME folder in f2k....I just forgot where to edit it within the program. 

So clearly, f2k under Win10 64Home does NOT like LAME 3,99 64bit or older, at least in my case.  LAME 3.100 64bit FLAC to mp3 conversion works perfectly under both f2k and command line in Win 10 64Home.

This thread can now be closed.  Maybe someone else can benefit from this experience!

Cheers to everyone and THANKS SO MUCH AGAIN ALL!  :)  You've made my day.
-les