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. |
20th July 2021, 06:40 | #83 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
SingleRate.txt is created via the 2nd script in post #62.
__________________
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 ??? |
20th July 2021, 12:41 | #85 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
OK, here TwoPass
Code:
LoadPlugin(".\BWDif.dll") ########## A=Avisource("clip3.mkv.avi") # Short clip B=Avisource("clip.mkv.avi") # Longer one C=Avisource("clip2.mkv.avi") # third one A ++ B ++ C # All 3 clips [in supplied order] assumetff() o=last ############################ ### Config ### V_YCD_TH = 107.0 # FINAL = False # SWITCH OFF ALL THE OTHER STUFF if TRUE SUBS = True SHOWMINMAX = True # Show Metric minimums where scenechange detected, AND metrics Maximums where NO Scenechange detected [tweak thresholds] ### CLIPCLOPSHOW = True STACK = True SFrames = ".\SingleRate.txt" ############################ If (FINAL) { SUBS = FALSE SHOWMINMAX = FALSE CLIPCLOPSHOW = False STACK = FALSE } SFrames = SFrames.RT_GetFullPathName RT_fileDelete(SFrames) YCD_MIN = 512.0 YCD_MAX = 0.0 COUNT = 0 # COUNT valid only on forward ONLY scan SSS=""" n = current_frame YC = RT_LumaCorrelation(Last,Last,n=n,y=0,n2=n,y2=1,interlaced=True) # Correlation Between Even and Odd fields YCD = (1.0-YC)*255.0 # Difference by Correlation [0.0->255, max poss 512.0=-1, -ve correlation] SC = (YCD > V_YCD_TH) COUNT = (SC) ? COUNT + 1 : COUNT (SUBS)?RT_Subtitle("%d]\nYCD=%7.3f\nSceneChange=%s (COUNT=%d)",n,YCD,SC,COUNT) : NOP if(SC) { RT_WriteFile(SFrames,"1 %d",n,Append=True) } # Write Frame file in Clipclop style. if(SHOWMINMAX) { if(SC) { YCD_MIN = (YCD < YCD_MIN) ? YCD : YCD_MIN } else { YCD_MAX = (YCD > YCD_MAX) ? YCD : YCD_MAX } RT_Subtitle(" SC: VCD_MIN = %7.3f\n!SC: VCD_MAX = %7.3f\n\a!SET: V_VCD_TH= %7.3f", \ YCD_MIN,YCD_MAX,Round((YCD_MIN+YCD_MAX)/2.0),align=1) } Return Last """ Scriptclip(SSS) RT_ForceProcess # force Pass 1 # Pass 2 deint=bwdif(field=3, edeint=nnedi3(field=3)) deintblend=merge(deint.selecteven, deint.selectodd) deinteven = deint.selecteven() ClipClop(deintblend,deinteven,cmd=SFrames,Show=CLIPCLOPSHOW) (STACK) ? StackHorizontal(o,Last) : Last Return last
__________________
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; 20th July 2021 at 12:44. |
Thread Tools | Search this Thread |
Display Modes | |
|
|