Skip to content

Deinterlacing

Harry Munday edited this page Jul 26, 2023 · 12 revisions

The Joy of Analogue Compression

Interlacing was originally intended and is to this still to this day of writing the first edition, still used for analogue & digital TV transmission systems as it takes half the signal and data bandwidth to transmit or encode interlaced then full progressive video frames this is why 1080i is still common even in the 2020s with HDTV 1440x1080i for example.

Is there something I'm missing?

In proper editing and mastering suits you need to set your display to NTSC/PAL correctly even in PAL land any panel you buy will be 60hz in the digital era.

So ensure your display is set to 50hz PAL and 60hz NTSC (100hz/120hz for high refresh rate monitors) to have accurate playback of media this goes for progressive content too.

If you cant do this on your computer display you need to use a TV or a CRT display ideally for checking as all modern TV's have support for native interlaced signals and progressive ones.

PC you need to adjust this on NVidia/AMD or Intel's graphics control panel.

Apple also has support for this and modes like inverse telecine for basic hardware de-interlacing there new MacBook Pro models support standard display rate modes.

Acronyms

i = Interlaced

p = Progressive

fps = Frames Per Second

Hz = Rate of update of frames per second e.g 50hz is 50fps etc etc

What is Interlacing?

Analogue video on tape is a bunch of lines like a paper shredder in layman's terms, ware as interlaced video is like a printing press making exact cuts of the paper, this is called a field and you need 2 of them to make a single frame of image information on your display.

Now interlaced media is normally 25 fps PAL and 29.97 fps NTSC but commonly you will read it as 50i & 59.97i this is confusing because you have consumer naming and broadcast naming.

25 frames a second, displayed at 50 interlaced fields per second.

29.97 frames a second, displayed at 59.97 interlaced fields per second.

But you now will say "It looks off if I just deinterlace to 25/30p" with your home video tapes fore example it will be because the motion rate is wrong.

Example 1080i to 576i Composite

Interlaced Image (4:3 Anamorphic - White lines are WSS)

De-Interlaced (De-Squeezed 16:9)

1920x1080i (HDMI Output from HDV 1440x1080 Tape Source)

Exurb

Digital Video and HD Algorithms and Interfaces 2nd Edition (Charles Poynton 2012-02-07) (PDF Page 173)

What is a Deinterlacer?

Its a processing method or ''filter'' that combines the half frames to make whole progressive video frames de-interlacing the media to progressive.

This is done via combining both fields together, and for motion accurate de-interlacing this also interpolates the frames dubbing the framerate this is how you get smooth 50p and 59.97p images.

But for film content you want to get an 24fps motion accurate image or 12fps

What decides the Deinterlacer I use?

Consumer Video is 25i PAL (50i) 29.97i NTSC (59.94i)

Broadcast Airing is 25i PAL (50i) 29.97i NTSC (59.94i)

Film Content 24p wrapped in 25i/29.97i etc

Anime Falls between 12-24fps wrapped in 25i/29.97i etc

Movies are always 24fps wrapped in 25i/29.97i (Edge cases of modern 48fps etc)

What deinterlacer filters are there today?

A filter is a scripted processing method in basic terms this tells a processing software toolset like FFmpeg or Avisynth for example do x thing to y stored frame and so on.

You have FFmpeg, Avisynth, Avisynth+, AviSynth Neo, Vapoursynth.

(Note: AviSynth Neo has KTGMC which is Nvidia GPU Accelerated QTGMC)


QTGMC - via StaxRip or Avisynth+ tools. (50p/59.94p)

IVTC / AnimeIVTC via StaxRip or Avisynth+ tools (to 24p/18p etc)

BWDIF/W3DIF via FFmpeg or any FFmpeg, based tool. (to 50p/59.94p)

DaVinci Resolves "Neural Engine" de-interlacer. (Still causes vertical artefacts)

Topaz - Just uses BWDIF.

NOTE Weave Mode is Interlaced or Interlacing depending on context (i.g recording or encoding) & tinterlace filter in FFmpeg encodes 50p to 25i interlaced for example.

Shout out to Andrew Swan's posts about QTGMC with Avisynth Who started me down the QTGMC rabbit hole 3 years ago before StaxRip - Harry

Film Frame Rates

Silent films - 16fps

8mm film - 16/18fps (Normally 18fps)

16mm film - 24fps

35mm film - 24fps

70mm film - 24fps

Clone this wiki locally