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: Converter feature: add ability to pass all/most titleformatting (Read 1546 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Converter feature: add ability to pass all/most titleformatting

Hello,
i've seen a request here that converter should allow embedding album art on the fly.
And recently I needed that myself. So pretty obvious way for an advanced user is to write a batch script and pass required params to it.

I wrote the following code that work quite well when called from command line like
convert.bat output.m4a < input.wav
but when I try to specify %path% as a third (%3) parameter - it just is not passed to external converter by foobar2000.
If some content tag is passed (like %album%) - everything goes well and I can get %3 in the script, but %path% doesn't work.

From the outside it seems like it should be really easy.

IF EXIST "%~d1%~p1front.jpg" (
  SET COVER=%~d1%~p1front.jpg
) ELSE (
  SET COVER=cover-not-found
)

neroAacEnc.exe -q 0.46 -ignorelength -if "%1" -of "%2"
IF NOT %COVER% == "cover-not-found" (
  echo adding cover %COVER%
  rem neroAacTag.exe "%2" "-add-cover:front:%COVER%"
)

Any thoughts?