# Deinterlacing

I watched a video on Youtube and I noticed the video is deinterlaced. It looks very smooth and it shows colour pixels leaving behind the movement. I'm looking for this setting. If anyone can tell what type of deinterlacing is I would be appreciated. I am using AviSynth and it has many deinterlacing options. I am wondering if AviSynth has that setting.
2. You want poor deinterlacing with chroma blending artifacts? It looks like Yadif with a ConvertToYV12() instead of ConvertToYV12(interlaced=true).
3. Agreed, that sample video looks like a catalog of dumb noob mistakes.
4. I downloaded and installed Yadif in AviSynth Plugins, but AviSynth does not seem to recognise it. Here's how I installed.
[Attachment 46647 - Click to enlarge]
.
[Attachment 46648 - Click to enlarge]
.
[Attachment 46649 - Click to enlarge]
5. Yadif is a little different than most AviSynth filters. It won't autoload when in the plugins folder. You have to use a special import in your script:

Code:
Load_Stdcall_plugin("C:\path\to\yadif.dll")
On my computer AviSynth is installed in: "C:\Program Files (x86)\AviSynth\". I put yadif.dll in AviSynth's plugins folder (even though it doesn't autoload on its own). Then I use an avsi script in the plugins folder to autoload yadif.dll so I don't have to remember to manually include it in my script. The Yadif.avsi script looks like:

Code:
Load_Stdcall_plugin("C:\Program Files (x86)\AviSynth\plugins\yadif.dll")
If you have AviSynth installed elsewhere you'll need to modify the path to match.

If you want good deinterlacing use QTGMC instead. It looks like you have it installed already.

If you really want those chroma blending artifacts you can create them manually with MergeChroma(Blur(0.0, 1.0)) before deinterlacing (assuming your source is interlaced YV12).
6. I borrowed this idea from someone for loading the two C plugins I use regularly. They're not in the standard Avisynth plugins folder, so doing it this way means if I move or delete them, leaving the avsi script in the auto-loading folder won't prevent Avisynth from running.

AVSInpaint = "C:\Program Files\AviSynth\C Plugins\AVSInpaint.dll"

7. Blur() has no input video:

Code:
video = MergeChroma(video, Blur(video, 0.0, 1.0))
8. I need another help with deinterlacing. QTGMC or Yadif do not really help with some interlaced videos, but separate fields does help removing undesired horizontal line artifacts. However, the video gets shaky when I use that deinterlace. Is there any AviSynth filter that stabilises it?
9. Post a sample of your source.
10. Originally Posted by jseo13579
As jagabo mentioned, if you want the problem analyzed, post some of your source - not the results

11. [Attachment 48478 - Click to enlarge]
. I don't understand what specifically he's saying, but I think this is what I'm asked for. If not, please be more specific.
12. Geez, where do people come up with scripts like this?

Originally Posted by jseo13579
I don't understand what specifically he's saying
He's asking for a sample - a video sample from your 'source'. Untouched and maybe 10 seconds with steady movement. No one wants your results; no one wants the bad script you used.
13. Honestly, yadif shouldn't even be used in Avisynth.
Go QTGMC, nothing else.
Or, if you really want yadif, at least go the yadifmod() route.
14. Here's untouched video
15. Most of that clip has the top field below the bottom field. Use:

Code:
LSmashVideoSource("Downloads\N.mp4")
SwapFields()
AssumeBFF()
QTGMC()
The first few seconds with the Playstation logo don't have the field swap. So don't use SwapFields() on that section if you prefer. Also, it has interlaced frames encoded as progressive so there will be some chroma blending artifacts. And it has duplicate frames here and there where the capture device dropped a frame and inserted a duplicate.
16. Originally Posted by jseo13579
Here's untouched video
It's been "touched" by handbrake

Writing application : HandBrake 1.1.1 2018061800

The "untouched" video would be "Tekken 4.m2ts" . If you need to cut a segment, you can use tsmuxer
17. Nice catch poisondeathray, but I disabled deinterlace while processing it, so it looks exactly the same as the original one.
18. Originally Posted by jseo13579
Nice catch poisondeathray, but I disabled deinterlace while processing it, so it looks exactly the same as the original one.
But why would you do that when you were asked specifically for an untouched sample? 10 seconds is all that's needed. A short scene of someone walking or some other sort of movement. You're the one asking for help. If you want help, then provide what's asked for.

Statistics