[MEncoder-users] Multi-threaded xvid-encoding on dual-core systems

Markus Bonet m.bonet at gmx.de
Tue Jan 9 15:24:43 CET 2007


Am Dienstag, den 09.01.2007, 14:24 +0100 schrieb Guillaume POIRIER:

> Quoting the man page:
> threads=<0-n>
>               Create n threads to run the motion estimation (default:
> 0).  The maximum number of threads that can be used is the picture
> height divided by 16.

I've read that too. That's the reason I asked.

> So I'd suggest trying to put as many threads as the size of your
> picture permits, and see how much speed-up you can get.
> 
> There aren't supposed to be any quality penalty due to multi-threading
> mode, so you can safely always use the max number WRT your video
> resolution.

I did that right now and the result is for my system 2 threads to be
most efficient.
I pushed it up to 32 threads and the fps dropped as low as with a single
thread. I think that many threads causes trouble scheduling them onto
the two cores. CPU-Usage rised up to 160% without any speed-gain over a
single thread. Even 4 threads are already a bit slower than 2 threads
which reach 32fps in the second pass @ 140%.


Thanks to everyone here, now I am looking at creating some profiles.
BTW, are there any good filter-settings as a recommendation? Can
external filters be used? Any good website about that? (I know google,
but maybe someone has a good recommendation...)


Kinds regards
Markus




More information about the MEncoder-users mailing list