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. |
1st August 2018, 13:40 | #1 | Link |
Registered User
Join Date: Nov 2014
Posts: 18
|
ConditionalFilter
Hi all,
How does one use the Conditional filter? Did a read up and kind of lost. I see scripts using it as a debanding sort of thing - but unclear as to how the SceneTypes.txt is generated exactly? Also unsure of the "R # # 1/2/3" in that file. Can anyone please explain? |
1st August 2018, 14:56 | #2 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Your question dont seem to make much sense, what SceneTypes.txt ???
Quote:
Maybe you mean ConditionalReader:- http://avisynth.nl/index.php/ConditionalReader
__________________
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 ??? |
|
29th January 2021, 12:54 | #4 | Link |
Registered User
Join Date: Dec 2012
Posts: 65
|
can someone explain why this script works?
Code:
C1=DGSource("VTS_01_2.dgi").TFM(mode=4,pp=5,MI=1,display=false, slow=1,cthresh=9,mthresh=5,chroma=false,ubsco=false,hint=true,opt=4,metric=0) LWLibavVideoSource(lossless - 02.mkv").Spline36Resize(720, 480) C2=last ConditionalFilter(C1, C2, "MyVar", "==", "False", false) ConditionalReader("Frame-list2.txt", "MyVar", false) Code:
C1=DGSource("VTS_01_2.dgi").TFM(mode=4,pp=5,MI=1,display=false, slow=1,cthresh=9,mthresh=5,chroma=false,ubsco=false,hint=true,opt=4,metric=0) C2=LWLibavVideoSource(lossless - 02.mkv").Spline36Resize(720, 480) С2 ConditionalFilter(C1, C2, "MyVar", "==", "False", false) ConditionalReader("Frame-list2.txt", "MyVar", false) Code:
C1=DGSource("VTS_01_2.dgi").TFM(mode=4,pp=5,MI=1,display=false, slow=1,cthresh=9,mthresh=5,chroma=false,ubsco=false,hint=true,opt=4,metric=0) C2=LWLibavVideoSource("lossless - 02.mkv").Spline36Resize(720, 480) ConditionalFilter(C1, C2, "MyVar", "==", "False", false) ConditionalReader("Frame-list2.txt", "MyVar", false)
__________________
Ryzen 2700x | ASUS ROG Strix GTX 1080 Ti | 16 Gb DDR4
Windows 10 x64 20H2 KD-55XE9005 | Edifier R2800 Last edited by Shinkiro; 29th January 2021 at 13:02. |
29th January 2021, 19:53 | #5 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,377
|
Quote:
There is no implied "last" in the last one |
|
29th January 2021, 20:49 | #7 | Link |
Registered User
Join Date: Dec 2012
Posts: 65
|
Ok you're right, this is how it works without errors
Code:
C1=DGSource("VTS_01_2.dgi").TFM(mode=4,pp=5,MI=1,display=false, slow=1,cthresh=9,mthresh=5,chroma=false,ubsco=false,hint=true,opt=4,metric=0) C2=LWLibavVideoSource("lossless - 02.mkv").Spline36Resize(720, 480) ConditionalFilter(С2,C1,C2, "MyVar", "==", "False", false) ConditionalReader("Frame-list2.txt", "MyVar", false)
__________________
Ryzen 2700x | ASUS ROG Strix GTX 1080 Ti | 16 Gb DDR4
Windows 10 x64 20H2 KD-55XE9005 | Edifier R2800 |
29th January 2021, 23:12 | #8 | Link | |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,431
|
Quote:
Since in your case, the conditional expression ("MyVar == False") does not depend on the first clip (the so-called 'test clip'). |
|
|
|