I'm ready to start using iTunes AAC as the codec of choice on my iPod. I have a rather large collection of FLAC, and need to be able to encode it all to iTunes AAC. I've been searching all evening for an effective solution, and I came very close with iTunesEncode.exe by Otto42. It's a great program, but, as I've read, it's been broken since iTunes 7.7. Indeed, I tried to batch encode some of the FLACs with it in foobar2000, and more than half of them threw terribly fatal errors. Needless to say, that's completely unacceptable.
Anyway, I was wondering, is there another script out there that does what iTunesEncode.exe did? I need it to either be command line (so I can batch encode with foobar2000) or have it able to batch encode by itself.
Also, if there's a standalone hack or something of the iTunes AAC codec, that would work.
iTunesEncode.exe still works (a/o iTunes 9.0.2)
The following Windows Batch file will copy the tags & artwork from FLAC to AAC.
I also have an AppleScript for Mac (If anyone is interested, let me know)
4dos batch file (may need to edit a bit if you use the Windows shell):
@echo off
echo Set iTunes to 128VBR...
pause
for %f in (*.flac) gosub ENCODE128
exit
:ENCODE128
"C:\Program Files\FLAC\metaflac" "%f" --export-picture-to=artwork.jpg --export-tags-to=temp.txt
for /F "tokens=1,2 delims==" %%i in (temp.txt) do set %%i="%%j"
"C:\Program Files\FLAC\flac" -d "%f"
if ERRORLEVEL 1 pause
"C:\Program Files\iTunesEncode\iTunesEncode" -d -a "%@replace[%=",,%artist%]" -t "%@replace[%=",,%title%]" -l "%@replace[%=",,%album%]" -y %@instr[0,4,%@replace[%=",,%date%]] -n %@replace[%=",,%tracknumber%] -g "%@replace[%=",,%genre%]" -c "%@replace[%=",,%comment%]" -r "%@path[%@full["%f"]]artwork.jpg" -i "%@replace[.flac,.wav,%f]" -o "%@replace[.flac,.m4a,%f]"
for /F "tokens=1,2 delims==" %%i in (temp.txt) do set %%i=
del artwork.jpg temp.txt "%@replace[.flac,.wav,%f]"
return