View Full Version : TIVTC Motion Blend
Jeremy Duncan
4th September 2007, 02:57
TFM(order=-1,chroma=false,pp=5,cthresh=-1)
TDecimate(mode=1,hybrid=3,conCycle=1,chroma=false)
Ignore pulldown selected
http://aycu36.webshots.com/image/25395/2003127858657391221_th.jpg (http://allyoucanupload.webshots.com/v/2003127858657391221)
http://aycu38.webshots.com/image/25917/2003457345178565018_th.jpg (http://allyoucanupload.webshots.com/v/2003457345178565018)
On regular standard definition ntsc dvd's there is no motion blur.
On Anime I get this motion blur though.
The frame is from Ghost in the Shell solid state society.
How do I get rid of the motion blend ?
I do not rip my dvd's. I play them from the dvd tray.
It's the ntsc standard definiton Anime.
My LCD Monitor is 60 hetrz.
neuron2
4th September 2007, 03:14
Probably blended fields. Post an unprocessed source sample.
Jeremy Duncan
4th September 2007, 04:10
Link edited again.
I'm not sure if I left it unprocessed, so I'm reuploading a new one.
Jeremy Duncan
4th September 2007, 05:08
Here's another unprocessed clip, from the documentary Over Canada.
The TIVTC script in the first post works with this clip and movie.
Link edited out.
Jeremy Duncan
4th September 2007, 06:58
Ok. I somehow messed up with the previous link of Over Canada.
It wasn't unprocessed.
Here's a unprocessed clip.
Link edited out. I did it wrong and will reupload a new one.
kentaru
4th September 2007, 07:33
You're using blend deinterlacing for post processing, which could be the cause for the blending.
Jeremy Duncan
4th September 2007, 07:44
In dgIndex I'm using "Honor pulldown", but in the dvd there is no pulldown, in realtime using FFDshow.
But I can still select pulldown from the avisynth in FFDshow, so you can treat it like apply pulldown is always selected.
kentaru,
Please suggest a nice setting. I do not know the intricacies of TIVTC.
That's primarily why I'm posting this, for suggestions.
Download the 2 clips I uploaded.
Link edited out. I did it wrong and will reupload a new one.
TheRyuu
4th September 2007, 08:01
In dgIndex I'm using "Honor pulldown", but in the dvd there is no pulldown, in realtime using FFDshow.
But I can still select pulldown from the avisynth in FFDshow, so you can treat it like apply pulldown is always selected.
kentaru,
Please suggest a nice setting. I do not know the intricacies of TIVTC.
That's primarily why I'm posting this, for suggestions.
Download the 2 clips I uploaded.
Link to GitS anime clip (http://rapidshare.com/files/53288856/GitS.zip.html)
It's anime right? Since 99% of American released anime just needs 3:2 pulldown, why not just use tfm+tdecimate, or better yet, if it's soft 3:2 pulldown, "honor pulldown flags" would work.
mpeg2source(movie.d2v)
assumetff() #or bff depending on source
tfm(d2v=movie.d2v).tdecimate()
IIRC, the libmpeg2 with "checked DVD decoding" will do 3:2 pulldown automatically although it's been a while since I used it.
And don't use pp=5, use pp=1 (the default) so it just marks the combed frames.
Jeremy Duncan
4th September 2007, 09:37
It would be best if you downloaded the file and tried your suggestion before telling me.
I'm playing the movie in realtime.
I made the avi because I was asked to provide something he could look at before submitting a suggestion.
I don't normally use avi's or rip my dvd's so I don't use .d2v.
mpeg2source(movie.d2v)
assumetff() #or bff depending on source
tfm(d2v=movie.d2v).tdecimate()
I can't use this if I don't have a .d2v, and I don't have a .d2v since I use realtime not encoding.
Jeremy Duncan
4th September 2007, 09:45
I don't get the motion blend as seen in the first picture if I set PP to 1, but I see combing that looks like pulldown.
Jeremy Duncan
4th September 2007, 10:11
TFM(order=-1,chroma=false,pp=1,cthresh=-1)
TDecimate(mode=1,hybrid=3,conCycle=1,chroma=false)
http://aycu09.webshots.com/image/25528/2005146993368820504_th.jpg (http://allyoucanupload.webshots.com/v/2005146993368820504)
Using this settings in FFDshow with media Player Classic, I don't get that ghost rail effect anymore, but I do get some combing.
It's not in the previous Ghost in the Shell clip I uploaded, it's in the clip I'll include in this post. Same movie.
Link edited out. I did it wrong and will reupload a new one.
Leak
4th September 2007, 12:02
TFM(order=-1,chroma=false,pp=5,cthresh=-1)
TDecimate(mode=1,hybrid=3,conCycle=1,chroma=false)
Ignore pulldown selected
To quote the book of TDecimate:
hybrid -
Controls how or if video sections (30p) should be dealt with. Possible
settings:
0 - no handling
1 - blend decimation of 30p sections into 24p and leave 24p untouched (modes 0 and 1)
2 - vfr via mkv w/ timecodes file output (modes 3 and 5)
3 - blend conversion of 24p sections into 30p and leave 30p untouched (modes 0 and 1)
As you can see, TDecimate's "hybrid=3" will do it's best to blend 24p to 30p and just pass 30p through untouched - and since Solid State Society is 24p like both Stand Alone Complex series, TDecimate will of course blend just about everything.
You probably want "hybrid=1" in conjunction with "Apply pulldown" and a display that's set to ~48 or ~72 Hz - at least that's what I used to watch it last weekend, and it looked nigh perfect... :)
If your display can only do 60Hz, it's probably best to use hybrid=1 and let the renderer decide whether to display each frame 2 or 3 times in a row, or use SelectEvery or ChangeFPS to turn 24p into 60p without blending.
Jeremy Duncan
4th September 2007, 18:34
To quote the book of TDecimate:
hybrid -
Controls how or if video sections (30p) should be dealt with. Possible
settings:
0 - no handling
1 - blend decimation of 30p sections into 24p and leave 24p untouched (modes 0 and 1)
2 - vfr via mkv w/ timecodes file output (modes 3 and 5)
3 - blend conversion of 24p sections into 30p and leave 30p untouched (modes 0 and 1)
As you can see, TDecimate's "hybrid=3" will do it's best to blend 24p to 30p and just pass 30p through untouched - and since Solid State Society is 24p like both Stand Alone Complex series, TDecimate will of course blend just about everything.
You probably want "hybrid=1" in conjunction with "Apply pulldown" and a display that's set to ~48 or ~72 Hz - at least that's what I used to watch it last weekend, and it looked nigh perfect... :)
If your display can only do 60Hz, it's probably best to use hybrid=1 and let the renderer decide whether to display each frame 2 or 3 times in a row, or use SelectEvery or ChangeFPS to turn 24p into 60p without blending.
Can you post the script for how to use changefps to change 24fps to 30 fps ?
And is that tfm fine using a pp of 5 ?
Jeremy Duncan
4th September 2007, 18:52
TFM(order=-1,chroma=false,pp=1,cthresh=-1)
TDecimate(mode=1,hybrid=1,conCycle=1,chroma=false)
This shows strong motion blur.
DigitalDeviant
4th September 2007, 19:02
If this is the R1 DVD then I don't think there is any 30fps material at all so there is no reason to do any hybrid blending. Use hybrid=0, which is the default so you could just the parameter completely.
Jeremy Duncan
4th September 2007, 19:18
If this is the R1 DVD then I don't think there is any 30fps material at all so there is no reason to do any hybrid blending. Use hybrid=0, which is the default so you could just the parameter completely.
This shows no motion blur, but it's choppy and I need to change the fps to 30.
TFM(order=-1,chroma=false,pp=5,cthresh=-1)
TDecimate(mode=1,conCycle=1,chroma=false)
"how to use changefps to change 24fps to 30 fps ?"
Thanks for the tip to change it to zero/default.
Leak
4th September 2007, 20:24
This shows no motion blur, but it's choppy and I need to change the fps to 30.
No, it's choppy because your refresh rate isn't a multiple of your frame rate, so each frame will get displayed either 2 or 3 times in a row by the renderer. That's called 3:2 pulldown, but in the renderer case I'm not so sure it's applied evenly, as a stand-alone DVD player would do when it produces video for a TV connected to it.
Doesn't your screen allow you to set the refresh rate to anything but 60Hz? What's your screen, anyway?
Jeremy Duncan
4th September 2007, 20:36
It's a dell 2007wfp
http://aycu20.webshots.com/image/25939/2001414604213760356_th.jpg (http://allyoucanupload.webshots.com/v/2001414604213760356)
Jeremy Duncan
4th September 2007, 20:39
"how to use changefps to change 24fps to 30 fps ?"
Would be nice. :)
TheRyuu
4th September 2007, 20:58
Would be nice. :)
convertfps(30)
But I don't know why you would want to do that.
23.97fps material plays fine on my monitor, I don't see the big deal about it...
Dark Shikari
4th September 2007, 20:58
Would be nice. :)
Well if you really want to change FPS well, try MVFlowFPS2 using MVTools :p
Jeremy Duncan
4th September 2007, 21:21
convertfps(30)
But I don't know why you would want to do that.
23.97fps material plays fine on my monitor, I don't see the big deal about it...
If I use this it jutters pretty bad.
TFM(order=-1,chroma=false,pp=5,cthresh=-1)
TDecimate(mode=1,conCycle=1,chroma=false)
convertfps(30)
If I use this the pictures blurry.
TFM(order=-1,chroma=false,pp=5,cthresh=-1)
convertfps(30)
The jutter in this code is very visible. So I need to change the fps to 30 and get the crisp deinterlaced picture.
TFM(order=-1,chroma=false,pp=5,cthresh=-1)
TDecimate(mode=1,conCycle=1,chroma=false)
Jeremy Duncan
4th September 2007, 21:22
Well if you really want to change FPS well, try MVFlowFPS2 using MVTools :p
A script/code for how to do it would be nice.
Dark Shikari
4th September 2007, 21:35
A script/code for how to do it would be nice.
Here's a (very) slow script.
backward_vec = source.MVAnalyse(isb = true, truemotion=true, pel=4, idx=1, search=3,overlap=4,divide=2)
forward_vec = source.MVAnalyse(isb = false, truemotion=true, pel=4, idx=1, search=3,overlap=4,divide=2)
cropped = source.crop(4,4,-4,-4) # by half of block size 8
backward_vec2 = cropped.MVAnalyse(isb = true, truemotion=true, pel=4, idx=2, search=3,overlap=4,divide=2)
forward_vec2 = cropped.MVAnalyse(isb = false, truemotion=true, pel=4, idx=2, search=3,overlap=4,divide=2)
source.MVFlowFps2(backward_vec,forward_vec,backward_vec2,forward_vec2,num=30,idx=1,idx2=2)
If this is too slow for your tastes, use one of the following (they get progressively faster):
backward_vec = source.MVAnalyse(isb = true, truemotion=true, pel=4, idx=1, search=2,overlap=4,divide=2)
forward_vec = source.MVAnalyse(isb = false, truemotion=true, pel=4, idx=1, search=2,overlap=4,divide=2)
cropped = source.crop(4,4,-4,-4) # by half of block size 8
backward_vec2 = cropped.MVAnalyse(isb = true, truemotion=true, pel=4, idx=2, search=2,overlap=4,divide=2)
forward_vec2 = cropped.MVAnalyse(isb = false, truemotion=true, pel=4, idx=2, search=2,overlap=4,divide=2)
source.MVFlowFps2(backward_vec,forward_vec,backward_vec2,forward_vec2,num=30,idx=1,idx2=2)
backward_vec = source.MVAnalyse(isb = true, truemotion=true, pel=4, idx=1, search=2,divide=2)
forward_vec = source.MVAnalyse(isb = false, truemotion=true, pel=4, idx=1, search=2,divide=2)
cropped = source.crop(4,4,-4,-4) # by half of block size 8
backward_vec2 = cropped.MVAnalyse(isb = true, truemotion=true, pel=4, idx=2, search=2,divide=2)
forward_vec2 = cropped.MVAnalyse(isb = false, truemotion=true, pel=4, idx=2, search=2,divide=2)
source.MVFlowFps2(backward_vec,forward_vec,backward_vec2,forward_vec2,num=30,idx=1,idx2=2)
backward_vec = source.MVAnalyse(isb = true, truemotion=true, pel=2, idx=1, search=2,divide=2)
forward_vec = source.MVAnalyse(isb = false, truemotion=true, pel=2, idx=1, search=2,divide=2)
cropped = source.crop(4,4,-4,-4) # by half of block size 8
backward_vec2 = cropped.MVAnalyse(isb = true, truemotion=true, pel=2, idx=2, search=2,divide=2)
forward_vec2 = cropped.MVAnalyse(isb = false, truemotion=true, pel=2, idx=2, search=2,divide=2)
source.MVFlowFps2(backward_vec,forward_vec,backward_vec2,forward_vec2,num=30,idx=1,idx2=2)
backward_vec = source.MVAnalyse(isb = true, truemotion=true, pel=2, idx=1, search=2,divide=2)
forward_vec = source.MVAnalyse(isb = false, truemotion=true, pel=2, idx=1, search=2,divide=2)
source.MVFlowFps(backward_vec,forward_vec,num=30,idx=1)
Note "num=30" is the output FPS.
Jeremy Duncan
4th September 2007, 22:22
Just removing the tdecimate part works too.
Leak
4th September 2007, 22:26
It's a dell 2007wfp
Have you tried installing a driver for that monitor lately (so it says something else than "Plug & Play Monitor"? Or PowerStrip (http://www.entechtaiwan.com/util/ps.shtm), for that matter? This review (http://www.prad.de/new/monitore/test-dell-2007wfp.html), even though it's in German, lists it's supported refresh rates as 56-76Hz...
If you have an nVidia graphics card I'm positive (http://www.nvidia.com/object/custom_resolutions.html) you can even make up your own video modes by editing the driver's INF files if I remember correctly.
Don't trust Windows, just feed your monitor with a 72Hz signal and see what it does - the worst it can do is show no image...
np: Markus Guentner - Track 2 (In Moll)
Leak
4th September 2007, 22:30
Just removing the tdecimate part works too.
Errr... if the DVD is flagged correctly, it should play as 24p with just about any decoder without doing anything - like just about any Hollywood movie...
If it's badly flagged, you need TFM/TDecimate *plus* you have to set "Apply pulldown" so TFM/TDecimate have 30FPS material to work from. If you just select "Smooth timestamps" or "Ignore flags" you'll get some weird 24/30FPS mix that will of course look weird.
Trust me, you don't want to watch the first US DVD of the first GITS: SAC season without correcting the flags like I said above... :(
np: David Sylvian - Cover Me With Flowers (Everything And Nothing (Disc 2))
Jeremy Duncan
4th September 2007, 23:06
I install the 2007wfp driver, and powerstrip.
Using powerstrip I set the refresh rate to 72 hertz.
TFM(order=-1,chroma=false,pp=5,cthresh=-1)
TDecimate(mode=1,conCycle=1,chroma=false)
http://aycu02.webshots.com/image/25361/2002200932395870464_th.jpg (http://allyoucanupload.webshots.com/v/2002200932395870464)
The picture was very choppy.
I set reclock to 24 fps.
The picture was pretty bad.
http://www.imagehosting.com/out.php/t1102283_GitS.jpg (http://www.imagehosting.com/out.php/i1102283_GitS.jpg)
foxyshadis
4th September 2007, 23:39
What if you specify the field order?
Jeremy Duncan
4th September 2007, 23:45
What if you specify the field order?
I don't know how.
Leak
4th September 2007, 23:49
I install the 2007wfp driver, and powerstrip.
Using powerstrip I set the refresh rate to 72 hertz.
TFM(order=-1,chroma=false,pp=5,cthresh=-1)
TDecimate(mode=1,conCycle=1,chroma=false)
The picture was very choppy.
I set reclock to 24 fps.
The picture was pretty bad.
First of all - why are you using "pp=5" up there? That's blend deinterlacing, so if TFM thinks a field is combed you will again get blends.
And, to quote from the book of TFM:
cthresh -
This is the area combing threshold used for combed frame detection. It is like
dthresh or dthreshold in telecide() and fielddeinterlace(). This essentially
controls how "strong" or "visible" combing must be to be detected. Larger values
mean combing must be more visible and smaller values mean combing can be less
visible or strong and still be detected. Valid settings are from -1 (every pixel
will be detected as combed) to 255 (no pixel will be detected as combed). This
is bascially a pixel difference value. A good range is between 8 to 12.
Notice something? Your "cthresh=-1" forces TFM to detect every frame as combed and into blend-deinterlacing it. Where did you ever get that idea, if I may ask? :confused:
(Hint: the "display=true" options in TIVTC's functions are there for a reason - use them in cases like these, it would make it obvious that every frame gets treated as combed...)
np: Markus Guentner - Regensburg 3 (Regensburg)
Jeremy Duncan
5th September 2007, 00:42
What do you suggest I se instead of pp=5 and cthreash=-1 ?
Will your suggestion work with the Over Canada clip I uploaded ?
TheRyuu
5th September 2007, 00:53
What do you suggest I se instead of pp=5 and cthreash=-1 ?
Will your suggestion work with the Over Canada clip I uploaded ?
Just don't specify them I think.
The defaults should work just fine IIRC. Don't take my word on it though.
You shouldn't need any of this if it's just soft 3:2 pulldown. The decoder will do that for you and give you the original 23.97fps film like you should get.
It should in now way be 30fps (or 29.97fps) if all it needs is IVTC.
Leak
5th September 2007, 00:53
What do you suggest I se instead of pp=5 and cthreash=-1 ?
Leaving them at their defaults?
Will your suggestion work with the Over Canada clip I uploaded ?
*looks at said clip*
Looks very much like it's purely interlaced, so any normal deinterlacer or bobber should do the job. Since your settings for TFM made it act pretty much like an always-on deinterlacer it of course worked on that clip... but that's really a job for a "real" deinterlacer...
np: Burnt Friedman & Jaki Liebezeit - Niedrige Decken (Secret Rhythms 2)
Jeremy Duncan
5th September 2007, 01:25
I set pp=5 Aand cthresh=-1 because it deinterlaces the fins in this clip: Link edited out. I did it wrong and will reupload a new one.
Using 72 hertz, reclock set to 24fps, and using the ffdshow libmpeg2 video codec. I set the avisynth to apply pulldown and am using this code:
TFM(order=-1,chroma=false)
TDecimate(mode=1,conCycle=1,chroma=false)
Buffer back/ahead 1, 12
See the combing that pops up every now and then:
http://www.imagehosting.com/out.php/t1102599_GitS.jpg (http://www.imagehosting.com/out.php/i1102599_GitS.jpg)
I'm hoping somebody can suggest a deinterlacer and code that uses it that I canuse in realtime to deinterlace the fins in the clip I just uploaded.
DigitalDeviant
5th September 2007, 02:32
Can you post an original source not on rapidshare. I downloaded the GitS sample you uploaded and it's an avi that doesn't even open in vdub for me and now rapidshare is telling me it's over my limit to download more.
Jeremy Duncan
5th September 2007, 03:01
Once I get the clip I want using dgIndex, how do I get a unprocessed sample that's not a avi ?
I use virtualdub to process the .d2v and it makes a avi.
Is there another way to use the .d2v that doesn't make a avi ?
DigitalDeviant
5th September 2007, 04:49
In DGIndex you can select the portion you want and use the "Save Project and Demux Video" option to demux a small video sample.
Jeremy Duncan
5th September 2007, 05:19
In DGIndex you can select the portion you want and use the "Save Project and Demux Video" option to demux a small video sample.
Here you go.
GitS d2v (http://www.megaupload.com/?d=M5UHJ5O5)
Jeremy Duncan
5th September 2007, 05:31
Here's the Over canada clip that shows the fins.
I want to deinterlace this in realtime using FFDshow.
Link to Over Canada d2v (http://www.megaupload.com/?d=MVUIW7OZ)
Leak
5th September 2007, 12:42
I'm hoping somebody can suggest a deinterlacer and code that uses it that I canuse in realtime to deinterlace the fins in the clip I just uploaded.
Those "fins" are simply produced by TFM matching the wrong fields - that still doesn't make the material any more interlaced than phase shifting all fields does.
Use "MI=40" to get rid of the more obvious combs, and if that still isn't enough (do you even notice the remaining miniscule combs at all if you, say, watch the movie instead of frame-stepping through it?) throw in a "cthresh=6" for bad measure.
Of course, you could replace TFM with a combination of LeakKernelBob with a threshold of 0 and BlendBob, but that's only gonna use a lot more CPU for hardly any better returns...
Jeremy Duncan
5th September 2007, 16:47
http://aycu33.webshots.com/image/28472/2004793990401122034_th.jpg (http://allyoucanupload.webshots.com/v/2004793990401122034)
SetMemoryMax(1024)
TFM(order=-1,chroma=false,cthresh=6,mi=40)
TDecimate(mode=1,conCycle=1,chroma=false)
FluxSmoothT(3)
ColorMatrix(Mode="Rec.601->Rec.709",clamp=false,threads=2)
MT("SeeSaw(NRlimit=0, NRlimit2=5, Sstr=2.22, Szp=1, Slimit=9, Sdamplo=16, Spower=1, sootheT=95, SdampHi=39)",3)
Buffer Back/Ahead: 1, 15
Apply Pulldown selected
It's not choppy, and I don't see the combing.
But because I use TDecimate and Apply Pull down I see horizontal lines every now and then.
They go away if I select "Ignore Pull down", but then the film gets choppy.
So to get rid of the lines, I need to select "Ignore Pull down", and delete the TDecimate part.
Any suggestions so I can keep the "Apply Pull down", and TDecimate without the horizontal lines ?
By setting the MI=40, Cthresh=6, and using now other code but TFM, the fins showed no combing, and GitS SSS showed no combing either.
Jeremy Duncan
5th September 2007, 17:23
http://www.imagehosting.com/out.php/t1104893_Ultraviolet.jpg (http://www.imagehosting.com/out.php/i1104893_Ultraviolet.jpg)
SetMemoryMax(1024)
TFM(order=-1,chroma=false,cthresh=6,mi=40)
TDecimate(mode=1,conCycle=1,chroma=false)
YV12
Buffer Back/Ahead: 1, 15
Apply Pulldown selected
The horizontal lines you see in the picture only show up every now and then, but I'm hoping somebody knows how to get rid of them all together.
The Fins though are comb free.
Demi9OD
5th September 2007, 18:12
Isn't that the very definition of combing?
Jeremy Duncan
5th September 2007, 19:37
Ok. I got it all sorted out.
Using this code there is no combing or horizontal lines in the Ultraviolet movie or the Over Canada Movie.
SetMemoryMax(1024)
TFM(order=-1,chroma=false,cthresh=6,mi=8)
TDecimate(mode=1,conCycle=1,chroma=false)
YV12
Buffer Back/Ahead: 1, 15
Apply Pulldown selected
The Over Canada movie is choppy in realtime using FFDshow though.
I was wondering if maybe somebody could look at the Over Canada d2v I uploaded in post # 40 and see if they can find a fix for the choppy video I see.
This and the other movie, "Over Beautiful british Columbia", are the only dvd's that are choppy.
Last I checked it was a bff dvd, I tried setting tfm to bff but that didn't fix it.
Leak
5th September 2007, 19:44
The Over Canada movie is choppy in realtime using FFDshow though.
I was wondering if maybe somebody could look at the Over Canada d2v I uploaded in post # 40 and see if they can find a fix for the choppy video I see.
Sure.
Drop TFM/TDecimate, replace it with your bobber of choice (or use the KernelBob built into ffdshow) - that clip is purely interlaced, no amount of IVTC is going to make it look okay...
np: Tocotronic - Tag Der Toten (Pure Vernunft Darf Niemals Siegen)
Jeremy Duncan
5th September 2007, 19:49
For Over Canada to get a smooth fin I need to use tfm, but if I drop tdecimate and ignore pulldown the video is smooth, the fin is smooth and the video looks nice.
I guess this thread has finished it's purpose.
Thank you everyone who helped.
Leak
5th September 2007, 20:54
For Over Canada to get a smooth fin I need to use tfm,
No, you don't. Just set your refresh rate to 60Hz, turn off the AviSynth filter and activate ffdshow's deinterlacing set to "KernelBob" and a threshold of 0.
That way, it looks much smoother at 60 frames per second than using TFM or a Deinterlacer (again mis-used as a simple deinterlacer, since that clip has as I repeatedly stated 60 distince *FIELDS* per second aka interlaced NTSC video material) which brings it down to 30 frames per second... :rolleyes:
Also, what the heck does "fin" mean? I always thought fins were the pointy ends on fishes...
np: 13 & God - Into The Trees (Collected Remixes)
Jeremy Duncan
5th September 2007, 21:30
turn off the AviSynth filter and activate ffdshow's deinterlacing set to "KernelBob" and a threshold of 0.
Ok, good stuff. The fins look nice.
When I type "Fin", I mean the Fish's Fins.
Jeremy Duncan
6th September 2007, 10:45
TFM(order=-1,chroma=false,mi=5)
TDecimate(mode=1,conCycle=1,chroma=false)
This is the final product.
Demi9OD
9th September 2007, 20:02
I think I figured out the best way to deal with my telecined ntsc dvds with shitty cuts/fades/edits. This is not for anime or fully interlaced stuff. TFM would always leave me with choppy scenes where it was matching or decimating the wrong frames, and seemed to give bit of a shimmering edge to slowly moving objects. Just through trial and error with lots of different plugins I stumbled on these variables that have lasted me through 6 episodes with 0 mistakes.
CPU goes way up during fades that I know are half/half progressive/interlaced edited together as the deinterlacer kicks into full time gear, and I would definitely not recommend running it in conjunction with seesaw on anything lower than a C2D 2.8ghz.
You will lose audio synch and drop frames on a very long string of interlaced/edited frames if you don't leave enough of a buffer on your overall cpu (50-60%), so drop seesaw if you can't maintain that and turn up the luma sharpening on resize a bit to compensate. The collage pic shows how it spikes on those scenes. I was at ~35% on clean material seconds before.
I cannot work good NR into this script, everything I try screws with avisynth decimating incorrect frames, or has to be done after resize in ffdshow and tears out a good chunk of that 50% buffer I needed to maintain stable during difficult scenes. This could be solved with another 300-400mhz and ffdshow HQDN3D post resize. Any better solutions are welcome.
I think this can work for progressive as well. But for now I'm just decoding in nvidia pv mpeg2 decoder and letting ffdshow handle raw frames for progressive. I don't run any tdeint/tfm for progressive. With nvidia pv set to auto/smart it will just blend the 1% of frames in film that are interlaced, and thats good enough for me so I can use fft3dgpu on film sources.
Feel free to poke holes in this because :stupid: and obviously don't know the real guts behind these plugins. Here is a short clip (http://rapidshare.com/files/54506768/bad_fades.demuxed.rar.html) exemplifying the issues I was trying to fix.
SetMemoryMax(1024)
tdeint(mode=2,order=1,tryWeave=true)
TDecimate(mode=1,hybrid=1,conCycle=1,chroma=false)
#FFT3DGPU(sigma=1.2, precision=0, mode=2) ###?GPU Cannot Keep up with extra frames?
#MT("FluxSmoothT(3)",3) ###Creates incorrect Decimates
MT("SeeSaw(NRlimit=0, NRlimit2=5, Sstr=2.22, Szp=1, Slimit=9, Sdamplo=16, Spower=1, sootheT=95, SdampHi=39)",3)
http://i5.photobucket.com/albums/y167/Demi9OD/IVTC/th_collage.png (http://i5.photobucket.com/albums/y167/Demi9OD/IVTC/collage.png) http://i5.photobucket.com/albums/y167/Demi9OD/IVTC/th_strip.png (http://i5.photobucket.com/albums/y167/Demi9OD/IVTC/strip.png)
Jeremy Duncan
9th September 2007, 21:03
Demi9OD,
SetMemoryMax(1024)
tfm(order=1,chroma=false)
tdecimate(chroma=false)
FluxSmoothT(3)
ColorMatrix(Mode="Rec.601->Rec.709",clamp=false,threads=2)
MT("SeeSaw(NRlimit=0, NRlimit2=5, Sstr=2.22, Szp=1, Slimit=9, Sdamplo=16, Spower=1, sootheT=95, SdampHi=39)",3)
WarpSharp(depth=20, threshold=20)
Using Sh0dan's Warpsharp.
Looked fine to me, using your sample.
I'll try out your script now.
Jeremy Duncan
9th September 2007, 22:12
Here is a short clip (http://rapidshare.com/files/54506768/bad_fades.demuxed.rar.html) exemplifying the issues I was trying to fix.
Well, I fiddled with a bunch of different settings.
I haven't had much success using FFT3DGPU.
But to play your clip this code works fine.
SetMemoryMax(1024)
tfm(order=1,chroma=false)
tdecimate(chroma=false)
Demi9OD
10th September 2007, 16:30
It doesn't do nearly as high quality a deinterlace but it works.
FFT3DGPU seems to puke on my ATI whenever I load any avisynth plugins that do forward/back seeking, so any tdeint, tfm, tdecimate. The regular CPU version works and I am trying to figure out how to get enough power to run it realtime.
edit: Looks like I'm putting a quadcore in my HTPC :P
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.