Lair Of The Multimedia Guru

June 9, 2006

Deinterlacing filters

Below you will find a comparission of various deinterlacing filters, the interlaced source was created with mplayer using the phase=t and tinterlace=1 filters from the well known foreman video

all pictures where exported with mplayer -vo pnm and ppmtojpg --optimize --quality 90 why not -vo jpeg? well i didnt had -vo jpeg compiled in and -vo jpeg only accepts rgb input, so there wouldnt have been any advantage in using it …

Most deinterlacing filters only output one frame for every 2 fields that combined with the fact that some always choose the even, some always the odd and some always the first no matter if thats even or odd made this comparission less funny then i hoped originally, due to this little issue several filters (pp=ci and kerndeint IIRC) had to be feeded with vertically fliped video and tomsmocomp even needed -vf phase=b to output a frame based on the correct field and yes i of coarse did specify the top vs. bottom field first flag correctly as long as the filter had such an option …

Original non interlaced image
interlaced image mplayer -vf phase=t,tinterlace=1
mplayer -vf pp=lb (linear blend)
mplayer -vf pp=l5 (5tap lowpass filter)
transcode -J smartyuv
mplayer -vf pp=fd
mplayer -vf pp=md (median deinterlacer)
mplayer -vf pp=li (linear interpolate)
mplayer -vf pp=ci (cubic interpolate)
transcode -J dilyuvmmx
mplayer -vf kerndeint (Donald Graft’s adaptive kernel deinterlacer)
transcode -J smartdeinter (VirtualDub’s smart deinterlacer)
transcode -J tomsmocomp (Tom’s Motion Compensation deinterlacing filter)
mplayer -vf yadif=1:1
mplayer -vf yadif=3:1
mplayer -vf yadif=1:1,mcdeint=2:1:10
mplayer -vf yadif=3:1,mcdeint=2:1:10
Filed under: Uncategorized — Michael @ 16:48

57 Comments »

  1. Good comparison highlighting effectiveness of YADIF (been a fan since it was first released).

    But why is my ffmpeg x264 encode so slooow? -vf “yadif=3:0,mcdeint=2:0,framestep=2,scale=-1:720”
    on a tff Sony Handycam 1440x1080i MTS clip gave me just 0.3 ~ 0.4 fps !!!
    On an i7 IvyBridge Quad, 16GB RAM, SSD boot, Intel RAID-0 pair of Black Caviars.
    I got lots of “snow” msgs of “pass 1” “pass 2”, etc msgs before each encode output, and low CPU usage.
    Using simple -vf “yadif=0:0,scale=-1:720” -sws_flags lanczos gets me 38 fps with no discernible difference in visual quality (unless you explicitly look out for them). And 99+% usage on all 8 virtual CPUs.

    Did I do anything wrong? Is mcdeint the culprit here (single tasking?) ? It can’t be 100x slower!
    Thank you for any guidance and response, I know this is an old thread.

    Comment by XEQtor — May 22, 2015 @ 9:27

  2. Hello, i feel that i noticed you visited my web site so i came
    to return the favor?.I’m attempting to to find things
    to enhance my web site!I suppose its good enough
    to use a few oof your concepts!!

    Comment by être riche — December 12, 2015 @ 9:09

  3. After exploring a number of thee articles on your blog, I
    honestly appreciate your way of writing a blog. I saved as a favorite it to my bookmark website list
    and will be checking back soon. Please check out my
    website too and let me know what you think.

    Comment by How hack Wi-Fi free on pc — February 17, 2016 @ 22:08

  4. Hello there, I found your site via Googble
    while searching for a related topic, your site came up, it seems
    to be great. I have bookmarked it in my google bookmarks.

    Hi there, simply changed into alert to your weblog thru Google, and
    located that it is really informative. I’m gonna be careful for brussels.
    I will be grateful in the event you continue this in future.
    Lots of people shall be benefited out oof your writing.
    Cheers!

    Comment by comment devenir Riche rapidement — May 24, 2016 @ 6:28

  5. I know this web page gives quality depending articles or reviews and extra information,
    is there any other website which gives these kinds of stuff in quality?

    Comment by Thu mua macbook cũ hà nội — June 5, 2016 @ 7:01

  6. Hi there, always i used to check website posts here
    in the early hours in the break of day, since i love to find out more and more.

    Comment by Khóa bàn phím Macbook — June 5, 2016 @ 7:33

  7. For the reason that the admin of this site is working, no doubt very soon it will be famous, due to its quality contents.

    Comment by cool bike frames — June 16, 2016 @ 2:15

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress