[FFmpeg-devel] [PATCH] Add af resample - sample fmt and channel layout conversion audio filter
S.N. Hemanth Meenakshisundaram
Sat Aug 21 08:23:01 CEST 2010
Based off latest SVN. Passes 'make test' and
./ffplay -af resample=[<sample_fmt>]:[<ch_layout>] in.ogg
./ffmpeg -i in.mp3 -af resample=[<sample_fmt>]:[<ch_layout>] out.wav
to work without issues, the two patches posted just before this are needed.
Also, this filter currently accepts sample_fmt and channel_layout only
as integers. I will add string parsing shortly after posting a patch for
channel layout string mapping.
If I can wrap the sample rate conversions in resample2.c in this or
another filter, we can use lavfi to replace the audio post processing in
ffmpeg just like happens for video now.
doc/filters.texi | 23 ++
libavfilter/Makefile | 1 +
libavfilter/af_resample.c | 501 +++++++++++++++++++++++++++++++++++++++++++++
libavfilter/allfilters.c | 1 +
4 files changed, 526 insertions(+), 0 deletions(-)
create mode 100644 libavfilter/af_resample.c
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 23653 bytes
Desc: not available
More information about the ffmpeg-devel