Log in

View Full Version : MeGUI-created AVS problem deinterlacing


omf
1st July 2007, 21:33
I'm trying to encode some cartoons off of DVD and noticed that the de-interlacing doesn't seem to be working. After playing with the MeGUI-generated AVS scripts for a bit, I found what was causing the problem.

Here is the original script (I'm only using LeakKernelDeint to simplify the example):

DGDecode_mpeg2source("vid1.d2v",info=3)
ColorMatrix(hints=true)
LeakKernelDeint(order=1)

Here is a single output frame from the script above captured using VirtualDub:

http://www.justified.com/misc/f1.gif

As an experiment, I removed the "info" option from DGDecode_mpeg2source:

DGDecode_mpeg2source("vid1.d2v",info=0)
ColorMatrix(hints=false)
LeakKernelDeint(order=1)

Here is the same frame using the new script:

http://www.justified.com/misc/f2.gif

So, this seems to have fixed it. Great, but can anyone explain why this is happening? (By the way, the same thing happens regardless of which de-interlace filter I use.)

Thanks,
Oscar

foxyshadis
1st July 2007, 22:25
Try the original script, but add interlaced=true to colormatrix. Not sure why that's missing, it must be a scriptcreator bug.

Oh, before I forget, you might want to change the deinterlacer for an IVTC anyway; simpsons shouldn't need anything else unless it's field-blended.

~bT~
1st July 2007, 23:26
^ does MeGUI automatically add interlaced=true? I've never seen it do so.

omf
1st July 2007, 23:45
foxy: Thanks for the IVTC tip. If I use that instead of the deiterlace filter, then it doesn't seem to matter whether or not I use the "interlaced" option on the ColorMatrix filter. How can you tell if something is telecined or interlaced? The "Analyze" button in MeGUI's AVS Creator couldn't determine the source type on this. (It's Futurama, by the way, but close enough...)

bengali: Haven't found any combination of settings that would make MeGUI put it in there itself.

~bT~
1st July 2007, 23:57
^ this is a good read mate: http://www.doom9.org/ivtc-tut.htm

I've been using MeGUI for a long while now and never has it added interlaced=true automatically.

berrinam
2nd July 2007, 00:39
That's a bug in MeGUI. You can expect a fix soon.

omf
2nd July 2007, 01:08
Thanks for the pointer, bengali.

Quick question while I have your attention: how do I get the display aspect ratio in the resulting MP4 file to match that of the original source? (I'm starting with 720x480 MPEG2 and ending up with 720x480 MPEG4, which is fine except that the DAR of the MPEG4 isn't set to 4:3, so it's slightly stretched when viewed with VLC or MPC unless I force the 4:3 aspect ratio in the player.)

I can resize the source to 640x480, of course, but I'd rather not introduce another filter into the mix.

omf
2nd July 2007, 03:29
Partially answering my own question: I found the SAR command line option for x264, but I haven't yet found an equivalent option in MeGUI. Am I just missing it?

mitsubishi
2nd July 2007, 03:47
Partially answering my own question: I found the SAR command line option for x264, but I haven't yet found an equivalent option in MeGUI. Am I just missing it?

If you click the "Zones" tab there is also a "custom commandline options" box, you can add any extra command line switches here.

berrinam
2nd July 2007, 14:22
@omf: look at http://forum.doom9.org/showthread.php?p=1020867#post1020867

omf
2nd July 2007, 14:32
Ah-ha... thanks!