[FFmpeg-devel] [PATCH] Add af_resample

S.N. Hemanth Meenakshisundaram smeenaks
Wed Aug 11 18:44:47 CEST 2010


> On date Monday 2010-07-19 03:05:56 -0700, S.N. Hemanth Meenakshisundaram
> encoded:
>> Put af_resample.c changes together in one patch
>>
>> ---
>>  libavfilter/Makefile      |    2 +
>>  libavfilter/af_resample.c |  470
>> +++++++++++++++++++++++++++++++++++++++++++++
>>  libavfilter/allfilters.c  |    2 +
>>  3 files changed, 474 insertions(+), 0 deletions(-)
>>  create mode 100644 libavfilter/af_resample.c
>
> I suppose all this code comes from libavcodec.
>
> I already said that we need a resampling API and I suggested to create
> a separate lib for that, but since this is going to take much time and
> freeze the audio libavfilter integration, I'm fine with the patch
> provided that we'll get rid of the evil duplication when we'll finally
> implement a decent resampling API/lib, so I'm leaving the decision to
> accept this patch to Michael.
>
> Regards.
> --

If the resampling API is not going to be separated out for quite some
time, I can extend af_resample to wrap the sampling rate conversions in
libavcodec/resample2.c

Then we can use the lavfi audio framework to replace the post processing
steps in ffmpeg.c similar to ow the lavfi video filters replace the video
post processing steps in ffmpeg.c

Please let me know if we want this now.

Regards,






More information about the ffmpeg-devel mailing list