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