[FFmpeg-devel] [PATCH] avfilter/showwaves: add single_pic option

Clément Bœsch u at pkh.me
Fri Dec 26 00:17:53 CET 2014


On Fri, Dec 26, 2014 at 12:14:52AM +0100, Stefano Sabatini wrote:
> On date Wednesday 2014-12-24 15:03:26 +0100, Clément Bœsch encoded:
> > TODO: bump minor
> > ---
> >  doc/filters.texi            |  12 +++
> >  libavfilter/avf_showwaves.c | 175 +++++++++++++++++++++++++++++++++++++++-----
> >  2 files changed, 169 insertions(+), 18 deletions(-)
> > 
> > diff --git a/doc/filters.texi b/doc/filters.texi
> > index 7fac8fb..7953e62 100644
> > --- a/doc/filters.texi
> > +++ b/doc/filters.texi
> > @@ -11334,6 +11334,11 @@ option @var{n}. Default value is "25".
> >  @item split_channels
> >  Set if channels should be drawn separately or overlap. Default value is 0.
> >  
> > + at item single_pic
> > +Output only one frame at the end if set. This option can only work with
> > + at option{mode}=@var{cline}. Note that this option will store the whole decoded
> > +audio track in memory. Default value is 0.
> 
> I wonder if we should rather have a different filter, computing the
> average value over N samples and printing it. This should not require
> the buffering logic. Note that we may also adapt the filter and use a
> high value of n. That together with tile would do the trick.

How do you define N without decoding everything?

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141226/b58ecab7/attachment.asc>


More information about the ffmpeg-devel mailing list