I need some assistance with a script I use to convert tagged flacs to tagged mp3s. it works fine, except LAME chokes on filenames with spaces.
the actual batch files I'm using are located here:
http://tapergeek.org/FLAC-Transcoder-0.92b.zip
here is the part I am having problems with:
in 'flac>mp3' mode, right clicking a folder runs the following command:
for %%I in (*.flac) do call encode.cmd "%%I"
it then gets to the encoding portion of encode.cmd (below) and crashes on filenames:
:MP3
rem :Encode and tag the new file.
for %%I in (%1) do flac -d -c %%I | lame - --alt-preset standard --id3v2-only --pad-id3v2 --ta "%artist%" --tt "%title%" --tl "%album%" --ty "%date%" --tn "%tracknumber%" --tc "%comment% - Source: %sourcemedia% -transcoded directly from FLAC files to mp3 (LAME 3.90.3 -aps) using FLAC Transcoder 0.92" "%artist% - %album%.%ext%f"\%%~nI.%ext%"
goto END
for a filename with spaces, it always says 'lame excess arg: (second part of filemame).
in other words 01 - Divided Sky.flac, it would say 'lame excess arg: Divided'
any help here? thanks in advance!
