View Single Post
Old 6th November 2012, 18:56   #9  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,493
Quote:
Originally Posted by mastrboy View Post
The plugin functions in itself is interesting, but as probably many others I only use avisynth to correct "errors" in the video
Perhaps my examples were a little esoteric, but of course xyremap could be put to use correcting picture distortions and the like. Perhaps a YUV version would be useful for correcting some chroma misalignments.

Quote:
My guess is that those who want to manipulate video and add effects turn to Adobe AfterEffects or similar.
Which is not, contrary to popular belief, a free download so now (for very simple things) they don't need to.

Anyway, here's another frivolous (and very slow) use of xyremap:

Code:
a=blankclip(width=640,height=1280,length=1500).subtitle(\
"It   is  a   period  of   civil  war.\n"+\
"Rebel    spaceships,    striking\n"+\
"from a hidden base, have won\n"+\
"their    first    victory    against\n"+\
"the   evil   Galactic   Empire.   \n\n"+\
"During    the    battle,     Rebel\n"+\
"spies managed to steal secret\n"+\
"plans      to      the      Empire's\n"+\
"ultimate  weapon,  the DEATH\n"+\
"STAR,    an    armored    space\n"+\
"station with enough power to\n"+\
"destroy  an  entire  planet.      \n\n"+\
"Pursued    by    the    Empire's\n"+\
"sinister     agents,     Princess\n"+\
"Leia  races  home  aboard her\n"+\
"starship,   custodian   of   the\n"+\
"stolen  plans  that  can  save\n"+\
"her     people     and     restore\n"+\
"freedom  to  the  galaxy....      "\
,lsp=0,align=8,size=50).converttorgb32

b=a.reduceby2.bicubicresize(320,320)
c=b.reduceby2.bicubicresize(160,80)
d=c.reduceby2.bicubicresize(80,20)

a=a.xyremap("x w 0.5 * - 1 y h / * / u w / * u 0.5 * +","v h y - y / h * n 4 * - v + - v 1280 / *","y 4 - h / sqrt 1 h y - 0.005 * - *",w=640,h=360)
b=b.xyremap("x w 0.5 * - 1 y h / * / u w / * u 0.5 * +","v h y - y / h * n 4 * - v + - v 1280 / *","y h / sqrt h y - 0.005 * 1 180 y - 0.01 * - min *",w=640,h=360)
c=c.xyremap("x w 0.5 * - 1 y h / * / u w / * u 0.5 * +","v h y - y / h * n 4 * - v + - v 1280 / *","y h / sqrt 180 y - 0.01 * 1 90 y - 0.02 * - min *",w=640,h=360)
d=d.xyremap("x w 0.5 * - 1 y h / * / u w / * u 0.5 * +","v h y - y / h * n 4 * - v + - v 1280 / *","y h / sqrt 90 y - 0.02 * *",w=640,h=360)

e=overlay(a,b,mode="add",pc_range=true)
f=overlay(c,d,mode="add",pc_range=true)
overlay(e,f,mode="add",pc_range=true)


Tell me that's not practical

David
wonkey_monkey is offline   Reply With Quote