HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: Pulstar on 2012-11-01 17:26:34

Title: Need help with command parameters for FhG AAC
Post by: Pulstar on 2012-11-01 17:26:34
(http://i45.tinypic.com/307nsy8.jpg)

I tried various options but it seems I can't get a "solid" file output. Perhaps someone could help me out with the appropriate parameters for fb2k's converter?
Title: Need help with command parameters for FhG AAC
Post by: Shadoko on 2012-11-01 19:01:31
Command Line Encoder Settings - Editing Preset


Encoder: Custom
Encoder file: yourpath\fhgaacenc.exe
Extension: m4a
Parameters: --vbr 4 --ignorelength - %d

lossy
24


Title: Need help with command parameters for FhG AAC
Post by: A_Man_Eating_Duck on 2012-11-01 19:08:33
here you go

Title: Need help with command parameters for FhG AAC
Post by: Pulstar on 2012-11-02 09:23:12
Code: [Select]
1 out of 1 tracks converted with major problems.

Source: "C:\Users\X\Music\sample.mp3"
  An error occurred while writing to file (The encoder has terminated prematurely with code 0 (0x00000000); please re-check parameters) : "C:\Users\X\Music\sample.m4a"
  Additional information:
  Encoder stream format: 44100Hz / 2ch / 32bps
  Command line: "C:\Program Files (x86)\foobar2000\components\fhgaacenc.exe" --vbr 3 --ignorelength - "sample.m4a"
  Working folder: C:\Users\X\Music\
  
  Conversion failed: The encoder has terminated prematurely with code 0 (0x00000000); please re-check parameters


Title: Need help with command parameters for FhG AAC
Post by: lvqcl on 2012-11-02 14:58:45
Quote
Encoder stream format: 44100Hz / 2ch / 32bps


Did you set 'Highest BPS...' setting to 32 instead of 24?
Title: Need help with command parameters for FhG AAC
Post by: Pulstar on 2012-11-02 15:02:40
Quote
Encoder stream format: 44100Hz / 2ch / 32bps


Did you set 'Highest BPS...' setting to 32 instead of 24?


Yes, thanks for offering further help. I guess it's something with stdin/stdout.
Title: Need help with command parameters for FhG AAC
Post by: A_Man_Eating_Duck on 2012-11-02 19:39:52
have you got all the required files in the same directory as fhgaacenc.exe?

Code: [Select]
enc_fhgaac.dll
fhgaacenc.exe
libmp4v2.dll
libsndfile-1.dll
nsutil.dll
Title: Need help with command parameters for FhG AAC
Post by: Pulstar on 2012-11-02 20:56:55
Yes! I will try to move the files to another directory, but I don't think it's a permissions problem since I have UAC disabled.
Title: Need help with command parameters for FhG AAC
Post by: A_Man_Eating_Duck on 2012-11-02 21:49:23
don't forget this bit

Install VC2008 runtime if you don't have yet
http://www.microsoft.com/downloads/details...0D-3802B2AF5FC2 (http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2)
Title: Need help with command parameters for FhG AAC
Post by: Pulstar on 2012-11-03 09:38:55
I have all the runtimes hehe.. I guess I will have to use the command prompt to encode the files. Thanks for everyone who pitched in.

Is there a GUI for this encoder? I don't want to install Winamp 
Title: Need help with command parameters for FhG AAC
Post by: A_Man_Eating_Duck on 2012-11-03 22:12:58
Try running the command line manually from the CMD prompt and see if it works.
Title: Need help with command parameters for FhG AAC
Post by: Pulstar on 2012-11-04 19:59:49
I've switched to QAAC now, and it works nicely. However there's a new quirkiness: The capital V switch for True VBR doesn't function unless I write it like so e.g. -V90 if I write it -V 90 it just defaults to its, er default value. Too bad Nero seems to be discontinued, I liked it, but it's time to move on.
Title: Need help with command parameters for FhG AAC
Post by: nu774 on 2012-11-05 05:25:37
I've switched to QAAC now, and it works nicely. However there's a new quirkiness: The capital V switch for True VBR doesn't function unless I write it like so e.g. -V90 if I write it -V 90 it just defaults to its, er default value

Not reproducing here. Please show me console message of fb2k.
Title: Need help with command parameters for FhG AAC
Post by: Pulstar on 2012-11-06 15:29:42
I don't get an error message, but the resultant files are always the same size regardless of the TVBR switch value, unless I write it concatenated.
Title: Need help with command parameters for FhG AAC
Post by: nu774 on 2012-11-07 00:18:19
I don't get an error message, but the resultant files are always the same size regardless of the TVBR switch value, unless I write it concatenated.

Strange. Version of qaac? And I'd like to know exact command line which should be printed in the console of fb2k (view->console).
Also, try it from directly command line. qaac will show something like the following by which you should know if TVBR quality value is misinterpreted.
Code: [Select]
AAC-LC Encoder, TVBR q63, Quality 96

Although you can specify 0-127, it is rounded to the nearest available value. In case you specify 60, you will get 63.
Title: Need help with command parameters for FhG AAC
Post by: Pulstar on 2012-11-08 22:47:37
Hmmm it seems that spaces in the path screw up the V switch for me, no big deal. Just tested this with a sample on the root folder, and the resultant file sizes are similar. Thanks for the help 
Title: Need help with command parameters for FhG AAC
Post by: nu774 on 2012-11-09 09:53:46
Hmmm it seems that spaces in the path screw up the V switch for me, no big deal. Just tested this with a sample on the root folder, and the resultant file sizes are similar. Thanks for the help 

Whiltespace in the pathname of input file has nothing to do with space in "-V 91" (or something).
They are completely different things.
"Similar size" of resultant files doesn't prove nothing. If you are using fb2k, just open up property dialog for the song, and look at "tool" tag information. You can see VBR quality or something. Alternatively, you can use tools like Mediainfo.
Title: Need help with command parameters for FhG AAC
Post by: botface on 2013-11-08 12:25:29
I've recently installed Win 7 (Pro 64) and am trying to get everything set up but I'm having problems getting FB2K to work with the Fhg AAC encoder.

FB2K is set up as per A_Man_Eating's example in Post 3.
enc_fhgaac.dll, fhgaacenc.exe, libmp4v2.dll, libsndfile-1.dll & nsutil.dll are in the same folder. But I'm getting exactly the error that Pulstar reported in Post 4. As it's a fresh install I assume it won't be related to VC2008 runtime.

Can anybody help?
Title: Need help with command parameters for FhG AAC
Post by: lvqcl on 2013-11-08 14:45:42
As it's a fresh install I assume it won't be related to VC2008 runtime.

I don't understand this part of your post. Did you install VS2008 runtime?
Title: Need help with command parameters for FhG AAC
Post by: botface on 2013-11-08 19:22:03
I assumed it would be included but just in case I downloaded and installed it. No change. Same error message
Title: Need help with command parameters for FhG AAC
Post by: eahm on 2013-11-08 19:36:04
botface, can you please try with my "encoder pack" to see if you have the same error? http://dropcanvas.com/x732m (http://dropcanvas.com/x732m) (I removed foobar2000 from the package so now it's should be ok to post it here).
Title: Need help with command parameters for FhG AAC
Post by: botface on 2013-11-09 14:11:07
I tried your fhgaacenc.exe. Same error
Title: Need help with command parameters for FhG AAC
Post by: lvqcl on 2013-11-09 15:30:07
Did you install x86 or x64 version of VS2008 runtime?
Title: Need help with command parameters for FhG AAC
Post by: botface on 2013-11-09 18:54:42
Did you install x86 or x64 version of VS2008 runtime?

X86. Do I need the X64 version as I'm using a 64bit OS?
Title: Need help with command parameters for FhG AAC
Post by: lvqcl on 2013-11-09 19:08:54
No, x86 is the correct version.
Title: Need help with command parameters for FhG AAC
Post by: eahm on 2013-11-09 19:13:12
I tried your fhgaacenc.exe. Same error

fhgaacenc.exe is the same you already have, what I meant was to try the full package together, I may use different libraries.
Title: Need help with command parameters for FhG AAC
Post by: botface on 2013-11-09 19:18:49
OK. I tried with your copies of enc_fhgaac.dll, libmp4v2.dll, libsndfile-1.dll & nsutil.dll. Still the same