[FFmpeg-devel] [PATCH] asrc_abuffer - audio source filter

Stefano Sabatini stefano.sabatini-lala
Thu Aug 19 17:08:04 CEST 2010


On date Thursday 2010-08-19 06:07:38 -0700, S.N. Hemanth Meenakshisundaram encoded:
> Updated doc, minor cosmetic changes in filter, added string sample
> format init argument parsing.
> 
> ---
>  doc/filters.texi           |   42 +++++++++++++
>  libavfilter/Makefile       |    2 +
>  libavfilter/allfilters.c   |    2 +
>  libavfilter/asrc_abuffer.c |  146 ++++++++++++++++++++++++++++++++++++++++++++
>  libavfilter/asrc_abuffer.h |   24 +++++++
>  5 files changed, 216 insertions(+), 0 deletions(-)
>  create mode 100644 libavfilter/asrc_abuffer.c
>  create mode 100644 libavfilter/asrc_abuffer.h
> 
> 
> 

> diff --git a/doc/filters.texi b/doc/filters.texi
> index 7f0cb71..7eb8ae7 100644
> --- a/doc/filters.texi
> +++ b/doc/filters.texi
> @@ -224,6 +224,48 @@ Flip the input video vertically.
>  
>  @c man end VIDEO FILTERS
>  
> + at chapter Audio Sources
> + at c man begin AUDIO SOURCES
> +
> +Below is a description of the currently available audio sources.
> +
> + at section abuffer
> +
> +Buffer audio frames, and make them available to the filter chain.
> +
> +This source is mainly intended for a programmatic use, in particular
> +through the interface defined in @file{libavfilter/asrc_abuffer.h}.
> +
> +It accepts a single mandatory parameter:
> + at var{sample_fmt_string}
> +
> +Follows the list of the accepted parameters.
> +
> + at table @option
> +
> + at item sample_fmt_string
> +
> +A string representing the sample format of the buffered audio frames.
> +It may be a number corresponding to a sample format, or a sample format
> +name.
> +
> + at end table
> +
> +For example:
> + at example
> +abuffer=s16
> + at end example

It is useful to accept here also an int, like it is done with the
src_buffer source, simplify programmatic use.

[...]

Regards.
-- 
FFmpeg = Formidable Fascinating Multipurpose Programmable Energized Guru



More information about the ffmpeg-devel mailing list