Hi,
Can anyone tell me how I can get more processing power applied to movie conversions with FFMPEG?
The highest processor utilization I ever get is about 214% and since I have a quad, I shoudl be able to go to almost 400%. Is there a configuration that would allow me to use this extra horsepower, or am I missing something important?
Many thanks,
nick
Powermac G5 2.5GHz Quad 4GB Ram
Results 1 to 7 of 7
-
-
Sorry it took so long to respond. Verizon networks were down all over the East Coast!
Basically, in UNIX systems, processes have degrees of priority, their "niceness" (@&*^# obfuscating UNIX geeks!!)
Nice values range from +20 through 0 into the negative. Like all things designed by @#%$ obfuscating UNIX geeks, this scale goes against intuition, such that positive numbers mean lower priority, and any negative number means top priority.
To set a nice level for ffmpeg, the first thing you need to do is run it (the encoder not the GUI) then find its PID (process ID.) This changes every time you run a process, to it will need to be reniced each time you run it. You can find the PID using Apple's free Activity Monitor that is in your Utilities folder (unless you deleted it for some reason.)
Find the ffmpeg2 process (as opposed to ffmpegX, the GUI) as well as any other related process (such as movtoy or whatever, depending on what you are doing) that may be running and record their PIDs.
Alternately, you can open terminal (you'll need that later, anyway) and type:
ps -achux
to get the list of processes.
Next, in terminal type:
sudo renice -1 PID <the PID you got from the previous step>
repeat for all processes related to the encoding (but NOT ffmpegX, since this is just the GUI and does not need prioritizing.)
Let me know if this helps at all. I am curious to know how the renice-ing works across multiple processors
-
After some research I have a bit more information for you.
To make things easier in terminal, you can use the shell program "top" to get your PIDs. Just type:
top
into terminal. After you record your PIDs, type 'q' to quit.
In order to renice more easily, try some of the GUIs here:
http://www.macupdate.com/search.php?keywords=renice&os=macosx&button.x=0&button.y=0
HTH, and let me know how it works
-
hi
i tried this on my dual 2ghz G5:
it doesn't make any difference, as long as the processors aren't running at 200%...
the mencoder utilizes about 120% cpu, with nice set to -1 or 20...
only when you're running another application with higher priority AND the CPUs reached 200% the processors drop the percentage spent for encoding...
well, doesn't work for this, but nice to know :P
greets
Similar Threads
-
Intel i5 2430M processor or AMD A8-3500M quad-core processor?
By jbitakis in forum ComputerReplies: 5Last Post: 11th Nov 2011, 20:31 -
Does processing video use all cores in a quad-core processor?
By sincostan45 in forum Newbie / General discussionsReplies: 14Last Post: 3rd Feb 2009, 22:42 -
Suggestion on motherboard for Intel Core 2 Q9650 Quad Processor
By G)-(OST in forum ComputerReplies: 11Last Post: 28th Jan 2009, 03:13 -
How do I get faster encoding time from quad-core processor?
By nick101181 in forum Newbie / General discussionsReplies: 5Last Post: 26th Oct 2008, 14:54 -
Intel Quad - full tilt boogie
By awsedr in forum ffmpegX general discussionReplies: 5Last Post: 29th Jun 2008, 11:33