FooFighter007
23rd April 2004, 14:28
when i came across a mixed up wedding video a days ago, i didn't have a clue how to solve my trouble. due to a cam problem the video got nuked. the frames got splitted roughly in the middle, the lower contents on top and the upper part at the bottom. i wrote the following script to solved my problem but it's far from beeing perfect. who can help me with a better way ...
# flipflop clip areas
clip=avisource("test.avi")
clip=clip.ConvertToRGB32
# create top/bottom clips
t_clip=clip.crop(1,1,clip.width-1,(clip.height-1)/2)
b_clip=clip.crop(1,(clip.height-1)/2,clip.width-1,(clip.height-1)/2)
# flipflop t_clip/b_clip
clip=layer(clip,t_clip,"add",255,0,(clip.height)/2)
clip=layer(clip,b_clip,"add",255,0,0)
clip
th@nx foo
# flipflop clip areas
clip=avisource("test.avi")
clip=clip.ConvertToRGB32
# create top/bottom clips
t_clip=clip.crop(1,1,clip.width-1,(clip.height-1)/2)
b_clip=clip.crop(1,(clip.height-1)/2,clip.width-1,(clip.height-1)/2)
# flipflop t_clip/b_clip
clip=layer(clip,t_clip,"add",255,0,(clip.height)/2)
clip=layer(clip,b_clip,"add",255,0,0)
clip
th@nx foo