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 17th July 2021, 16:04   #81  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Thanks, i will try
kedautinh12 is offline   Reply With Quote
Old 20th July 2021, 04:29   #82  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
I don't seen any SingleRate.txt creat by script 2

Last edited by kedautinh12; 20th July 2021 at 07:25.
kedautinh12 is offline   Reply With Quote
Old 20th July 2021, 06:40   #83  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
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 ???
StainlessS is offline   Reply With Quote
Old 20th July 2021, 07:28   #84  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
I used script 2 but don't seen SingleRate.txt. I think your scripts use for twopass encode. So sad cause i use one pass encode
kedautinh12 is offline   Reply With Quote
Old 20th July 2021, 12:41   #85  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
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.
StainlessS is offline   Reply With Quote
Old 21st July 2021, 05:55   #86  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
It's work, many thanks
kedautinh12 is offline   Reply With Quote
Reply

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 10:27.


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