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 20th January 2019, 13:59   #221  |  Link
gugglu
Registered User
 
Join Date: Jul 2012
Location: Nottingham
Posts: 33
Quote:
Originally Posted by real.finder View Post
if anyone interested, I made an update to mpp (MP_Pipeline) using last code from official github https://github.com/SAPikachu/MP_Pipeline

there are two changes aside from support old avs mt, one is "Add support for specifying cores", and the 2nd one is "Fix crash on systems with many CPUs"

you can get it from here https://github.com/realfinder/MP_Pipeline/releases
Can you please write one example how to use core future?

this is my script i've tried with ### cores:4 at the end of script, can you clear this to me am i ordering it correct or not , thanks.

Code:
o = last

mb1 = o.minblur(1)

mb2 = o.mt_adddiff(mt_makediff(mb1,mb1.removegrain(4)))

ss = seesaw(o, mb2, ssx=1.30, ssy=1.30)

rep = ss.repair(o,1,1,1,false)

mt_lutxy (o, rep, expr="x y < y 1 - x y > y 1 + y ? ?", y=3, u=3, v=3)
Can you please check my 8-bit process and i think it needs some correction. if possible pls look below mt_adddiff(mt_makediff(mb1,mb1.removegrain(4))) i tried seesaw / repair / mt_lutxy i think they need swapping up or down with each other i tried replacing them what not sure where thats how they should be placed or need correction. i would be greatly thankful to you if you clear this illusion in script.i have 14Core/28thread cpu i need an script example for

thanks a ton ,your efforts are very much appreciated.

Last edited by gugglu; 17th March 2019 at 23:18.
gugglu is offline   Reply With Quote
Old 20th January 2019, 22:56   #222  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 1,281
it's just the old
Code:
### lock threads to cores
but now you can set the thread/core like this

mp_pipeline("""
### platform
1st block here
### lock threads to cores 1
### ###
### platform
2nd block here
### lock threads to cores 2
### ###
""")

and so, and ofc you can use another threads/cores as you like

Regarding 8-bit process Question, it's off topic but anyway seesaw need denoised clip in 2nd clip input, o.mt_adddiff(mt_makediff(mb1,mb1.removegrain(4))) give sharp noisily output

aside from that why you still use lsb not the native clean and fast HBD in avs+?
__________________
My Avisynth Stuff

Last edited by real.finder; 20th January 2019 at 23:11.
real.finder is offline   Reply With Quote
Old 6th February 2019, 11:44   #223  |  Link
gugglu
Registered User
 
Join Date: Jul 2012
Location: Nottingham
Posts: 33
Quote:
Originally Posted by real.finder View Post
it's just the old
Code:
### lock threads to cores
but now you can set the thread/core like this

mp_pipeline("""
### platform
1st block here
### lock threads to cores 1
### ###
### platform
2nd block here
### lock threads to cores 2
### ###
""")

and so, and ofc you can use another threads/cores as you like

Regarding 8-bit process Question, it's off topic but anyway seesaw need denoised clip in 2nd clip input, o.mt_adddiff(mt_makediff(mb1,mb1.removegrain(4))) give sharp noisily output

aside from that why you still use lsb not the native clean and fast HBD in avs+?
Hello, and sorry for late reply (it is my working hour very long).thanks for the example.i have done two test on my laptop both works.

Code:
mp_pipeline("""

### platform:win32
### dll:avisynth.dll

Setmemorymax(1536)

DGDecode_mpeg2source("C:\Users\Kalik\Videos\VTS.d2v", cpu=4, info=3)

ColorMatrix(hints=true, threads=0)

crop(2, 66, 0, -66)
### prefetch:128,32
### lock threads to cores: 2
### ###

### platform:win64
### dll:avisynth.dll

setmemorymax(2048)

SMDegrain(Tr=3)
### prefetch:64,16
### lock threads to cores: 2
### ###
""")
or
Code:
mp_pipeline("""

### platform:win32
### dll:avisynth.dll

Setmemorymax(1536)

DGDecode_mpeg2source("C:\Users\Kalik\Videos\VTS.d2v", cpu=4, info=3)

ColorMatrix(hints=true, threads=0)

crop(2, 66, 0, -66)
### prefetch:128,32
### lock threads to cores 2
### ###

### platform:win64
### dll:avisynth.dll

setmemorymax(2048)

SMDegrain(Tr=3)
### prefetch:64,16
### lock threads to cores 2
### ###
""")
AVS+ Native HBD perform better gives nicer output, but i don't know any Debanding filter which works with Avs+ Native HBD so i can stick that just after smdegrain this is why i use lsb thing some time(but i tried Avs+ Native HBD and to be honest i like the result more than the lsb ting).

Please can you correct this if u have some free time , i've core-i9 7940x 14cores/28threads only thing where i get confused ### lock threads to cores , do i have to type cores number or threads number? thanks for your precious work i really like mp_pipeline and i use it every time i encode any clip.
Code:
mp_pipeline("""

### platform:win32
### dll:avisynth.dll

Setmemorymax(1536)

DGDecode_mpeg2source("C:\Users\Kalik\Videos\VTS.d2v", cpu=4, info=3)

ColorMatrix(hints=true, threads=0)

crop(2, 66, 0, -66)
### prefetch:128,32
### lock threads to cores 14
### ###

### platform:win64
### dll:avisynth.dll

setmemorymax(2048)

SMDegrain(Tr=3)
### prefetch:64,16
### lock threads to cores 14
### ###
""")
gugglu is offline   Reply With Quote
Old 7th February 2019, 05:30   #224  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 1,281
from the old read me of mpp

Quote:
### lock threads to cores

Slave processes with this statement will lock their worker threads into a core. This may improve performance for some scripts.

Core selection is on a round-robin manner, with awareness of hyper-threading.
the new change is

Quote:
Affinity: Add support for specifying cores
so every block should has different number (or using some threads/cores that has no heavy load, mean you can balance that in which way make the script run faster), and those numbers should be up to cores counts (or maybe threads, you should ask a Developer ) in the cpu

the old mpp as the read me said, does it automatically I think, maybe even in the new one still does that if not specified by user


and Regarding
Quote:
### lock threads to cores 2
vs
Quote:
### lock threads to cores: 2
I think the 1st one is the correct as I understand from the Source code, the 2nd one may act like old method (ignore the number) or maybe work as it should, see what you got in the task manager in windows
__________________
My Avisynth Stuff

Last edited by real.finder; 7th February 2019 at 06:03.
real.finder is offline   Reply With Quote
Old 7th February 2019, 06:13   #225  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 1,281
Quote:
Originally Posted by gugglu View Post
AVS+ Native HBD perform better gives nicer output, but i don't know any Debanding filter which works with Avs+ Native HBD so i can stick that just after smdegrain this is why i use lsb thing some time(but i tried Avs+ Native HBD and to be honest i like the result more than the lsb ting).
you can use flash3kyuu_deband, it's can use interleaved format which is like Native in speed, https://f3kdb.readthedocs.io/en/late...arg-input-mode with using ConvertToDoubleWidth() in avs+
__________________
My Avisynth Stuff

Last edited by real.finder; 3rd June 2019 at 00:16.
real.finder is offline   Reply With Quote
Old 18th February 2019, 19:22   #226  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 1,281
SMDegrain update
new divide parameter (Dogway) and some edits for avs+ and avs neo cases and some others changes

---

there are many of my scripts already use some method for avs+ detection since years, but unfortunately it not work with avs neo so updates will come soon for those, and from now on you will need SMDegrain.avsi more than ever since it have the IsAvsNeo(), IsAvsPlus() and AvsPlusVersionNumber() functions. why?
__________________
My Avisynth Stuff

Last edited by real.finder; 6th March 2019 at 01:23.
real.finder is offline   Reply With Quote
Old 21st February 2019, 16:38   #227  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 1,281
almost all filters updated, and SMDegrain.avsi is needed now for many scripts since it have the IsAvsNeo(), IsAvsPlus() and AvsPlusVersionNumber() functions
__________________
My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 21st February 2019, 16:49   #228  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,087
Thankyou RF for you continued work, I'm gonna have to steal some of your code, so thanx in advance.
__________________
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 ???
StainlessS is offline   Reply With Quote
Old 21st February 2019, 16:55   #229  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 982
Thx for the update(s).
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository
ChaosKing is offline   Reply With Quote
Old 6th March 2019, 17:59   #230  |  Link
Vitality
Registered User
 
Join Date: Oct 2018
Posts: 54
Quote:
Originally Posted by real.finder View Post
also AKA A.SONY's Avisynth Stuff

note:- SMDegrain.avsi (v3.1.2.101s or up) is needed now for many scripts since it have the IsAvsNeo(), IsAvsPlus() and AvsPlusVersionNumber() functions. why?

DeHalo_alpha_MT2
I have SMDegrain v3.1.2.101s but I still get the AvsPlusVersionNumber() missing error with DeHalo_alpha_MT2.


Last edited by tebasuna51; 6th March 2019 at 21:21.
Vitality is offline   Reply With Quote
Old 19th April 2019, 18:14   #231  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 1,281
I did update dfttestMC (now "dfttestMC and MC things")

there are new mcKNLMeansCL(), you can also try with sMCwarper(prefilter=1,"SMDegrain_KNLMeansCL(d=2)")

edit: there was some bug, re-download it
__________________
My Avisynth Stuff

Last edited by real.finder; 19th April 2019 at 18:54.
real.finder is offline   Reply With Quote
Old 19th April 2019, 19:28   #232  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 1,030
Quote:
Originally Posted by real.finder View Post
I did update dfttestMC (now "dfttestMC and MC things")
Well, we need a OpenCL DFTtest
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 6th May 2019, 11:03   #233  |  Link
Natty
Noob
 
Join Date: Mar 2017
Posts: 209
i recently upgraded to ryzen + radeon. i am getting weird frames while using knlmeans prefilter in smdegrain like this

https://i.imgur.com/YL2rHpH.jpg

it didnt happen in intel + nvidia... is there any solution ?
Natty is offline   Reply With Quote
Old 6th May 2019, 11:42   #234  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 1,281
Quote:
Originally Posted by Natty View Post
i recently upgraded to ryzen + radeon. i am getting weird frames while using knlmeans prefilter in smdegrain like this

https://i.imgur.com/YL2rHpH.jpg

it didnt happen in intel + nvidia... is there any solution ?
other prefilter's work fine? if not then it's mvtools problem, if they work fine then it's knlmeans
__________________
My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 6th May 2019, 13:05   #235  |  Link
Natty
Noob
 
Join Date: Mar 2017
Posts: 209
Quote:
Originally Posted by real.finder View Post
other prefilter's work fine? if not then it's mvtools problem, if they work fine then it's knlmeans
yes prefilter 2 and 3 work fine.. even prefilter 4 works good in normal noised sources.. craps out on too noisy sources.
Natty is offline   Reply With Quote
Old 30th May 2019, 15:58   #236  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 1,030
Quote:
Originally Posted by real.finder View Post
new SMDegrain edit
I hope some day you will release changelog with new versions
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 30th May 2019, 17:04   #237  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 1,281
Quote:
Originally Posted by tormento View Post
I hope some day you will release changelog with new versions
too late for that, anyway I did in the top of script for most new things, other updates mostly for bug fix, the last update for this
__________________
My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 16th June 2019, 12:42   #238  |  Link
Zetti
Registered User
 
Join Date: Dec 2015
Location: Denmark
Posts: 207


I can't choose Prefilter4 in AvsPmod

Can it be a bug??

Edit I forgot to mention i use SMDegrain v3.1.2.102s

Last edited by Zetti; 16th June 2019 at 12:48.
Zetti is offline   Reply With Quote
Old 19th June 2019, 14:51   #239  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 1,281
Quote:
Originally Posted by Zetti View Post


I can't choose Prefilter4 in AvsPmod

Can it be a bug??

Edit I forgot to mention i use SMDegrain v3.1.2.102s
this in avspmod? you should report it in avsp Thread
__________________
My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 19th June 2019, 15:29   #240  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 982
Quote:
Originally Posted by Zetti View Post


I can't choose Prefilter4 in AvsPmod

Can it be a bug??

Edit I forgot to mention i use SMDegrain v3.1.2.102s
The profile/config for smdegrain needs to be updated in avsp mod. This is a manual task and can't be detected automatically as far as I know.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository
ChaosKing is offline   Reply With Quote
Reply

Tags
avisynth, avs script, avs+, banding, generator, hbd, mod

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 20:08.


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