[FFmpeg-devel] [PATCH] Add asrc_anullsrc - null audio source

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


On date Thursday 2010-08-19 06:08:21 -0700, S.N. Hemanth Meenakshisundaram encoded:
> Null audio source and doc
> 
> ---
>  doc/filters.texi            |   19 ++++++++++
>  libavfilter/Makefile        |    1 +
>  libavfilter/allfilters.c    |    1 +
>  libavfilter/asrc_anullsrc.c |   82 +++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 103 insertions(+), 0 deletions(-)
>  create mode 100644 libavfilter/asrc_anullsrc.c

Looks OK, waiting for Michael's approval.

> diff --git a/doc/filters.texi b/doc/filters.texi
> index 92d8814..7dd3120 100644
> --- a/doc/filters.texi
> +++ b/doc/filters.texi
> @@ -303,6 +303,25 @@ Since the sample format with name "s16" corresponds to the number
>  abuffer=1
>  @end example
>  
> + at section anullsrc
> +
> +Null audio source, never return audio frames. It is mainly useful as a
> +template and to be employed in analysis / debugging tools.
> +
> +It accepts as optional parameter a string of the form
> + at var{sample_rate}:@var{channel_layout}, where @var{sample_rate} and
> + at var{channel_layout} specify the properties of the configured audio source.
> +
> +The default values of @var{sample_rate} and @var{channel_layout} are
> +respectively 44100 and 3 respectively. A channel layout value of 3
> +corresponds to CH_LAYOUT_STEREO (check the channel_layout_map definition in
> + at file{libavcodec/audioconvert.h}).

It would be nice to introduce at some point some way to express the
channel layout using some string, anyway since all the future audio
API is yet in limbo we can skip that for now.

Regards.
-- 
FFmpeg = Fierce & Fiendish Merciful Patchable Experimenting Gospel



More information about the ffmpeg-devel mailing list