[FFmpeg-devel] [PATCH 1/2] fftools/cmdutils: make the default swscale flags identical for simple and complex filter graph

Linjie Fu linjie.justin.fu at gmail.com
Sun Aug 1 16:49:02 EEST 2021


On Sun, Aug 1, 2021 at 9:25 PM Nicolas George <george at nsup.org> wrote:

> Linjie Fu (12021-08-01):
> > From: Linjie Fu <linjie.justin.fu at gmail.com>
> >
> > Currently the default swscale flags for simple filter graph is bicubic,
> > however for complex filter graph it uses bilinear as decleared in scale
> > filter.
>
> Why does ffmpeg set a default different from swscale?
>

Checked swscale, it uses bicubic by default.
Scale filter sets the flags to bilinear if sws_scale_opt is not initialized
by sws_dict.

We should use the same default flags for both simple and complex filter
graphs, either from swscale, or from scale filter.
If prefer to keep it identical with swscale, we may modify the flags in the
scale filter.

- linjie


More information about the ffmpeg-devel mailing list