View Full Version : deinterlacing ABABB
fibz
24th March 2004, 16:15
hi folks,
can someone help me to deinterlace a PAL movie clip with fields interlaced in line pattern: ABABB ABABB ABABB ...
I tried to remove lines 5, 10, 15, 20 ... and then FieldDeInterlace(), but didnt found a command to remove the lines, any suggestions?
Thank you!
a sample: http://mitglied.lycos.de/kaffeestats/deinterlace.gif
Ark
24th March 2004, 17:15
To my eyes this seems to be a bad resized interlaced video.
Can you explain in detail what's exactly the source(resolution, if it's from DVD, DV, captured from TV etc..)?
I can assume that it's some DV footage resized via pointresize/nearest neighbor, to a smaller resolution, totally messing up original fields. If so, well, there's not much you can do, because there's no filter that can eliminate single scanlines of a field.
hanfrunz
24th March 2004, 23:01
You could use something like that to remove a line:
ConvertToYUY2() # if your source is YV12!
lines=height(last)
line_to_erase=5
upperpart=CropBottom(lines-line_to_erase)
lowerpart=Crop( 0, line_to_erase+1, 0, 0)
stackvertical(upperpart,lowerpart)
or put it in one line:
stackvertical(CropBottom(lines-line_to_erase),Crop( 0, line_to_erase+1, 0, 0))
or make a function out of it
function eraseline (clip c, int line) {
return stackvertical(CropBottom(c,Height(c)-line),Crop(c, 0, line+1, 0, 0))
}
hanfrunz
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.