Help - Search - Members - Calendar
Full Version: dbPoweramp and FLAC.exe
Hydrogenaudio Forums > Lossless Audio Compression > FLAC
jamesbaud
I'm a longtime CDex user considering making the switch to dbPowerAmp. I've been w/CDex due to its ease of use and CDparanoia. But after reading a bit on HydrogenAudio about Accurate Rip and its amazing speed, I downloaded it to give it a 30-day trial.

I figured out how to use DMC's command line encoder w/LAME.exe, no problem.

I have a lot of Nero Image files I'd like to get rid of by mounting them and converting them to FLACs.

I know that DMC has a FLAC encoder, but I'd prefer to use the executable from Sourceforge, just as I use the LAME executable from Rarewares.

Can anyone provide a sample working command line argument?

I know that in LAME, for example, my (purposely simple) command line is:

[InFile] [OutFile] -V 7 --vbr-new

How about in FLAC? I've searched the HydrogenAudio and dbPowerAmp forums, and I've reviewed the FLAC documentation on FLAC's website, but I just don't get it.

I tried these variations, without success:

-V -5 [InFile] [OutFile]

[InFile] [OutFile] -V -5

[InputFile] [Output File] -V -5

-V -5 [InFile] [OutFile]

The same as above, but without the -V, and also without the -5.

Then I looked up the command lines for setting up EAC and FLAC, thinking that they may be analogous, from here:

http://wiki.hydrogenaudio.org/index...le=EAC_and_Flac

-T "artist=%a" -T "title=%t" -T "album=%g" -T "date=%y" -T "tracknumber=%n" -T "genre=%m" %s

-T "artist=%a" -T "title=%t" -T "album=%g" -T "date=%y" -T "tracknumber=%n" -T "genre=%m" -5 %s

Those both don't work.

Any ideas?

Any help would be appreciated.

jb
spoon
Try just

[InFile] [OutFile]

to begin with, also make sure the extension of .flac is setup right
jmartis
QUOTE(spoon @ Jul 13 2006, 10:38) *

Try just

[InFile] [OutFile]

to begin with, also make sure the extension of .flac is setup right

I would rather thy this:
CODE

[CLIString]

[InFile]

[CLIString]

[OutFile]

Note that there is a SPACE below the [CLIString] (you don't want the paths to be merged together, do you?)
jamesbaud
OK. I made sure that the extension was .flac and not .fla

Then I tried

[InFile] [OutFile]

That did not work.

Jmartis, how do you put those spaces / line breaks in the command line? In the program, there is only the one-line box. I looked at options.txt in C:\Program Files\dBpowerAMP\Compression\FLAC 1.1.2 and this is what I have:

CODE

[Codec]
.flac
C:\Program Files\dBpowerAMP\flac.exe

[Label]
1
2
Command Line:

[CLIText]
1
17
330


Where is the "[InFile] [OutFile]" I typed?
Where do I put the line breaks you (jmartis) suggested?

Any other ideas?
arpeggio
There should be a blank space character before the first argument in the command line.
You should write " [Infile] [Outfile]" in the command line box. Copy only what's between " ".

jmartis
QUOTE(jamesbaud @ Jul 13 2006, 15:54) *

"[InFile] [OutFile]" I typed?
Where do I put the line breaks you (jmartis) suggested?

This is what I meant:
CODE

[CLIString]
[SPACE]
[InFile]

[CLIString]
[SPACE]
[OutFile]

Replace [SPACE] with " "

(of course you will have to do the remainings..)

cheers, J.M.
(edit- spelling)
gameplaya15143
QUOTE(jamesbaud @ Jul 13 2006, 09:54) *

Then I tried

[InFile] [OutFile]

That did not work.

Try putting a SPACE before [InFile]

You want "flac.exe c:\~dmcin.wav c:\~dmcout.flac" and not "flac.exec:\~dmcin.wav c:\~dmcout.flac"

After you get it working with the regular generic cli plugin, you might want to consider doing it with piping (no temp file).

You may be interested in checking out my cli configs for dmc for reference wink.gif (i'll probably put my config for flac.exe there tomorrow evening)
jamesbaud
QUOTE(gameplaya15143 @ Jul 13 2006, 07:05) *

Try putting a SPACE before [InFile]


OK. I put a SPACE before [InFile] but that did not work.
I put a SPACE after [OutFile] but that did not work.
I put 2 SPACES between [InFile] and [OutFile] but that did not work.

They all give me

Codec Error ''

I saw your CLI configs. Very interesting, but no listing for FLAC.

I'm willing to do the pipe thing -- anything to get dmc working with FLAC.exe.
jamesbaud
OK. I set the program to debug mode (the instructions from the CLI help page were not completely clear, but I figured it out).

Here's what I got from the Command Prompt box:

QUOTE

C:\>"C:\Program Files\dBpowerAMP\flac.exe" C:\~dmcin.wav C:\~dmcout.flac

flac 1.1.2, Copyright © 2000,2001,2002,2003,2004,2005 Josh Coalson
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.

options: -P 4096 -b 4608 -m -l 8 -q 0 -r 3,3
ERROR: output file C:\~dmcin.flac already exists, use -f to override
ERROR: can't open input file C:\~dmcout.flac


This file does not exist anywhere.

I then tried the -f option to override. My new command argument was:

-f [InFile] [OutFile]

That didn't work either. Here's what I got:

QUOTE

C:\>"C:\Program Files\dBpowerAMP\flac.exe" -f C:\~dmcin.wav C:\~dmcout.flac

flac 1.1.2, Copyright © 2000,2001,2002,2003,2004,2005 Josh Coalson
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.

options: -P 4096 -b 4608 -m -l 8 -q 0 -r 3,3
ERROR: can't open input file C:\~dmcin.wav
ERROR: can't open input file C:\~dmcout.flac


Any more ideas?
arpeggio
I have tried the same procedure like you did, Generic CLI with the Flac executable, and got the same error. Don't know why the Generic CLI doesn't work with Flac.exe

I would recommend to install the regular Flac plug-in from dBpowerAMP's Codec Central. It will install a .dll with the same version (1.1.2) as the latest .exe from SourceForge.
Before converting dMC will let you adjust the setting for compression level.

You might give it a try ...

Cheers!


arpeggio
I've done another test with Generic CLI and Flac executable.
It looks like leaving out the parameter [OutFile] will work.

The commandline I've used:

" -5 [InFile]"

Note: I've put the commandline between quotes because the commandline should start with a space. You may copy everything that is between " "
The parameter -5 will set the compression level.

Cheers!



jmartis
hi jamesbaud - I've had the same problem, the solution was to use another generic CLI dll, as there are two. Get the one that has 61 kb not 57

J.M.
spoon
>>"C:\Program Files\dBpowerAMP\flac.exe" -f C:\~dmcin.wav C:\~dmcout.flac

In debug mode the files are written and it is 100% down to flac, perhaps it likes the filenames in quotes, such as:

"C:\Program Files\dBpowerAMP\flac.exe" -f "C:\~dmcin.wav" "C:\~dmcout.flac"
jamesbaud
QUOTE(jmartis @ Jul 13 2006, 11:34) *

hi jamesbaud - I've had the same problem, the solution was to use another generic CLI dll, as there are two. Get the one that has 61 kb not 57

J.M.


Where is there another generic CLI?

The one I got was from here:

http://www.dbpoweramp.com/codec-central-generic-cli.htm

And it's 247kb.

QUOTE(spoon @ Jul 13 2006, 12:37) *

>>"C:\Program Files\dBpowerAMP\flac.exe" -f C:\~dmcin.wav C:\~dmcout.flac

In debug mode the files are written and it is 100% down to flac, perhaps it likes the filenames in quotes, such as:

"C:\Program Files\dBpowerAMP\flac.exe" -f "C:\~dmcin.wav" "C:\~dmcout.flac"


How could I change the way dmc writes the filenames?

QUOTE(arpeggio @ Jul 13 2006, 09:47) *

I have tried the same procedure like you did, Generic CLI with the Flac executable, and got the same error. Don't know why the Generic CLI doesn't work with Flac.exe

I would recommend to install the regular Flac plug-in from dBpowerAMP's Codec Central. It will install a .dll with the same version (1.1.2) as the latest .exe from SourceForge.
Before converting dMC will let you adjust the setting for compression level.

You might give it a try ...

Cheers!


Yes, I tried the dll and I know it works, but after reading about some problems people were having with it on the dbpoweramp forums, I decided that I'd prefer to use the executable from Sourceforge.
spoon
>about some problems people were having with it on the dbpoweramp forums

What problems? there was a tagging issue with older flac, but generally speaking when you have 10000's of people using anything there will always be problems for a small few (don't read any forum and take it as the norm).
jamesbaud
QUOTE(arpeggio @ Jul 13 2006, 11:24) *

I've done another test with Generic CLI and Flac executable.
It looks like leaving out the parameter [OutFile] will work.

The commandline I've used:

" -5 [InFile]"

Note: I've put the commandline between quotes because the commandline should start with a space. You may copy everything that is between " "
The parameter -5 will set the compression level.

Cheers!


This looks promising. I will try it once I'm at my home computer and report back the results.
jamesbaud
This works perfectly!

Thanks to everyone for their help! biggrin.gif
audiomars
QUOTE(jamesbaud @ Jul 14 2006, 03:16) *

Yes, I tried the dll and I know it works, but after reading about some problems people were having with it on the dbpoweramp forums, I decided that I'd prefer to use the executable from Sourceforge.


Hi, jamesbaud. I believe there was some problem earlier with the older version of the dMC FLAC dll. However, I have been using the new (current) dll without any problem whatsoever. It uses the same version of FLAC (1.1.2) that is mentioned as the latest, stable release in the official FLAC and Xiph.org websites.

audiomars

QUOTE(jamesbaud @ Jul 14 2006, 10:33) *

This works perfectly!

Thanks to everyone for their help! biggrin.gif


Oops. Didn't notice your last post. Your problem is solved.... thats good!!

audiomars
jamesbaud
QUOTE

Hi, jamesbaud. I believe there was some problem earlier with the older version of the dMC FLAC dll. However, I have been using the new (current) dll without any problem whatsoever. It uses the same version of FLAC (1.1.2) that is mentioned as the latest, stable release in the official FLAC and Xiph.org websites.

audiomars


I discovered that I still need the dMC FLAC dll in order (to use dMC) to convert from FLAC to LAME. So there's no getting around that.

... Unless someone knows a way to use dMC and FLAC.exe to convert from FLAC to LAME?
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.