View Single Post
Old 19th January 2005, 00:10   #4  |  Link
cwolf
Registered User
 
Join Date: Oct 2003
Location: Porto Alegre, Brazil
Posts: 13
I hope it's never too late to thank
The script that worked is this. I made an AVSI and put it in the plugin directory:
Code:
function applyflash(clip a, int fn, int qt) {a
eval ("""applyrange (fn,fn+qt-1,"flash",fn,qt)""")}

function flash (clip f, int "first", int "qty") {
scriptclip(f,"first = "+string(first) +chr(13)+
\            "qty = " +string(qty) +chr(13)+
\          """x= freezeframe(current_frame -1,current_frame -1,first -1)
              Y= x.freezeframe(current_frame,current_frame,first + qty)
              d= y.DePanEstimate(improve=true,zoommax=1.4)
              offs= 1. / ( qty + 1.) * (current_frame - first + 1.)
              DePan(y, data=d, offset=offs,info=false)
              #subtitle (string(offs)+" "+string(first)+" "+string(qty),y=200)
              #stackhorizontal(x.trim(current_frame - 1,-1).crop(0,0,360,0),y.crop(360,0,0,0))
           """)}
Code:
avisource("f:\xxx.avi",audio=false)
assumetff()
alignfields(fps2=true,mode=0)
#showframenumber(scroll=true)
applyflash(271,3)
applyflash(288,2)
applyflash(703,2)
...
AssumeTFF().SeparateFields().SelectEvery(4,0,3).Weave()
alignfields(mode=3,scene=3)
I went further and did a wraper function to call it, using Stickboy's ideas. This solution pleased me more, although all that Depan gives is a freezed frame that moves toward a global movement.
Your help was unvaluable. Thank you guys!
Cecilia
__________________
Athlon XP2400;a7v333;768mb PC2100;Seagate 80Gb;AIW8500;DVD
musica do mundo - my favourite radio program, check it!
cwolf is offline   Reply With Quote