Help - Search - Members - Calendar
Full Version: FLAC Image to iTunesEncode .m4a with Foobar2000
Hydrogenaudio Forums > Lossless Audio Compression > FLAC
dbAmp
I am trying to convert FLAC album images created using EAC and FLAC Frontend (using the pinned guide) to separate .m4a files using Foobar2000 0.94 and iTunesEncode.

To do this I created a custom encoder in foobar2000 with the following settings:

Encoder: C:\Program Files\iTunesEncode46\iTunesEncode.exe
Extension: m4a
Parameters: -e "AAC Encoder" -d -a "%artist%" -l "%album%" -t "%title%" -g "%genre%" -y %date% -n %tracknumber% -i %s -o %d

To convert I:
1. Open iTunes 7
2. Load one FLAC image ito a new playlist
3. Select all
4. Right click --> convert --> convert to...
5. Select my custom encoder
6. Select a destination directory of c:\temp

Foobar2000 will appear to encode the first two tracks, then will display the following error where [filename] is the name of the first track of the cd image:

Error flushing file (Object not found) : file://C:\temp\01 [filename].m4a

When I look in c:\temp the second file of the image is there perfectly encoded.

If I try to encode one track at a time as opposed to the entire image it works without a problem.

Any suggestions on how to get it to encode the entire playlist without choking? Is this a limitation of foobar based on how it parses the files when it's transcoding?

EDIT: Spelling error.
clintb
Any chance you're doing this on a processor with multiple cores/dual processors? If so, you need to set the processor affinity to one core or the other for Foobar. BTW, I'm not sure if Hyperthreading causes this as well...it should.

The problem comes becuause Foobar is multi-processor aware and iTunesEncode is not. With multiple tracks to encode, Foobar will have already sent one out, but the iTunes encode hasn't finished before Foobar has already sent out the next one. I hope you get the basic gist of that.
dbAmp
QUOTE(clintb @ Oct 7 2006, 21:24) *

Any chance you're doing this on a processor with multiple cores/dual processors? If so, you need to set the processor affinity to one core or the other for Foobar. BTW, I'm not sure if Hyperthreading causes this as well...it should.

The problem comes becuause Foobar is multi-processor aware and iTunesEncode is not. With multiple tracks to encode, Foobar will have already sent one out, but the iTunes encode hasn't finished before Foobar has already sent out the next one. I hope you get the basic gist of that.


Yep... I'm on an new laptop that is a Core Duo...

It could be that I'm not searching well enough... and I'm a foobar newb... how do you set your processor affinity in foobar2000? I couldn't find it in any of the options.
donkeytits11
Hey this is an old post but it helped me out

For people who don't know how, to set the processor affinity its as simple as this.
Open Task Manager
find the process associated with the program, in this case foobar2000.exe
right click on it and select Set Afinity...
wil pop up a window with all the available CPUs on your system with check boxes next to them
deselect all but one

Problem is fixed
Now, you have to do this manual procedure every time you use the particular program as windows doesnt remember the setting you change. There are programs that can be installed that remeber the setting for you and automatically change it everytime you run the program, a good one is THG Task Assignment Manager (available for download from Tom's Hardware) which allows a profile to be created for each program allowing you to change thread afinity amongst other things you may want to change. However if there are no problems like this with other programs and using foobar with itunes encode is something you do rather infrequently then programs such as this will end up just running in the background of your system all the time taking up resources for a conveinience that will be only be of benefit rather infrequently. in this case its probably better to do it manually every time. Saves building up a bloated sytem and mucking around with installing and configuring the program too.

Anyway hope this helps someone out, i had to do the hunt when i hit this thread
lvqcl
Foobar2000 0.9.5 (and maybe older) has option "Thread count": follow File > Preferences > Advanced > Tools > Converter.

So you shouldn't do any "manual procedures" now. wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.