View Single Post
Old 30th July 2005, 00:57   #20  |  Link
AsTimeGoesBy
Registered User
 
AsTimeGoesBy's Avatar
 
Join Date: Oct 2004
Location: 'neutral' zone
Posts: 110
I need some assistance with zoom().

Belong my first impression and other threads it's quite tricky to handle.

I could imagine a zoom movement would freshen up movementless sequences.
That rotation feature of zoom() is interesting too although i already fail with trivial zooming to a special position.
The examples in the readme zoom.txt are amazing to watch but didn't enlighten me enough.
Even i understand it zoom() complete wrong or i must look for a brain-update...

An example. How to zoom on Mrs. Bride's eyes in the following frame (=>sequence) ?

=>


I have prepared the values. However the script below doesn't create the intended effect.
I really would be glad if somebody could tell me the correct syntax or just give me some hints.
Code:
LoadPlugin("D:\Programs\Video\AviSynth\Plugins\zoom.dll")
#
# Zoom(string "srcx", string "srcy", string "dstx", string "dsty", 
# \ string "factorX", string "factorY", string "factor",
# \ string "angle", int "height", int "width", bool "show" ) 
#

# www.kill-bill.com/wallpapers/kill_bill_a_12.jpg
imagereader("kill_bill_a_12.jpg",0,500,fps=25) 
converttorgb32()

# src size            : 1280 x 960
# src center          : srcx="640", srcy="480"
# dst size            : 320 x 240
# dst coord left/top  : 574/204
# dst coord right/down: 894/444
# center dst          : dstx="734", dsty="324"

ReduceBy2() # now...:

# src size            : 640 x 480 
# src center          : srcx="320", srcy="240"
# dst size            : 160 x 120
# dst coord left/top  : 287/102
# dst coord right/down: 447/222
# center dst          : dstx="367", dsty="162"

zoom(srcx="320", srcy="240", dstx="367", dsty="162", angle="0")  # width=160, height=120
AsTimeGoesBy is offline   Reply With Quote