Welcome Guest ( Log In | Register )

> foobar2000 General Forum Rules

This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.

See also: Hydrogenaudio Terms of Service.

Reply to this topicStart new topic
Converter feature: add ability to pass all/most titleformatting, %path% is not passed to external converter
post Jan 5 2012, 14:21
Post #1

Group: Members
Posts: 88
Joined: 20-July 07
Member No.: 45480

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?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 28th November 2015 - 18:32