[FFmpeg-devel] [PATCH] lavfi: add kerndeint filter

Stefano Sabatini stefasab at gmail.com
Sun Oct 21 11:20:32 CEST 2012


On date Thursday 2012-10-18 09:50:53 +0200, Jérémy Tran encoded:
> This is a port of the vf_kerndeint filter (libmpcodecs/vf_kerndeint) by
> Donal A. Graft (original avisynth plugin author).
> 
> The filter works fine using YUV colorspace.
> When using RGB, it is not binary equal with mp=kerndeint (the output video
> looks fine so this may be a little mistake I did somewhere).
> 
> I also removed many non-32bits colorspaces since the alogrithm does not
> seem to be made to work on shorter pixels, is this okay ?
> The only non-32-bits colorspace left is YUYV422 which is what mp=kerndeint
> uses, but I don't seem to get the same results (my first thought was
> because it does not have 32bpp).
> 
> The FATE test will come after this.
> ---
>  configure                  |   1 +
>  doc/filters.texi           |  45 ++++++
>  libavfilter/Makefile       |   1 +
>  libavfilter/allfilters.c   |   1 +
>  libavfilter/vf_kerndeint.c | 377 +++++++++++++++++++++++++++++++++++++++++++++
>  5 files changed, 425 insertions(+)
>  create mode 100644 libavfilter/vf_kerndeint.c

It turned out that the RGB mismatch is due to the fact that
mp=kerndeint doesn't support ARGB colorspace.

You can test it with:
$ make libavfilter/filtfmts-test
$ libavfilter/filtfmts-test mp kerndeint

Another issue which I discovered:
$ ffmpeg -f lavfi -i color=c=black,tinterlace=4,kerndeint,format=argb,showinfo -loglevel verbose -vframes 1 out.png

the first frame created by kerndeint is gray (only with RGB colorspace).
-- 
FFmpeg = Freak & Fostering Miracolous Perfectionist Eccentric Gladiator


More information about the ffmpeg-devel mailing list