AVS › AVS Forum › Video Components › Home Theater Computers › the PERFECT 3/2,2/2 24/30fps deinterlacer using Avisynth filters
New Posts  All Forums:Forum Nav:

the PERFECT 3/2,2/2 24/30fps deinterlacer using Avisynth filters  

post #1 of 27
Thread Starter 
I just found the PERFECT 3/2,2/2 24/30fps pulldown deinterlacer from a old thread on Doom9 forum.

Get the LeakKernelBob filter here.

Get the BlendBob filter here.

Put the 2 .DLLs under your Avisynth plugins folder.

Call the Avisynth fuction in FFDShow->Avisynth as the following 2 lines:

Code:
LeakKernelBob(1,8,false)
BlendBob()
Make sure your DVD decoder outputs in YV12 format and make sure the Avisynth function be the FIRST called filter on the FFDShow filter list priority.

This pulldown deinterlace filter works on real 24/30fps source only. The author said it should not be used on real 60i video content.

The filter gives THE BEST deinterlace quality (compare to ALL other software/hardware pulldown deinterlacers I saw) on my problem clips. Now I need to rewatch all my shot on 24/30fps film MTV DVDs which have tons of bad edit and encoded as 60i video!

SIMPLY AMAZING! AND SCARY! HOW CAN THIS BE DONE SO PERFECTLY? :D

regards,

Li On
post #2 of 27
Great timing Li On, I've been pulling my hair out trying to figure out why it seems nobody is able to match, in software, what nVidia does in hardware. I'll have to try this out, and I may actually be able to start using ffdshow.
post #3 of 27
Thread Starter 
The BlendBob filter works wonder on REALLLLYYYYY screwup 24/30fps source!

For those "normal" bad flag 24fps content, the good old trbarry's UnComb filter works excellent too. Get the filter [url=http://mywebpages.comcast.net/trbarry/UnComb.zip]here[/b] and put the .DLL under Avisynth plugins folder. Call it in FFDShow->Avisynth:

Code:
UnComb()
It use very little CPU and may work better on slower PC as well as on HDTV 1080i content.

regards,

Li On
post #4 of 27
Whoa, this works in real time? Do you think it will work on an Athlon XP 3500+?

Oh hell, I will try it anyways. :D

Thanks Li On.
post #5 of 27
Thread Starter 
ATI 9500:

- ZoomPlayer (Overlay output)
- DScaler5 (Weave, YV12)
- FFDShow (Andy's Aug preview version): Avisynth (BlendBob, LimitedSharpen), LanczosResize (parameter 4, 1280x720 out)

On my P4 2.66G (single core) overclocked to 3.8G, CPU usage is around 50-60%.

regards,

Li On
post #6 of 27
I'm not sure how to install these DLLs.

Do I put the DLLs into my C:\\Program Files\\ffdshow directory? Or should they go in the C:\\Program Files\\AviSynth 2.5\\Plugins directory?

The reason I ask is that I cannot tell if the AVISynth script is actually working properly. I cannot see any difference. Am I supposed to have more than the 2 lines in the AviSynth script window of the FFDShow configuration? Like a Load command or something like that?

Thanks.


I am using the NVIDA decoder in TheaterTek 2.2.1, with FFDShow post processing turned on.

EDIT: I am a complete newbie when it comes to AVISynth scripts in FFDShow. Please be gentle. :)
post #7 of 27
Thread Starter 
DLLs under avisynth->plugins folder.

In FFDShow->Avisynth config, put the 2 lines in the right side text box. Enable the "use avisynth" (or something similiar) checkbox, as well as the YV12 option.

If you're not sure Avisynth is used or not, put this into the FFDShow->Avisynth text box:

Code:
version
Then you should have a full screen showing avisynth version number which is in most case should be 2.55 or 2.56!

regards,

Li On
post #8 of 27
Thanks Li On.

It seems that my version of FFDShow doesn't work properly (20050303-SSE). Nothing happens when I have the "version" script running.

It would explain the combing I got on a lot of scenes when I was testing with Last Exile.

I'll have to try a different version of FFDShow...
post #9 of 27
Thread Starter 
Indeed, some FFDShow has a broken Avisynth interface. Andy's last year Aug's preview version sure works, for me anyway!

regards,

Li On
post #10 of 27
Somehow I got it working with FFDShow 20050303SSE - not sure why - probably because I had installed AVISynth 2.50 separately.

Anyways, it works somewhat okay, I guess. I tried Crest of the Stars disc 4, and the combing is gone, but it jerks and stutters on almost every pan. Damn - guess it doesn't work that great on such challenging material.

Combing is still somewhat present even on a Faroudja player - although 90% gone - the Faroudja player would blend them most of the time instead.

So, this plugin solution isn't as good - but it might be that my PC is underpowered, or I have to find the magic combination of FFDShow and AVISynth.

I am using TheaterTek 2.2.1 which uses the NVIDIA decoders...maybe it gets in the way?
post #11 of 27
I'll have to give this one a shot, your rig being P4 and mine being A64 might make a diff in CPU utilisation, but then I am not using limited sharpen and only Lanczos2... might just scrape in if I ease off the resize somewhat ehhee... will report back.

Anyone have a list of titles that would be good to test against? Apart from anime cos thats always tricky... wouldn't want to write it off due to anime, especially since I don't care too much for anime on the big screen, its perfectly fine on my 17"er. Especially since at the distance I watch and my eyes being stigmatised, it's easier to read the subs on the small monitor.

Cheers...
Duy-Khang Hoang
post #12 of 27
Futurama first season boxset has combing from hell! Give that a shot. Some of the worst combing I've seen. My projector's builtin Sil504 deinterlacer works really well on it.

I am in the middle of something on my PC so I can't test Futurama tonight.
post #13 of 27
Quote:
Originally Posted by hdkhang
Anyone have a list of titles that would be good to test against? Apart from anime cos thats always tricky... wouldn't want to write it off due to anime,
I am, it just doesn't work well for that, I get "corrupted pixels" for lack of a better term. And I refuse to have to change settings on a per-title basis.
post #14 of 27
I found another very problematic DVD - the region 1 Ghost in the Shell: Stand Alone Complex 2nd Gig Volume 2 disc!

This disc cannot be properly deinterlaced by NVIDIA's PureVideo. Even the script in Li On's first post can't handle it. However, UnComb() can catch the worst combing artifacts (for example, at 15:35 in the first episode, when Aramaki stands up - combing from hell! Also combs during the Prime Minister's reaction when she looks in the box). Unfortunately, the opening credits comb like crazy - I think because it is interlaced 30 fps.

However, using this seems to work:

UnComb()
LeakKernelBob(1,8,false)
BlendBob()

With the script in the 1st post, the credit text looks good, but with some pixellation when it stops motion (it does this on my Faroudja-based DVD player too though). With only UnComb(), everything combs in the opening credits. But when I combine the scripts as above, the credits text is still screwed up a bit, but at least the backgrounds don't comb. It still isn't perfect during the credits, but works well with the rest of the video (probably due to Uncomb).

Unfortunately, the script above results in choppy playback in some cases - my PC isn't powerful enough! But, it does a better job than Purevideo and is close to my Faroudja player!

There are a lot of bad edits in GitS: SAC 2nd Gig Vol. 2. Bandai should be ashamed of themselves - I've never seen combing this bad since Volume 1 of the first season!
post #15 of 27
Thread Starter 
I saw your post over the TheaterTek forum. And I registered an account and about to post something. But in the end can't think of much useful thing to say!

I too have quite a few problem anime that nothing can play them smooth and correct, such as the original "Macross the movie: do you remember love" Japanese R2 release by Bandai.
These screwup content still "comb" using this "perfect" pulldown deinterlace!

On Doom9 forum, people talk about "blend" source which I think means the source content is already being "blend" processed from it's original film/progressive format. I guess that means 2 odd/even fields from 2 different frames are actually being "blend" deinterlace together and then re-interlace for DVD encoding!

I tried some of the Doom9 "blend" script/filter but nothing seems to work in realtime in FFDShow yet.

Currently the ONLY way to watch such content in a more acceptable quality is using DScaler's MoComp2 video deinterlace.

And I think your Faroudja player simply drop to DCDi video deinterlace during those scene and I don't like the DCDi much now for it's low resolution (soft) and edge/fine detail flicker artifacts.

Anyway, the method in this thread handles almost all bad flag 24/30 fps content already. But sometimes we can only put the blame on those really really screwup content which is beyond redemption for all the eternity!

regards,

Li On
post #16 of 27
I also tried the TIVTC plugin I found on Doom9's forums. Wow - it does a superb job. Unfortunately, it isn't suitable for realtime - huge numbers of dropped frames, but it does look produce beautiful output.

You know, I wonder if using TIVTC and reencoding would be better for me...I would love to re-encode and reauthor the GitS: SAC Vol. 2 disc. Would this be possible? It just bothers me that Bandai could not author the disc properly in the first place.
post #17 of 27
I did try the TomsMoComp filter found in the Deinterlacing tab (I'm using ffdshow-20051124-gcc4.0.2-sse-x264.nl.exe), and it didn't comb - but the resolution looked like it was chopped in half - blocky!

I'll have to search for that DScaler MoComp2 plugin - I didn't see it as an option in FFDShow's DScaler tab.

You are right about the DCDi artifacts - in the opening credits of that GitS episode, there was no combing, but the text edges were blocky and shimmered and flickered. Better than Purevideo though - which got rid of most of the combing but the text itself combed quite a lot.

I'm finding that UnComb() isn't too bad while watching the actual show - the occasional combing but less distracting than Purevideo's in some scenes.

Another crazy disc for combing is the Crest of the Stars anime series - not even my Faroudja player could stop the combing! Probably really bad field-blending mastered right onto the disc like you mentioned.
post #18 of 27
Hmmm, I can't seem to select MoComp2 in FFDShow, after installing DScaler 4.1.11. It doesn't show up in the Dscaler Filters tab of FFDShow! I only see the filter DLLs that begin with FLT_*, not the DI_* ones. Any ideas?
post #19 of 27
Nevermind - I figured it out. I had to reinstall FFDShow and tell it where DScaler is before it finds the DScaler deinterlacers!
post #20 of 27
Damn, using Deinterlacing->DScaler->mocomp2 results in a horrible slideshow. I get 1 frame every 20 seconds or so. Yikes!
post #21 of 27
Thread Starter 
Are you sure it's under FFDShow->Deinterlacing->DScaler plugin, and select the DI_MoComp2.dll? And position the deinterlacing filter before any Resize, of course. It can't be that slow!

Regards,

Li On
post #22 of 27
Yep, I am sure! However, this may be an FFDShow problem - it seems every FFDShow made in 2005 cannot support DScaler Deinterlacing plugins properly - they are unusably slow. If I try FFDShow 20040709 (Andy's non-SSE version) there is no slowdown - but then deinterlacing doesn't seem to work at all, no matter which one I try! Combing and strange tearing-like effects.

Very strange. It's driving me nuts, because I hate the blocky and jaggyness of the standard TomsMoComp deinterlacing built into FFDShow.

I can't seem to find a non-SSE2 version of Andy's August Preview. I will keep searching.

By the way, the slowness is actually more like a dozen frames per second...still too slow! It just pauses for a long time after processing several frames - probably because the audio decoder is trying to resynch.
post #23 of 27
I tried Celtic Druid's FFDShow 20050803 version (marked as Recommended on the mirror websites). I found it here:

http://ffdshow.faireal.net/

This time, I can actually run the DScaler4 deinterlacers without slowdowns. However, resolution is cut in half vertically - very block and obviously all the combing artifacts are gone regardless of deinterlacer plugin I chose! Not a good solution. I don't understand this!

So I'm giving up on using DScaler's Mocomp2 for now.

In the meantime, it seems using a combination of NVIDIA's NVPP with an AVISynth script that simply calls UnComb() seems to eliminate all combing artifacts yet preserving the 24 and 30 fps playback rates, although the scrolling text and some of the visuals in the opening credits still have artifacts (mostly because NVPP can't handle it). But the combing I saw in the opening credits are gone thanks to Uncomb().

So, it's a good compromise! Panning in smooth, and in action scenes and bad flagged areas of the 1st episode the combing is gone. So for this very specific case it achieves performance similar to the Faroudja.

Thanks Li On for giving me all these crazy ideas. :)

For the longterm, I'd love to see a tool that can go through a video, perform deinterlace, and create a script with deinterlacing, blending, and deblending instructions. Then this script can be executable by a video decoder to properly arrange the frames for realtime playback. I think in theory this will eliminate stutter or dropped frames if the processor isn't fast enough to run a sophisticated searching algorithm in realtime - just run a batch file for the video you'd like to watch a couple of hours before the show starts.

Wouldn't it be great if the DScaler5 mpeg2 decoder could read this script file and follow the instructions to blend/deinterlace the frames after all the hard work is done by the tool?
post #24 of 27
Thread Starter 
There are 2 places to use DScaler filter in FFDShow, under Deinterlacing->DScaler->DScaler deinterlacing plugin, and DScaler filter.

DScaler deinterlacing filter (MoComp2 etc) goes under Deinterlacing->DScaler->DScaler deinterlacing plugin, other filters such as Sharpness goes under DScaler filter.

When I enable DScaler MoComp2 deinterlacing, CPU usage will ALWAYS at 100% (smooth picture), but it's a fake display as I can still use LimitedSharpen as usual.

I think a friend using a AMD XP3200+ on an old nForce2 system works fine with FFDShow DScaler4 MoComp2 deinterlacing.

regards,

Li On
post #25 of 27
What version of FFDShow and DScaler is he using? One day I will get this working. :)

Thanks.
post #26 of 27
Hi,

This sollution is way to slow for HD Movies/Series.

The only good solutions are the modified DScaler Version with IVTC released some weeks ago here and my Version based on this (wich has no more audio sync problems/ 720p 60 Hz -> 24 Hz Conversion / Subtitles fixed in IVTC Mode/ Works with unusual 3:2 Paterns (e.g. sometimes on NBC)/ recognizes these damn dynamicly speed adjusted movies (not series) on ABC)/ absolutly correct timestamps so thats possible for reclock to play NTSC Material without any stutter).

I plan to integrate a display rate check to optimize the IVTC for multibles of 23.976 Hz and other refreshrates...

cya

Ralf
post #27 of 27
Thread Starter 
BlendBob() works with DVD/SD source only, due to CPU usage I think.

UnComb() should work with 1080i HD film content as it's CPU usage is very light.

regards,

Li On
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Home Theater Computers
This thread is locked  
AVS › AVS Forum › Video Components › Home Theater Computers › the PERFECT 3/2,2/2 24/30fps deinterlacer using Avisynth filters