Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
28th September 2012, 18:02 | #1 | Link | |
Registered User
Join Date: Jul 2004
Posts: 98
|
Adding SetMtMode to a script
Hi all,
I have a script I'm using to convert old home videos to DVD. Quote:
I've tried both setmtmode(2) and setmtmode(3) before the avisource line and both crash CCE after about 30 seconds. Anyone know which filter isn't liking being multithreaded? Thanks |
|
29th September 2012, 00:25 | #2 | Link |
Registered User
Join Date: Oct 2007
Posts: 135
|
If you were trying mode 2 above avisource, that is your problem. Do mode 5 above the source and then try mode 2 immediately after.
Alternately: don't use mt at all, as whatever the potential speedups you'd probably be done by now if you used single threaded avisynth rather than crashing repeatedly with a massively unstable product. |
29th September 2012, 10:42 | #3 | Link | |
Registered User
Join Date: Mar 2002
Location: Krautland
Posts: 903
|
Quote:
I use Avisynth MT for years now... It all depends on the source and some stable plugins. As an example, DV Avi works best with: Code:
SetMemoryMax(682) # set to your needs SetMTMode(5,4) # second number set the cores/threads of your cpu. And there is a typo in your script: Code:
Interleave(evn,odd) Don't know about Convolution3D if it's MT capable. Cheers |
|
29th September 2012, 11:01 | #4 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Yes, that's what most users really want to do.
Not true.
__________________
Groucho's Avisynth Stuff |
29th September 2012, 11:59 | #5 | Link |
Registered User
Join Date: Mar 2002
Location: Krautland
Posts: 903
|
You are right about "evn"
Sorry, for this. But MT is a beast, you have to tame it. After this it becomes your best friend. And a little extra curve of learning should not hurt. I dont have a master degree in avisynth scripting, it took me maybe one day to sort out the hazzles related to MT. But when it's done, it's done . Simple example script: Code:
SetMemoryMax(682) # set to your needs SetMTMode(5,4) # second number set the cores/threads of your cpu. avisource("your file.avi") # your source filter SetMTMode(2) # now get some speed all your needed plugins() # deinterlace, denoising, sharpen,etc. some wont work with MT :( distributor() # only needed for HCEnc or similar Return(last) # might give a little stability |
|
|