Help - Search - Members - Calendar
Full Version: Single-thread conversion
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
Peter L
I'm using the excellent conversion plugin for Dolby Headphone to convert my FLAC files to preprocessed MP2 files to play on my Sansa device. Foobar2000 makes this easy, but I can't figure out something important.
The Dolby Headphone code is not reentrant. So, it corrupts the files if two instances are running at the same time. And Foobar2000 converts two files at a time by default.

The question: How do I configure F2K so that I can convert a large group of files but they will be converted one at a time, not two at a time?

Many thanks
-Peter
thuan
I don't have a dual core here so I'm not so sure but IIRC on a dual core computer you can select the CPU affinity for each program by right click on its process in the process list in Task Manager.
Supernaut
QUOTE(thuan @ Jan 2 2007, 01:09) *
I don't have a dual core here so I'm not so sure but IIRC on a dual core computer you can select the CPU affinity for each program by right click on its process in the process list in Task Manager.

To do it permanently, download imagecfg, launch a command-line and in your foobar2000 directory do:

CODE
imagecfg -a 0x1 foobar2000.exe


This modifies the executable to always use just one core (virtual or whatnot).
Peter L
Thanks to both of the dual-core responders, but I'm looking for something simpler that is inside Foobar2000. When I do a conversion of multiple files, it runs two converter processes at a time and the status bar shows "processing 5/6 of 92 files" to show that files 5 and 6 are both being processed by separate instances of the external converter. I want to know how to make it run only one external converter at a time - I thought that I had done that previously in F2K (I processed 1500 files this way, and I know that I didn't launch each one by hand wink.gif ), but now I can't find the setting.

I'm working on my older single-core machine, so multiprocessor considerations aren't applicable anyway.
kockroach
QUOTE(Peter L @ Jan 2 2007, 13:13) *

I'm working on my older single-core machine, so multiprocessor considerations aren't applicable anyway.

I am also on a single-core processor, but it is also Hyper-Threaded. That means it is considered to be two CPUs, not one. The process for me shows both CPU 0 and CPU 1 being used. That could be why you have two files being converted at the same time.
Supernaut
Right. foobar detects that your processor has two virtual CPUs and launches two simultaneous encoding threads because of it. If you force foobar to run on one "CPU", it will not do so.

I don't think there's an option inside foobar to control this (yet?). Previous versions of foobar didn't have this functionality which may be the reason you hadn't noticed it.
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.