New plugin for dealing with Interlace problems

Dawdle wrote on 8/30/2009, 11:07 AM
I've written a plugin to help deal with interlace problems. I'm making it freely available.

It allows the fields to be treated separately. Fields can be blanked, copied to the other field, interpolated into the other field, and swapped.

The fields can also be separated into upper and lower halves of the frame to allow for individual processing and the halves can then be recombined back into the interlaced frame.

There is also a 'blend' slider to set the amount that the effect is applied.

Disclaimer: Use at your own risk and on the understanding that you take full responsibility for your use of this software.

Download here:
Interlace Control 1.03


Dawdle


Edit: Updated url for new download version.

Comments

DJPadre wrote on 8/30/2009, 11:46 AM
sounds like a good idea.. im curious how it works with HDV interpolated from 1080i to 1080p

"interpolated into the other field"

You say it can interpolate (lets use upper field as an example) a field into the other (lower) field. Can we assume its creating an entire frame FROM that field? Much like Vegas does now with interpolate fields (not blend found within project properties) ??

If so, what frame rate would this work in to retain image sharpness? 25p or 50p considering the field is now one frame... ??

is this interpolation referencing the lower field or is it redrawing the entire lost field??
I have no idea how this works, but I DO know the Vegas inerpolation engine for 1080i to 1080p is VERY "blah" and virtually unusable
Dawdle wrote on 8/30/2009, 12:33 PM
DJPadre, the plugin doesn't create any new frames. Its intended use is for working with problem fields within a frame. It could also be considered a useful tool to help with diagnosing field related problems.
farss wrote on 8/30/2009, 1:58 PM
Vegas can be used to diagnose field order problems and already does interpolate fields. What would be handy is a plugin that changes field order by shifting the lines up or down one line hence avoiding interpolation and softening / artifacts.

Bob.
Laurence wrote on 8/30/2009, 3:29 PM
Really cool plugin. What kind of algorithm did you use for interpolation?

Edit:

Oh my, this is going to be one of my favorites. What I like about this is that I can do a progressive project with the properties set to progressive, then when I add in the occasional interlaced shot, I can deinterlace with whatever is best for that shot: interpolate for sharpness or blend fields for shots with motion. This is a GREAT plugin! Thanks!
Dawdle wrote on 8/31/2009, 2:32 AM
farss, the plugin does allow you to swap field order.

Laurence, the interpolation is only plain simple linear interpolation at present. I have been considering implementing other kinds and this may go into a future release. I also hope to add a more intelligent deinterlacer.
Grazie wrote on 8/31/2009, 3:12 AM
Dawdle, I see there is a register.bat file, does this mean I need to register ONLINE? Or is this file for something other than that?

Grazie
Dawdle wrote on 8/31/2009, 3:20 AM
There's no online registration. Register.bat is just for registering the plugin so that Vegas knows about it.
GS1966 wrote on 8/31/2009, 3:43 AM
Dawdle, You can make the plugin shifting chosen events the up or down one line?
You plugin in modes Copy upper to lower and Copy lower to upper does something very similar, but not that.
I can send you in PM some frames of video - you will understand, that is necessary as a result

Thank You
Dawdle wrote on 8/31/2009, 4:27 AM
GS1966, I'm not entirely sure what you mean so can you send me your example video frames. Thanks.
Grazie wrote on 8/31/2009, 4:40 AM
Dawdle, thanks for the clarification. Much appreciated. - g
farss wrote on 8/31/2009, 7:37 AM
I guess I should install this plug and try it before I say too much :)

I believe what GS1966 is asking for is the same as what I asked for.

There's three ways to reverse spatial field order.

1) Interpolate each field into a frame and re-interlace. This is the way Vegas does it and quality suffers even with it's bicubic resampling.

2) Shift the lines up or down one line. You can do this manually with Vegas but it's a pain. In this method lines number 1,3,5 etc are shifted to the correct positions of 2,4,6. One line is lost though.

3) Cut off the first and last field. This is a good method I think but there's attendant issue with audio.

What we're after is the method described in 2).

I'm somewhat confused by your previous reply, you said there's an option to swap field order. By that I assumed you meant reverse the temporal order of the fields i.e. make 1,2,3,4 into 2,1,4,3. This is a fix for a quite rare problem by my understanding. I've yet to find the need to do this.

Bob.
Laurence wrote on 8/31/2009, 12:44 PM
It seems to me that since pretty much all interlaced cameras average the even and odd fields when they capture, that these lines would be the same and it wouldn't matter if you dropped swapped fields or moved everything up a line.

Edit to clear up meaning
Udi wrote on 9/1/2009, 3:54 AM
Bob

Can you try this plugin
http://www.ariela.kislev.name/files/shiftup.dll

Just drag it to Vegas.

It should add a ShiftUP FX that just shift all 1 line up and duplicate the last line.

Is this what you need?

Udi
GS1966 wrote on 9/1/2009, 4:23 AM
Udi, At first sight similar, it that is necessary




Thanks
farss wrote on 9/1/2009, 4:53 AM
Yippeee.
Once I worked out that I had to register the .dll....
Now in seventh heaven.

Just one word of caution. This plug duplicates the last line. I think that's not generally not a problem as the first and last lines are typically not visible or not overly visible. An issue could arise though with 16:9 content viewed on a 4:3 monitor / TV. Then the first and last line can be visible and oddities like duplicated lines or lines missing can be visible and distracting.

Bob.
Dawdle wrote on 9/1/2009, 6:39 AM
On the suggestions of GS1966 and farss I've updated the plugin to version 1.02 to include the ability to shift the frame up or down a line. This plugin differs from the one offered by Udi in that it blanks the new line.

Download from:
http://www.fishtank.demon.co.uk/VegasPro/InterlaceControl_1.02.zip

Dawdle
farss wrote on 9/1/2009, 8:03 AM
Thanks. Downloaded and I'll try it tomorrow.

Bob.
Laurence wrote on 9/1/2009, 9:17 AM
Now if you really want to get fancy, add a high end interpolation feature, smart deinterlacing where only the movement parts are deinterlaced, and the ability to separate fields, high quality resize, and refold the fields back together. Am I asking to much for a free plugin? Yeah, but you're so close already. :-)
Dawdle wrote on 9/1/2009, 10:06 AM
Laurence, a better interpolation method is the next addition for the plugin.

I spent some time on a smart deinterlacer a while ago but I got poor results. At some point I want to get back on it and if I can get something that works well then I'll add it to the plugin.

In what way do you want to seperate the fields? I've already implemented the ability to separate the fields into upper and lower halves of the frame and also to recombine the halves back into an interlaced frame. If you want to separate the fields onto different tracks and then recombine them this can also be done using a combination the present options.
Laurence wrote on 9/1/2009, 10:23 AM
The current separation and recombination of the fields is perfect. What I still need is to be able to do a resize in between. In other words, separate the fields, high quality resize, then refold the fields into a new interlaced image.
Former user wrote on 9/1/2009, 10:53 AM
Lawrence,

Virtualdub has that type of plugin called for smart interlacing.

Dave T2
Laurence wrote on 9/1/2009, 11:04 AM
Yeah you can do what I described in VirtualDub, but then you have to use a common codec like Cineform Neo Scene and go outside of the Vegas environment. Boy would I like to be able to do this with HDV format video directly on the Vegas timeline.

You can also do this in Vegas by selecting a deinterlace method (which makes Vegas treat all the footage like even odd field footage when it resizes). Doing it with a plugin would let me select no deinterlace method on a project that is primarily progressive scan, run this plugin on the interlaced shots, and still have the highest quality final progressive render.

There is also a Mike Crash smart deinterlace program, but I have never had good results with this. It also doesn't work if you are doing any sort of resize with interlaced footage.
Laurence wrote on 9/1/2009, 1:15 PM
I'm just rerendering an old project that has a couple of interlaced shots mixed into a primarily progressive scan project. What a difference this plugin makes! I set no deinterlace method so the resize from 1440x180x30p to 1280x720x30p is nice and crisp and yet the 60i material looks great as well at 30p (with none of the resized interlace comb artifacts I would normally get if I didn't select a deinterlace method). In this particular project there are about six interlaced source clips, the rest are 30 fps progressive. I didn't have to do the regular thing of selecting a deinterlace method and sacrificing the pristine quality of progressive clips just to avoid artifacts with the interlaced shots. The overall difference in quality is quite striking. This is going to be one of my most used plugins. Thank you so much!
Laurence wrote on 9/1/2009, 1:59 PM
Any chance of making this plugin 64 bit compatible?