[FFmpeg-soc] [PATCH] Add af sox - lavfi wrapper for libsox

S.N. Hemanth Meenakshisundaram smeenaks at ucsd.edu
Thu Sep 2 10:11:21 CEST 2010


Hi All,

I need some advice on the lavfi audio sox wrapper filter.

The sox API that starts off the filtering of data - sox_flow_effects() -
keeps trying to pull data from the input effect defined in lavfi until
it sends EOF, otherwise doesn't return. So I changed the af_sox input
effect behavior in the patch below to always send EOF after giving every
buffer to the sox chain. This means the sox chain would be reinitialized
when calling sox_flow_effects for each audio buffer. This causes sox to
crash after playing out a few buffers.

Instead, would it be ok to call sox_flow_effects once in a new thread
and let it fetch and output its buffers from/to the FIFOs at the input
and output? Please let me know.

Regards,

---
 libavfilter/Makefile     |    1 +
 libavfilter/af_sox.c     |  351 ++++++++++++++++++++++++++++++++++++++++++++++
 libavfilter/allfilters.c |    1 +
 3 files changed, 353 insertions(+), 0 deletions(-)
 create mode 100644 libavfilter/af_sox.c



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-af-sox-lavfi-wrapper-for-libsox.patch
Type: text/x-patch
Size: 14078 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-soc/attachments/20100902/42824ef4/attachment.bin>


More information about the FFmpeg-soc mailing list