View Single Post
Old 4th November 2019, 16:14   #57  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
OK, I'm assuming that you only want single frames written and not ranges (although this threw me a little bit ""reverse" the output of frames.txt").

first few lines of the client script [Added in BLUE]
Code:
Import(".\Duplicity2.Avsi")

######
FN  = ".\Earth.AVI"        DBase  = "D:\Earth.DB"            ThB=2.0
#FN  = "D:\G.AVI"          DBase  = "D:\G_Det.DB"            ThB=2.0
#FN  = "D:\GTEST.AVI"      DBase  = "D:\GTEST_Det.DB"        ThB=2.0
#FN = "D:\HAR.AVI"         DBase  = "D:\HAR_Det.DB"          ThB=2.5
#FN = "D:\DeDupTest.AVI"   DBase  = "D:\DeDupTest_Det.DB"    ThB=2.0
######
Avisource(FN)
SRC=Last
###
Mode=0             # 0=Write Frames only : 1=Replace Dupes with Exact Dupes : 2= Interpolate/Blend Duplicates.
ThG=1.0            # Primary Frame Global Detect
ThP=64             # Pixel Count Detect
MaxDupLen=9        # Max detected, if more then is considered static sequence not duplicate)
MaxInterp=9        # Max Interpolated frames when Mode=2 (More than MaxInterp & less or equal to MaxDupLen then uses Blend mode)
InterpFast=true
Ranges=False    # Added
Show=True
ShowDot=False
ShowBlk=true
VERB=False
###
TITLE=False
STACK=True
STACK4=False
###

Result=SRC.Duplicity2(Mode=Mode,ThG=ThG,ThB=ThB,ThP=ThP,MaxDupLen=MaxDupLen,MaxInterp=MaxInterp,
    \ Show=False,InterpFast=InterpFast,Ranges=RANGES,DBase=(STACK4||!SHOW)?DBase:"")

Metrics=SRC.Duplicity2(Mode=Mode,ThG=ThG,ThB=ThB,ThP=ThP,MaxDupLen=MaxDupLen,MaxInterp=MaxInterp,
    \ Show=True,Verb=VERB,ShowBlk=ShowBlk,ShowDot=ShowDot,InterpFast=InterpFast,Ranges=RANGES,DBase=(STACK4||!SHOW)?"":DBase)
Quote:
Code:
        Frames,       Default "Frames.txt", Frames filename for output, ("" will not write Frames file).
        Ranges,       Default True (True=Write comma separated frame ranges to Frames file, else single frames only).
        FrameAsRange, Default False. If Ranges=True and FrameAsRange=default false, and single frame, then writes single frame number and
                      not range. If Ranges=True and FrameAsRange=True then writes single frame as range eg '23,23' for frame 23.
So this
Code:
###
# Duplicate frames file. [ Generated by Duplicity2() ]
###

90,92
320
382
384
386
388,389
439
490
492
527
553
567
583
617
628
635
639
650
660
669
673
682
684
686
688,689
would become this
Code:
###
# Duplicate frames file. [ Generated by Duplicity2() ]
###

90
91
92
320
382
384
386
388
389
439
490
492
527
553
567
583
617
628
635
639
650
660
669
673
682
684
686
688
689
Perhaps I have misinterpreted your request, if so then please restate.
__________________
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; 4th November 2019 at 17:03.
StainlessS is offline   Reply With Quote