Log in

View Full Version : Deinterlacing Workflow Guides


aegisofrime
30th April 2010, 16:47
Hi, I'm looking for advice on the order in which I should use various filters.

Let's assume my source is good. Not overly noisy or crappy framerate conversions or anything like that.

My current workflow is thus, in plain English:

Load Video using DGDecode
TempGaussMC
Encode with x264 --crf 23 --preset "Slower"

My objective is to backup my DVDs, deinterlacing them with TGMC for smoother viewing while keeping file size low. It's a pain to be swapping discs. I like to keep the rips on an external hard drive for convenience :)

Now, I'm wondering if there's anyway to improve my current workflow. Would adding FFT3DFilter(interlaced=true) before TempGaussMC help compressibility? I know denoising kills details, but I don't want it to kill TOO much detail.

Thanks for your help!

Inspector.Gadget
30th April 2010, 17:00
The problem with asking for general recommendations is that Avisynth filter combinations are generally only suitable for specific cases.

manono
1st May 2010, 02:07
And most DVDs don't need and shouldn't be deinterlaced. If PAL movies, they may need the fields realigned or to be unblended (both pretty rare). If NTSC movies, they may need an IVTC or (rarely) unblending. You'd just be wasting computer cycles and, in some cases, seriously degrading the result. And what's the point of doubling the frame rate?

Mystery Keeper
2nd May 2010, 22:03
And most DVDs don't need and shouldn't be deinterlaced. If PAL movies, they may need the fields realigned or to be unblended (both pretty rare). If NTSC movies, they may need an IVTC or (rarely) unblending. You'd just be wasting computer cycles and, in some cases, seriously degrading the result. And what's the point of doubling the frame rate?

Disagree. It is true that most of frames in NTSC DVDs are progressive after IVTC. But somehow some of them are still interlaced. Often happens on scene changes. Also, Japanese DVDs tend to have sequences with every 4th frame having local interlacing. No matter what causes it, the problem remains. DVDs need to be deinterlaced even after IVTC.

LoRd_MuldeR
2nd May 2010, 23:14
Disagree. It is true that most of frames in NTSC DVDs are progressive after IVTC. But somehow some of them are still interlaced. Often happens on scene changes. Also, Japanese DVDs tend to have sequences with every 4th frame having local interlacing. No matter what causes it, the problem remains. DVDs need to be deinterlaced even after IVTC.

In that case you really should use something that can work as a post-processor for IVTC and only deinterlaces frames that have still have some combing (e.g. TDeint).

Also if you have something that is Telecined and mostly has progressive frames after the IVTC (with only a few combed frames left), I certainly wouldn't bob that to the double framerate.

manono
3rd May 2010, 09:20
DVDs need to be deinterlaced even after IVTC.
There are only a very few cases where you'll need a conditional deinterlacer (TDeint(Full=False), Vinverse) after an IVTC, especially since they already have post-processing built in by default. In more cases like that an IVTC isn't called for in the first place (blended sources). If you have any examples handy, I'm sure we'd be happy to have a look.

Anyway, the OP wasn't talking about using an IVTC at all, but a pure double-rate deinterlacer for all cases. I stand by my statement.

LoRd_MuldeR
3rd May 2010, 12:53
Anyway, the OP wasn't talking about using an IVTC at all, but a pure double-rate deinterlacer for all cases.

So the OP needs to understand that in the real world there isn't "the one" method that works well for everything ;)

As you said already, most DVD's are either progressive or Telecined, so a proper IVTC should be sufficient in most cases. Deinterlacing most likely destroys quality for no benefit.
Bobbing (i.e. doubling the frame-rate) of progressive/Telecined footage is even worse than "same rate" deinterlacing, as it produces lots of redundant data and thus hurts quality even more after compression.
Anyway, blindly IVTC'ing everything isn't a solution either. In the rare case of "true interlaced" footage on DVD (as seen on "concert" discs), a deinterlacer (preferably a good bobber) will be required.

Conclusion: The only thing that can be suggested in general is that one has to analyze the individual disc before deciding the proper way to deal with it...

Would adding FFT3DFilter(interlaced=true) before TempGaussMC help compressibility?

TempGaussMC already removes noise/grain to some degree!

If at all, you could use FFT3DFilter to remove the noise before TempGaussMC and re-add the noise afterwards:
http://forum.doom9.org/showpost.php?p=1324744&postcount=7

Terka
3rd May 2010, 14:51
If at all, you could use FFT3DFilter to remove the noise before TempGaussMC and re-add the noise afterwards:
or use lossless mode.

NerdWithNoLife
5th May 2010, 14:04
Disagree. It is true that most of frames in NTSC DVDs are progressive after IVTC. But somehow some of them are still interlaced. Often happens on scene changes...
Question: is that why DGIndex says 99% film instead of 100%?

Inspector.Gadget
5th May 2010, 14:29
Question: is that why DGIndex says 99% film instead of 100%?

No, that's dictated by pulldown flagging. Quite often in the 99% scenario, the movie itself is all film with pulldown but the credits/intro are flagged as interlaced. Whether they are actually interlaced or not is something you can only find out with your eyes, but since there are so many black frames anyway, often it's difficult to tell (and forcing film often won't create any noticeable problems).