[FFmpeg-devel] [PATCH] avfilter/af_astats: export metadata

Dave Rice dave at dericed.com
Wed Jul 15 19:02:01 CEST 2015


> On Jul 1, 2015, at 4:10 AM, Paul B Mahol <onemda at gmail.com> wrote:
> 
> On 6/30/15, Dave Rice <dave at dericed.com> wrote:
>> Hi Paul,
>> 
>>> On Jun 29, 2015, at 7:40 PM, Paul B Mahol <onemda at gmail.com> wrote:
>>> 
>>> Signed-off-by: Paul B Mahol <onemda at gmail.com>
>>> ---
>>> doc/filters.texi        | 35 ++++++++++++++++++++++
>>> libavfilter/af_astats.c | 80
>>> +++++++++++++++++++++++++++++++++++++++++++++++--
>>> 2 files changed, 113 insertions(+), 2 deletions(-)
>> 
>> I tested the metadata astats filters with the latest drawgraph patch. I find
>> this adds a lot of ability to visualize audio information. Here's a few
>> comments from testing.
>> 
>> I suggest adding a reset_count/reset option similar to what is in
>> cropdetect, so that audio information could either be graphed frame-by-frame
>> or summarized as it accumulates.
> 
> Like in attached patch?

Tested and this works great for me. I find this patch very helpful when using astats with adrawgraph.

>> With my samples the filter defaulted to an audio frame size of 1024. I
>> realize that I could set asetnsamples before astats to change that, but
>> could the audio frame size be set within the astats filter.
> 
> It could, but to what value? I do not like duplicating functionality if it
> is not strictly necessary.

No worries, asetsamples works for this.
Dave Rice


More information about the ffmpeg-devel mailing list