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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 28th September 2012, 18:02   #1  |  Link
frubsen
Registered User
 
Join Date: Jul 2004
Posts: 70
Adding SetMtMode to a script

Hi all,

I have a script I'm using to convert old home videos to DVD.

Quote:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Convolution3D.dll")
avisource("cmob.avi",audio=false)
converttoyuy2(interlaced=true)
SeparateFields()
odd=SelectOdd.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
evn=SelectEven.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
Interleave(evn,odd)
Weave()
DoubleWeave.SelectOdd()
I'm wondering where I can add Setmtmode to speed it up.

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
frubsen is offline   Reply With Quote
Old 29th September 2012, 00:25   #2  |  Link
AzraelNewtype
Registered User
 
AzraelNewtype's Avatar
 
Join Date: Oct 2007
Posts: 128
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.
AzraelNewtype is offline   Reply With Quote
Old 29th September 2012, 10:42   #3  |  Link
Taurus
Registered User
 
Taurus's Avatar
 
Join Date: Mar 2002
Location: Krautland
Posts: 828
Quote:
Originally Posted by AzraelNewtype View Post

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.
Heh,heh,
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.
Fiddle around for stability.
And there is a typo in your script:
Code:
Interleave(evn,odd)
should be "even"
Don't know about Convolution3D if it's MT capable.
Cheers
Taurus is offline   Reply With Quote
Old 29th September 2012, 11:01   #4  |  Link
Groucho2004
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Posts: 3,974
Quote:
Originally Posted by Taurus View Post
Fiddle around for stability.
Yes, that's what most users really want to do.

Quote:
Originally Posted by Taurus View Post
And there is a typo in your script:
Code:
Interleave(evn,odd)
should be "even"
Not true.
Groucho2004 is offline   Reply With Quote
Old 29th September 2012, 11:59   #5  |  Link
Taurus
Registered User
 
Taurus's Avatar
 
Join Date: Mar 2002
Location: Krautland
Posts: 828
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
Taurus is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:16.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.