View Single Post
Old 11th January 2019, 12:02   #270  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
output is a single frame, not the source video.
Yeh well as the input to the script in zip is a single frame, then that is not so surprising, if you want to process a video then feed it a video.

modified a bit
Code:
Imagesource(".\GreenChurch.png",end=0)        # SINGLE FRAME (end=0)
#Imagesource(".\Puppy.png",end=0)
#Imagesource(".\lennaRed.png",end=0)
#Avisource(".\SomeVideo.avi")                 # Video Clip

ConvertToRGB24.KillAudio
DC=Last

DC=DC.Blur(0.2)          # Detection Clip (uses source clip if dc not supplied, Denoised or whatever)

LockChan = 1            # Chan for lock to Ave, 0=R, 1=G, 2=B
                        #    -1 = Use LockVal below.
                        #    -2 = LockVal=(RedAve+GrnAve+BluAve)/3.0 for LockVal.
                        #    -3 = LockVal=Median(RedAve,GrnAve,BluAve)
Th        = 0.0
LockVal   = 128.0       # Only valid if LockChan == -1
Show      = True        # Metrics
Verb      = 5           # Verbocity FULL
DITHER=FALSE
x =0                    # Coords (for dc Detection Clip)
y =0
w=-0
h=-0

omin=0                  # Output channels minimum (footroom for manual editing).
omax=255                # Output channels maximum (headroom for manual editing).

#Return GamMac(DC,x=x,y=y,w=w,h=h,Coords=True)    # Show Coords only

Scale=2
RedMul=1.0
GrnMul=1.0
BluMul=0.95
C=GamMac(LockChan=LockChan,SCALE=SCALE,RedMul=RedMul,GrnMul=GrnMul,BluMul=BluMul,
    \ Th=Th,LockVal=LockVal,
    \ dc=DC,
    \ x=x,y=y,w=w,h=h,
    \ omin=omin,omax=omax,
    \ Show=Show,Verbosity=Verb,dither=DITHER)

#C=C.FlipHorizontal # or whatever

return C.ConvertToYV12
__________________
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; 11th January 2019 at 12:06.
StainlessS is offline   Reply With Quote