[MEncoder-users] Performance on multi core machines - a specific enquiry re avisynth mt input
Michael Rozdoba
mroz at ukgateway.net
Sat Oct 6 02:17:51 CEST 2007
Michael Rozdoba wrote:
> See http://forum.doom9.org/showthread.php?p=1050284#post1050284
>
> We now have an explanation. Due to the way MEncoder invokes the script,
> MT isn't adding the Distributor to the end of the script. If one appends
> a manual call to Distributor() as the last line, MT functions as
> intended & the decoding of MEncoder's avisynth input is then
> multithreaded :)
>
> Hopefully we'll see a proper fix for this - preferably within
> AVISynth/MT
Apparently not easily done as there's no way for avisynth to know when
the script is complete... And it does need to be fixed as the manual
hack of adding the Distributor call to the script end causes problems
when the script is invoked in the usual way by other apps (duplicate
Distributor calls cause too many threads to be put into use & poorer
performance results).
> but failing that MEncoder could always be patched to detect
> MT in use & append the Distributor call itself.
This seems to be the way to go.
I've written a patch which might fix the issue & have run it past the
avisynth/mt devs on the above thread. Before posting it (is it okay to
submit here?), I wanted to build MPlayer to test this myself.
However I'm having some basic problems, mostly as I'm not familiar with
the required tools & environment. I don't want to clutter dev list/s
with newbie build queries, so hopefully it'll be okay to ask here. I'll
start a new thread in a moment. Please tell me to post elsewhere if more
appropriate. Cheers.
--
Michael Rozdoba
More information about the MEncoder-users
mailing list