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. |
26th May 2019, 17:52 | #541 | Link |
Registered User
Join Date: Feb 2014
Posts: 356
|
Thank you so much for the information, real.finder .
I finally had some time to test things. I've updated all necessary plugins-filters and am using the latest AviSynth+, but I'm struggling to solve the riddle. Here's my original script: Code:
DGIndexNV INFORMATION HERE ### Deinterlace ### TFM(Mode=7,UBSCO=False) ### Color Conversion ### ColorMatrix(Mode="Rec.601->Rec.709") ### Adjust Color ### MergeChroma(aWarpSharp2(Depth=16)) ### Crop ### Crop(8,0,-8,0) ### Fix Frame Borders ### BorderControl(YTS=1,YTSF=1,YBS=1,YBSF=1) ### Gibbs Noise Block ### Edge=MT_Edge("prewitt",ThY1=20,ThY2=40).RemoveGrain(17) Mask=MT_Logic(Edge.MT_Expand().MT_Expand().MT_Expand().MT_Expand(),Edge.MT_Inflate().MT_Inpand(),"xor").Blur(1.0) MT_Merge(Minblur(),Mask,Luma=True) ### Overall Temporal Denoise ### SMDegrain(TR=2,ThSAD=200,ContraSharp=True,RefineMotion=True,Plane=0,PreFilter=2,Chroma=False,LSB=True,LSB_Out=True) ### Resize ### NNEDI3_Resize16(Target_Width=960,Target_Height=720,Mixed=True,ThR=1.0,Elast=1.5,NNS=4,Qual=2,EType=0,PScrn=4,Threads=0,Kernel_D="Spline",Kernel_U="Spline",Taps=6,F_D=1.0,F_U=2.0,Sharp=0,LSB_In=True,LSB=True) aWarpSharp4xx(Depth=5,LSB=True) ### Darken-Thin Lines ### F=DitherPost(Mode=-1) S=F.FastLineDarkenMod4(Strength=24,Prot=6).aWarpSharp2(Blur=4,Type=1,Depth=8,Chroma=2) D=MT_MakeDiff(S,F).Dither_Convert_8_To_16() Dither_Add16(Last,D,Dif=True,U=2,V=2) ### Deband ### F3KDB(Y=100,Cb=100,Cr=100,GrainY=0,GrainC=0,Input_Mode=1,Input_Depth=16,Output_Mode=1,Output_Depth=16) ## Trim() # SelectRangeEvery(1000,66) ConvertFromStacked Code:
DGIndexNV INFORMATION HERE SMDegrain(n16=True,n16_Out=True) Code:
DGIndexNV INFORMATION HERE ### Deinterlace ### TFM(Mode=7,UBSCO=False) ### Color Conversion ### ColorMatrix(Mode="Rec.601->Rec.709") ### Adjust Color ### MergeChroma(aWarpSharp2(Depth=16)) ### Crop ### Crop(8,0,-8,0) ### Fix Frame Borders ### BorderControl(YTS=1,YTSF=1,YBS=1,YBSF=1) ### Gibbs Noise Block ### Edge=MT_Edge("prewitt",ThY1=20,ThY2=40).RemoveGrain(17) Mask=MT_Logic(Edge.MT_Expand().MT_Expand().MT_Expand().MT_Expand(),Edge.MT_Inflate().MT_Inpand(),"xor").Blur(1.0) MT_Merge(Minblur(),Mask,Luma=True) ### Overall Temporal Denoise ### SMDegrain(n16=True,n16_Out=True) Code:
DGIndexNV INFORMATION HERE ### Deinterlace ### TFM(Mode=7,UBSCO=False) ### Color Conversion ### ColorMatrix(Mode="Rec.601->Rec.709") ### Adjust Color ### MergeChroma(aWarpSharp2(Depth=16)) ### Crop ### Crop(8,0,-8,0) ### Fix Frame Borders ### BorderControl(YTS=1,YTSF=1,YBS=1,YBSF=1) ### Gibbs Noise Block ### Edge=MT_Edge("prewitt",ThY1=20,ThY2=40).RemoveGrain(17) Mask=MT_Logic(Edge.MT_Expand().MT_Expand().MT_Expand().MT_Expand(),Edge.MT_Inflate().MT_Inpand(),"xor").Blur(1.0) MT_Merge(Minblur(),Mask,Luma=True) ### Overall Temporal Denoise ### SMDegrain(n16=True,n16_Out=True) ### Resize ### NNEDI3_Resize16(Target_Width=960,Target_Height=720,Mixed=True,ThR=1.0,Elast=1.5,NNS=4,Qual=2,EType=0,PScrn=4,Threads=0,Kernel_D="Spline",Kernel_U="Spline",Taps=6,F_D=1.0,F_U=2.0,Sharp=0,LSB_In=True,LSB=True) aWarpSharp4xx(Depth=5,LSB=True) Last edited by LouieChuckyMerry; 26th May 2019 at 17:53. Reason: Width |
27th May 2019, 02:57 | #543 | Link | |
Registered User
Join Date: Feb 2014
Posts: 356
|
Quote:
|
|
27th May 2019, 03:18 | #544 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
"AVSMeter script -i" will also provide that info. Code:
[Clip info] Number of frames: 10000000 Length (hh:mm:ss.ms): 111:06:40.000 Frame width: 32 Frame height: 16 Framerate: 25.000 (25/1) Colorspace: YUV420P16
__________________
Groucho's Avisynth Stuff |
|
27th May 2019, 16:15 | #545 | Link |
Registered User
Join Date: Feb 2014
Posts: 356
|
Thanks for that, Groucho2004; I actually forgot that I'd added an AVSMeter shortcut to my "Send to" menu. Sadly, my understanding of the Windows cmd line is even less than my understanding of AviSynth. Much much much less. So I can right-click on a script and send it to AVSMeter, but it's going to want to run the whole script. Rather than take the time to make a special script, how would you process "AVSMeter script -i"?
Last edited by LouieChuckyMerry; 27th May 2019 at 16:16. Reason: Syntax |
27th May 2019, 16:24 | #546 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
__________________
See My Avisynth Stuff |
|
27th May 2019, 16:41 | #547 | Link | |
Registered User
Join Date: Feb 2014
Posts: 356
|
Quote:
|
|
27th May 2019, 17:59 | #548 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
the problem in the next filters, NNEDI3_Resize16 and aWarpSharp4xx (but this one work with both since I did update it, did also some update to NNEDI3_Resize16 but not for HBD since I chose edi_rpow2)
__________________
See My Avisynth Stuff Last edited by real.finder; 27th May 2019 at 18:14. |
27th May 2019, 18:19 | #549 | Link |
Registered User
Join Date: Feb 2014
Posts: 356
|
Ahhh, I didn't realize NNEDI3_Resize16 was such, thanks for the information (and for updating aWarpSharp4xx). Do you have a recommendation for a resizer that works in native HBD? And, would this then be the correct way to work with SMDegrain-NNEDI3_Resize16:
Code:
### Overall Temporal Denoise ### SMDegrain(TR=2,ThSAD=200,ContraSharp=True,RefineMotion=True,Plane=0,PreFilter=2,Chroma=False,LSB=True,LSB_Out=True) ### Resize ### NNEDI3_Resize16(Target_Width=960,Target_Height=720,Mixed=True,ThR=1.0,Elast=1.5,NNS=4,Qual=2,EType=0,PScrn=4,Threads=0,Kernel_D="Spline",Kernel_U="Spline",Taps=6,F_D=1.0,F_U=2.0,Sharp=0,LSB_In=True,LSB=True) aWarpSharp4xx(Depth=5,LSB=True) ### Darken-Thin Lines ### FastLineDarkenMod4(Strength=24,Prot=6) # Is this working in 16-bits? I couldn't find any info on LSB for FastLineDarkenMod4. aWarpSharp4xx(Blur=4,Type=1,Depth=8,Chroma=2) ### Deband ### F3KDB(Y=100,Cb=100,Cr=100,GrainY=0,GrainC=0,Input_Mode=1,Input_Depth=16,Output_Mode=1,Output_Depth=16) Trim(17666,17777) # SelectRangeEvery(1000,66) ConvertFromStacked Last edited by LouieChuckyMerry; 27th May 2019 at 18:21. Reason: Information |
27th May 2019, 18:48 | #550 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Add "-i" to your "Target" in the shortcut properties and change the AVSMeter.ini setting "PauseBeforeExit=0" to "PauseBeforeExit=1".
__________________
Groucho's Avisynth Stuff |
27th May 2019, 22:26 | #551 | Link | ||
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
Quote:
__________________
See My Avisynth Stuff |
||
28th May 2019, 05:28 | #552 | Link | ||
Registered User
Join Date: Feb 2014
Posts: 356
|
Quote:
Ooh wee! Getting EDI_RPow2 to work took some effort, and thanks for the challenge. I received a couple error messages about "what 'color_gray' means"--I've attached snips in order of appearance--and after hashing out (#) the offensive lines in ResizeX.avsi and EDI_RPow2.avsi I was eventually, I think, because "ConvertFromStacked" and my x264 custom cmd line "--demuxer raw --input-depth 16 --sar 1:1" were no longer necessary, able to send native 16-bit video to 10-bit x264 with this script: Code:
### Deinterlace ### TFM(Mode=7,UBSCO=False) ### Color Conversion ### ColorMatrix(Mode="Rec.601->Rec.709") ### Adjust Color ### MergeChroma(aWarpSharp2(Depth=16)) ### Crop ### Crop(8,0,-8,0) ### Fix Frame Borders ### BorderControl(YTS=1,YTSF=1,YBS=1,YBSF=1) ### Gibbs Noise Block ### Edge=MT_Edge("prewitt",ThY1=20,ThY2=40).RemoveGrain(17) Mask=MT_Logic(Edge.MT_Expand().MT_Expand().MT_Expand().MT_Expand(),Edge.MT_Inflate().MT_Inpand(),"xor").Blur(1.0) MT_Merge(Minblur(),Mask,Luma=True) ### Overall Temporal Denoise ### # SMDegrain(n16=True,n16_Out=True) SMDegrain(n16=True,n16_Out=True) ### Resize ### EDI_RPow2(CShift="Spline64Resize",FWidth=960,FHeight=720) aWarpSharp4xx(Depth=5) ### Darken-Thin Lines ### FastLineDarkenMod4(Strength=24,Prot=6) aWarpSharp4xx(Blur=4,Type=1,Depth=8,Chroma=2) ### Deband ### F3KDB(Y=100,Cb=100,Cr=100,GrainY=0,GrainC=0,Input_Mode=2,Input_Depth=16,Output_Mode=2,Output_Depth=16) Quote:
|
||
28th May 2019, 12:50 | #553 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Color_Gray ($808080) comes from the avisynth default supplied colors_rgb.avsi file which should be in plugins.
(I usually remove from there unless I need it). Colors_rgb.avsi Demo:- https://forum.doom9.org/showthread.p...75#post1741775
__________________
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 ??? |
28th May 2019, 14:45 | #555 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
edit: I did some changes to the wiki http://avisynth.nl/index.php/ConvertStacked
__________________
See My Avisynth Stuff Last edited by real.finder; 28th May 2019 at 15:08. |
|
28th May 2019, 17:42 | #556 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
LCM, Older version of Colors_rgb.avsi had two entries for Color_PaleGoldenrod, in graphic above, is in 11th page after Gray set, in third and forth rows.
I discovered it after doing the avs to create animated GIF, and whilst watching it. If you are using old version script, then maybe yours has the double entry, no real problem if it does.
__________________
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; 28th May 2019 at 18:22. |
28th May 2019, 19:24 | #557 | Link | |||||
Registered User
Join Date: Feb 2014
Posts: 356
|
Quote:
I've had some time to tweak my SMDegrain settings with "n16=True,n16_Out=True" and have gotten everything to work but "ContraSharp=True". This runs fine: Code:
SMDegrain(TR=2,ThSAD=200,ContraSharp=False,RefineMotion=True,Plane=0,PreFilter=2,Chroma=False,n16=True,n16_Out=True) Code:
SMDegrain(TR=2,ThSAD=200,ContraSharp=True,RefineMotion=True,Plane=0,PreFilter=2,Chroma=False,n16=True,n16_Out=True) Quote:
Quote:
Quote:
Quote:
|
|||||
28th May 2019, 21:09 | #558 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
not 100% sure about it, will wait for the answer of this
__________________
See My Avisynth Stuff |
|
29th May 2019, 05:55 | #560 | Link | |
Registered User
Join Date: Jul 2018
Posts: 450
|
Quote:
Code:
## 10bit clip here ConvertToDoubleWidth() F3KDB(Input_Mode=2,Input_Depth=10,Output_Mode=2,Output_Depth=10) ConvertFromDoubleWidth(bits=10) Code:
## 10bit clip here ConvertBits16() ConvertToDoubleWidth() F3KDB(Input_Mode=2,Input_Depth=16,Output_Mode=2,Output_Depth=10) ConvertFromDoubleWidth(bits=10) |
|
|
|