[FFmpeg-devel] [PATCH] swresample/options: enable linear_interp and exact_rational by default

Muhammad Faiz mfcc64 at gmail.com
Fri Mar 10 06:09:47 EET 2017


On Fri, Mar 10, 2017 at 10:04 AM, Marton Balint <cus at passwd.hu> wrote:
>
> On Fri, 10 Mar 2017, Muhammad Faiz wrote:
>
>> for higher quality resampling
>
>
> How much slower is it?

Not slower when exact_rational doesn't fail, because it doesn't trigger
linear interpolation (even when linear_interp is enabled).
For example 44100 -> 48000 (147:160) so phase_count = 160 <= 1024

But if exact_rational fails, it will be slower because it triggers
linear interpolation.
For example 11025 -> 96000 (147:1280) so phase_count = 1280 > 1024
ans phase_count wil set to 1024 instead.
This will trigger slower linear interpolation.
I mention this in linear_interp doc entry.

Thank's


More information about the ffmpeg-devel mailing list