PDA

View Full Version : Hybrid, mostly video, advise me!


Blue_MiSfit
9th May 2008, 21:35
Hey folks,

So I've got some hybrid video - several episodes of MadTV.

They're NTSC, fairly high quality, and tough to encode - because they're a mix of 60i and 24p. There are also some music performance scenes with flashing lights / high motion, making deinterlacing problematic.

In fact, TDeint() fails miserably, and its motion mask breaks - leaving nasty sparkle pixels all over the place in these strobing scenes.

Anyway, I'm just brutalizing them for now - unless I can figure out a better way to treat them.

YadifMod + NNEDI seems to be the way to go for the interlaced bits. It handles the strobing portions much better, and of course does a very nice job with diagonals, and curves thanks to NNEDI.

I know the "correct" way to handle hybrid video (if I decide to encode at 29.97) is to use TFM / TDecimate like this:

tfm(mode=1)
TDecimate(mode=0, hybrid=3)


This will blend the FILM sections' dupe frame.

But - how do interlaced sections get handled? Can I add in Yadifmod+nnedi, instead of whatever interpolation is being used?

As a side note - getting close to that 2000 post mark :D

~MiSfit

Blue_MiSfit
9th May 2008, 21:41
Okay - I read the TFM manual a little more closely, and came up with this:

AssumeBFF()

source=last
yadif=source.yadifmod(edeint=source.nnedi)

tfm(mode=1, clip2=yadif, pp=2)
TDecimate(mode=0, hybrid=3)


But I get some residual combing. If I remove tfm/tdecimate, and just deinterlace, this combing isn't present (but obviously the FILM bits aren't handled correctly). Am I doing things right?
My goal:

1) Field match the FILM stuff, and blend the duplicate frame
2) Deinterlace the pure interlaced stuff with yadifmod+nnedi.
3) maintain 29.97fps

Thanks..

~MiSfit

thetoof
12th May 2008, 06:35
Have you tried VFR? and could you post a sample of all the cases you mentioned (24fps, 30fps, flashing and/or high motion scenes)?

edit: oh, and one with a switch from 24 to 30 would be nice

Blue_MiSfit
12th May 2008, 20:09
I can't do VFR due to hardware restrictions...

I also can't upload a source, due to licensing restrictions... :(