Converter feature: add ability to pass all/most titleformatting, %path% is not passed to external converter |
This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.
See also: Hydrogenaudio Terms of Service.
Converter feature: add ability to pass all/most titleformatting, %path% is not passed to external converter |
Jan 5 2012, 14:21
Post
#1
|
|
|
Group: Members Posts: 88 Joined: 20-July 07 Member No.: 45480 |
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? |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 25th May 2013 - 22:35 |