PDA

View Full Version : splitted and switched frame contents


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

mf
23rd April 2004, 15:45
http://mf.creations.nl/postasample.gif

scharfis_brain
23rd April 2004, 15:57
without a sample it will be hard to help you.

FooFighter007
23rd April 2004, 16:54
well, the young couple wasn't to fund about posting parts of their video to the inet, but i'll give you a comparable sample here ...

the quality isn't that good but just to show the problem

look here (http://de.geocities.com/jonmiller666/)

mf
23rd April 2004, 17:08
You seemed to have solved it pretty well by yourself.

FooFighter007
23rd April 2004, 17:38
i just wanted to make sure that i didn't miss a avisynth inner function or plugin that would handle such a flip/flop problem.
besides, it's the first time i came across such a problem and i'm not really used to avisynth scripting.

thanks foo

scharfis_brain
23rd April 2004, 17:52
are you sure, that the splitted frame is temporary one frame/field?
if not, you'll get tearing on moving objects...

FooFighter007
23rd April 2004, 19:32
well, it actually is just a 4 minutes church sequence - otherwise they will have do this part again... and who knows if they would decide the YES again! :)

thanks for the input!

foo