View Full Version : Way to reduce "combing" during fading scene changes?
mahsah
28th December 2007, 05:02
When backing up this anime disc, I noticed that on scene changes, especially ones that fade, there was a very ugly combing effect, I assume from my IVTCing. Here is a screenshot of the problem:
http://img205.imageshack.us/img205/3291/combingzm8.png
and here is my script:
DGDecode_mpeg2source("VTS_01_1.d2v", cpu=0,info=3)
TFM(d2v="VTS_01_1.d2v",mode=1,input="tfm.txt")
TDecimate(mode=5, hybrid=2, dupthresh=1.0, input="stats.txt", tfmin="tfm.txt", mkvout="timecodes.txt",chroma=true) # 2nd pass for VFR
crop( 4, 0, -4, 0)
spline36resize(720,480)
Are there any TFM settings that could reduce this effect? Or any other filter to reduce it?
Thanks.
mahsah
29th December 2007, 04:49
OK, after poking around for a while, I found that doing this kinda works:
conditionalfilter(last,tdeint(),last,"IsCombedTIVTC(cthresh=3)","=","true")
but I get these "broken lines" from the deinterlacing. (cthresh is the highest it can go to detect the combs). Also I don't really want to encode with this as I am sure that the deinterlacing has messed up video somewhere else in the clip.
Screenshot:
http://img297.imageshack.us/img297/5313/brokenlinesow9.png
I'm sure there is a better way to do this, but I'm not sure how.
EDIT: Using yadif() instead of tdeint() yields much fewer of the "broken lines" in the image, but I'm still sure there has to be a better way to do this...
foxyshadis
29th December 2007, 11:10
Vinverse seems to fix it pretty well, and has a very negligible effect on uncombed video.
TDeint(full=false,cthresh=3) is actually a better way of doing what you wrote. You could also try tfm(...,edeint=tdeint(),...) or nnedi() instead of tdeint.
mahsah
29th December 2007, 20:54
Where would I put those in my script?
foxyshadis
29th December 2007, 21:10
Vinverse or TDeint would probably go after TFM, so that TDec picks up the right match, but I'm not sure.
mahsah
29th December 2007, 23:27
Thanks, Vinverse after TFM works great.
Another problem, unrelated I think, but I don't really want to make a new thread over it.
Any idea how to clear up these jaggy lines? They are really only visable around red areas, but are very distinct. Tisophote() does not help much.
pic:
http://img177.imageshack.us/img177/7346/jaggiesja8.png
kumi
29th December 2007, 23:46
I'm no expert, but I'm pretty sure that's unavoidable:
http://en.wikipedia.org/wiki/Chroma_subsampling#4:2:0
It's most noticeable with red, and to a lesser extent, blue.
mahsah
30th December 2007, 00:14
Oh. That stinks.
Darn studios. I hate interlacing seems to ruin everything :(
foxyshadis
30th December 2007, 02:19
Use a better rgb conversion, basically. If you use ffdshow (w/ high quality rgb) or coreavc to convert to rgb during playback, it'll look fine. Some graphics drivers also upsample with good quality if you feed them YV12, but on most cards have actually degraded over the years. It's weird.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.