Help - Search - Members - Calendar
Full Version: conditional parameters in diskwriter command line
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
diablodale
I would like to use conditional parameters in the diskwriter component for command line encoders like oggenc2.exe. All my attempts and variations have failed. My goal is to set tags in the encoded file if they exist in the source. The one I think closest to working is the following:

$if(%title%,-c TITLE="%title%",) -p1 -q4 - -o %d

I have isolated the problem to the $if() section. If I remove it, all works. The error the console window pops up with is:

ERROR (foo_clienc) : Writing to encoder failed
ERROR (foo_clienc) : Encoding failed
ERROR (foo_diskwriter) : Conversion failed.

I have tried the following. It does work but would write a TITLE tag with a blank value if not present. This isn't quite my goal:

-c TITLE="%title%" -p1 -q4 - -o %d
kjoonlee
It's been reported before, but I don't know if the feature has been formally requested.
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.