[FFmpeg-devel] [PATCH] Add af resample - sample fmt and channel layout conversion audio filter

S.N. Hemanth Meenakshisundaram smeenaks
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

For,

./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.

Regards,
Hemanth

---
 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...
Name: 0001-Add-af-resample-sample-fmt-and-channel-layout-conver.patch
Type: text/x-patch
Size: 23653 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100820/4eba6f06/attachment.bin>



More information about the ffmpeg-devel mailing list