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. |
13th September 2017, 17:40 | #1 | Link |
Registered User
Join Date: Sep 2017
Posts: 26
|
Avisynth+ MT mode (HELP)
Someone could tell me how to write in the script to activate MT mode .
i am not very expert, if you have any comment or correction to the script to do it better thank you very much. SetFilterMTMode("FFVideoSource", 3) or SetFilterMTMode("FFVideoSource", MT_SERIALIZED).......... Code:
FFVideoSource("C:\ENCODE\Cap1.mkv") LanczosResize(960, 720) strength = 2 FFT3DFilter(bw=6, bh=6, ow=3, oh=3, plane=0, bt=1, sigma=strength) FFT3DFilter(bw=216, bh=216, ow=108, oh=108, plane=0, bt=1, sigma=strength/8, sigma2=strength/4, sigma3=strength/2, sigma4=strength) aWarpSharp(15,2) Tweak(hue=0.0, sat=1.0, bright=0, cont=1.0, coring=True, sse=False, startHue=0, endHue=360, maxSat=150, minSat=0, interp=16) ColorYUV(gain_y=0,gain_u=0, gain_v=0, off_y=0, off_u=0,off_v=0, cont_y=30, cont_u=151,cont_v=241,gamma_y=0, gamma_u=0, gamma_v=0, levels="", opt="", showyuv=false, analyze=false, autowhite=false, autogain=false) mfToon2(ssw=4, ssh=4,xstren=80,xthresh=80,cwarp=true,sharpen=true,strength=50,wdepth=16.0,wblur=1,wthresh=0.5,drange=64,dboost=1.0,dlimit=30,debug=false,doutput=true,dclip="rclip1",scolor=$FF00FF) f3kdb(range=15, Y=74, Cb=74, Cr=74, grainY=74, grainC=74, sample_mode=2, blur_first=True, dynamic_grain=False, opt=-1, mt=True, dither_algo=3, keep_tv_range=False, input_mode=0, input_depth=8, output_mode=0, output_depth=8) Flash3kyuu_deband() |
13th September 2017, 17:42 | #2 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
13th September 2017, 18:44 | #4 | Link | |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Most important part is prefetch(4) as last call.
Quote:
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
|
13th September 2017, 23:33 | #6 | Link |
Registered User
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,407
|
Yes, but 16 is probably too many threads for Avisynth, save some for your encoder. Also some filters are internally threaded which multiplies....
Maybe start with 4 and see how it goes.
__________________
madVR options explained |
15th September 2017, 06:16 | #7 | Link | |
Registered User
Join Date: Sep 2017
Posts: 26
|
MT with Avisynth+ dont work :( any help please
Quote:
Code:
FFVideoSource("C:\Users\Downloads\test1.mkv") Crop(240, 0, -240, -0) LanczosResize(960, 720) vectors = MSuper().MAnalyse(isb = false,blksize=8, overlap=4,search=5) globalmotion = MDepan(vectors, pixaspect=0.911, thSCD1=500) DepanStabilize(data=globalmotion,cutoff=0.5,mirror=15, rotmax=5, prev=0, next=0,Blur=50,pixaspect=0.911,subpixel=2,method=1) Prefetch(12) MT with Avisynth+ dont work any help please Last edited by frank_zappa1; 15th September 2017 at 06:18. |
|
15th September 2017, 16:00 | #8 | Link |
Registered User
Join Date: Sep 2007
Posts: 5,377
|
Seems to be bottleneck or threading issue in depan/depanstabilize. I wonder if there is a special mode you need to use ? , I mean besides mode 2
Code:
SetFilterMTMode("DEFAULT_MT_MODE", 2) SetFilterMTMode("FFVideoSource", 3) Last edited by poisondeathray; 15th September 2017 at 16:03. |
15th September 2017, 16:27 | #9 | Link |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
Unlike other filters from my package (mvtools2 2.7.22 with depans - if you are using that version), neither MDepan nor DepanStabilize autoregisters itself for Avisynth+ MT modes.
It should be MT_SERIALIZED (3) when a log file is involved (e.g. writing a deshaker log file) or you can try MT_MULTI_INSTANCE (2) in other cases. |
16th September 2017, 12:08 | #12 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
There are examples in the documentation.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
16th September 2017, 16:11 | #14 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,377
|
Quote:
attachment pending approval ... Can you upload it somewhere else please? Does "working fine" mean it scales (somewhat) with threads/prefetch ? I'm not using avstp with avisynth+, I thought that was from the older avisynth mt ? Other scripts multithread fine without it. So under what conditions should avstp be used in avisynth+ ? There is no clear documentation on that |
|
16th September 2017, 16:48 | #15 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
__________________
Groucho's Avisynth Stuff |
|
16th September 2017, 17:17 | #16 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,377
|
Quote:
Repeated same tests with avstp.dll and it's definitely faster, maybe 30-40% . But still 1/2 as fast as vpy version. I think something else is going on |
|
18th September 2017, 12:19 | #18 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
@frank_zappa1,
You can 'Bump' a thread (post 'Bump' or re-ask) if not getting any replies, but no more than once per day. If someone feels that they can help, they will. EDIT: Although your post #17 seems to be different question and may best be posted in a new thread. Or you can use search bar at top of page, or google https://www.google.co.uk/search?q=st...w=1280&bih=872
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 18th September 2017 at 12:39. |
|
|