View Full Version : Detect CPU Cores Automatically Feature Request
rofish
09-09-2007, 02:53 PM
FFMPEG supports multi-threaded encoding, but you have to specify it with a "-threads x" parameter, where x is the number of threads you want. Obviously you want the number of threads equal to the number of cores your CPU has. (Either 2 for dual core, 4 for quad, or 8 if you're insane and have something like the Octo Mac Pro ;)) It would be pretty nice to have Videora automatically figuring out how many cores you have and putting in the -threads line instead of me doing it myself in the additional parameters line for all my encoding settings.
Red Kawa
09-09-2007, 04:12 PM
Although you may think it is simple to check for multiple cores, it really isn't.
If a lot of people want this feature, then we'll consider adding it.
But for now we will keep things the way they are. If you go to the "Advanced 1" tab in the Video section of the Edit Profile box, you will see we already have a editable box for "Number of threads". So you do not have to put in the -threads line in every time, just change that number to what you want.
Additionally, if you don't want to edit every profile one by one, then open the profiles.xml file in a text editor and do a search and replace for threads="1" to whatever you want it to be.
nusakan
09-09-2007, 04:31 PM
8 if you're insane and have something like the Octo Mac Pro ;))
:D
actually from my testing seems like 8-12 threads would be roughly the highest FFMPEG is capable of doing. Beyond that you'll notice your overall cpu usage isn't at 100%
Red Kawa
10-19-2007, 09:38 AM
As of 3.05, by default the program will now include "-threads auto" in the command line by default. FFmpeg will detect how many threads it can use and use them accordingly.
To turn this off, set "Theads" in the video profile to 1.
To manually specify number, set "Threads" in the video profile to the number you want (same as earlier versions).
To use auto thread detection, set "Threads" to 0.