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 8th October 2012, 13:05   #1  |  Link
Mole
Registered User
 
Mole's Avatar
 
Join Date: Oct 2001
Location: Thailand
Posts: 260
When to use SetMTMode and distributor?

Should I always use Setmtmode(5,0) before loading source files?

I've used Setmtmode(2,0) with mpeg2source and avisource and haven't had any problems, but I read elsewhere that you should always use 5.

It's even mentioned here that mpeg2source can be used with Setmtmode(1,0)

DGSource doesn't work with 2, but it works with Setmtmode(3,0).

Why is it recommended to use 5 and what potential problems are there by using faster modes?


When I have a script which I want to send to VirtualDub for further processing with Neat Video, should I add distributor() at the end of the script?

The script will serve
DGSource or mpeg2source
and usually with QTGMC

What about distributor() when I'm serving to MeGUI for x264 compression?

In this case the script will serve avisource and use nnedi3_rpow2 and LimitedSharpenFaster or LFSMod.
Mole is offline   Reply With Quote
Old 8th October 2012, 13:19   #2  |  Link
Mole
Registered User
 
Mole's Avatar
 
Join Date: Oct 2001
Location: Thailand
Posts: 260
This is a sample script which I send to VirtualDub

Code:
Setmtmode(5,0)
DGSource("video.dgi")
Setmtmode(2)
trim(4810,117880)
a=trim(0,111869).crop(22,56,676,464).QTGMC(preset="slow", FPSDivisor=2)
b=trim(111870,0).crop(22,56,676,464).QTGMC(preset="fast", FPSDivisor=2).Greyscale()
a+b
converttorgb32()

This is what I typically send to MeGUI

Code:
Setmtmode(5,0)
avisource("video.avi", audio=no)
Import("LimitedSharpenFaster.avs")
Setmtmode(2)
a=trim(0,111869).nnedi3_rpow2(rfactor=2,threads=1).LimitedSharpenFaster(special=true).Spline36Resize(1280, 720)
b=trim(111870,0).grayscale().nnedi3_rpow2(rfactor=2, cshift="spline36resize", fwidth=1280, fheight=720, threads=1)
a+b
Or sometimes it's just like this:

Code:
Setmtmode(5,0)
avisource("video.avi", audio=no)
Setmtmode(2)
a=trim(0,111869).crop(8,0,704,576).LSFmod(defaults="fast").Spline36Resize(704,400)
b=trim(111870,0).crop(8,0,704,576).Spline36Resize(704,400).grayscale()
a+b

Last edited by Mole; 8th October 2012 at 13:23.
Mole is offline   Reply With Quote
Old 11th October 2012, 06:26   #3  |  Link
SamKook
Registered User
 
Join Date: Mar 2011
Posts: 212
It's pretty much only about compatibility. 5 is recommended because it will work with anything, but if something lower works, then there's no downside about using it. 3 works with everything I load so I always use that.

It usually doesn't matter much though since loading the scripts isn't very demanding.

Distributor should only be used when the application doesn't manage it itself or it will create more threads than needed and you will most likely run into memory problems.

If you see that you don't get 100% of your CPU or close, then it needs distributor at the end and if you see 100% CPU usage without it, then it doesn't need it.
I know x264 doesn't need it and I think virtualdub doesn't either, but I'm not 100% sure.
SamKook 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 11:59.


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