PDA

View Full Version : 30fps interlaced -> 23fps deinterlaced. How'd they do it?!


iisdev
4th April 2008, 08:55
Hi,

I was wondering if someone can help me to determine how the following clip was encoded.

Here is the target clip (~8MB):
avi (http://www.megaupload.com/?d=SIDJOZ44)

Here is the original vob clip for reference (~30MB):
vob (http://www.megaupload.com/?d=X5XZUXY3)

I unfortunately have no idea what settings were used or even what software was used for the AVI. I've been trying my best to encode the vob but I'm constantly getting terrible results with Gordian Knot. I *think* they IVTC'd but to be honest I'm not sure. Deinterlacing (on my end) has had no luck as well although as you can tell in the target clip above they did a really good job. At the beginning is an interlaced frame but the rest is almost perfectly deinterlaced. I have no idea how they did that.

I'm using Gordian Knot to encode. I've had no luck replicating the same quality deinterlacing with any of the default settings and have not been able to successfully IVTC. Maybe another plugin was used?

Are there any experts out there that can take a quick look? Thank you in advance! :)

I'm not sure what other information I have that can help. It's easier to look at the clips and see the difference with your own eyes. I have been unable to obtain this information from the original encoder. :(

manono
4th April 2008, 13:27
Hello and welcome to the forum,

Your VOB is field blended and can't be IVTC'd in any tradional way. It has to be unblended, and the correct framerate for it when unblended and made progressive will be 24.975fps. The AVI (which you'll notice is all screwed up at the very beginning) either came from a different source, or (as I suspect) used the same source as yours, was unblended and then slowed to 23.976fps. In any event, GKnot doesn't have the built-in filters to handle the job. You'll have to edit the .avs it makes to add in what you need. I'd suggest the use of the RePAL filter, together with a bobber. It has a good bobber in the LeakKernelDeint filter, which can easily be made into a bobber.

Also, the next time you upload samples try and find them without any static parts, which are worse than useless to anyone trying to figure out what's going on.

iisdev
5th April 2008, 15:02
Thank you @manono for taking the time to look at it. I really appreciate your help.

I'll try to find the filters you mentioned and see how it goes. :)

manono
5th April 2008, 15:22
Hi-

You'll want to try something like:

LeakKernelBob(Order=1)#if TFF
RePAL()

The RePAL filter can be found here:

http://avisynth.org/warpenterprises/

Find the LeakKernelDeint line in the big GKnot generated .avs and change it to:

LeakKernelBob(Order=1)#if TFF

and add in the RePAL line. You'll have to load the RePAL.dll like the other plugins at the top of the script. The final edited script, with the useless stuff taken out, might read something like:

# Created with Gordian Knot
#
# http://gknot.doom9.org

# PLUGINS
LoadPlugin("C:\Path\To\DGDecode.dll")
LoadPlugin("C:\Path\To\LeakKernelDeint.dll
LoadPlugin("C:\Path\To\RePAL.dll")
MPEG2Source("C:\Path\To\Video.d2v")
# DEINTERLACING (2)
LeakKernelBob(Order=1)#if TFF
RePAL()
# CROPPING
Crop(aa,bb,cc,dd)#replace with the proper crop values
# RESIZING
LanczosResize(xxx,yyy)#replace with proper height and width

If you use other filters, like denoising or subtitles, you'll have to add them as well. Open it in VDubMod, fix any errors it might give you, or post them here if you can't figure out the problem, step through it making sure most, if not all, of the blending is gone and it plays smoothly, and then encode.