On ven, apr 04, 2014 at 05:11:25 +0200, Anton Khirnov wrote:
> On Fri,  4 Apr 2014 11:50:47 +0200, Alessandro Ghedini 
> <[email protected]> wrote:
> > This adds a new "replaygain-preamp" option to the filter, and simply adds 
> > its
> > value to the replaygain gain value.
> > ---
> >  doc/filters.texi        | 6 ++++++
> >  libavfilter/af_volume.c | 4 +++-
> >  libavfilter/af_volume.h | 1 +
> >  3 files changed, 10 insertions(+), 1 deletion(-)
> > 
> > diff --git a/doc/filters.texi b/doc/filters.texi
> > index 93625c6..4a737ef 100644
> > --- a/doc/filters.texi
> > +++ b/doc/filters.texi
> > @@ -633,6 +633,12 @@ Prefer track gain, if present.
> >  @item album
> >  Prefer album gain, if present.
> >  @end table
> > +
> > +@item replaygain-preamp
> > +Pre-amplification gain in dB to apply to the selected replaygain gain.
> > +
> > +Default value for @var{replaygain-preamp} is 0.0.
> > +
> >  @end table
> >  
> >  @subsection Examples
> > diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c
> > index 165624e..393c4e7 100644
> > --- a/libavfilter/af_volume.c
> > +++ b/libavfilter/af_volume.c
> > @@ -59,6 +59,8 @@ static const AVOption options[] = {
> >          { "ignore", "replaygain side data is ignored", 0, 
> > AV_OPT_TYPE_CONST, { .i64 = REPLAYGAIN_IGNORE }, 0, 0, A, "replaygain" },
> >          { "track",  "track gain is preferred",         0, 
> > AV_OPT_TYPE_CONST, { .i64 = REPLAYGAIN_TRACK  }, 0, 0, A, "replaygain" },
> >          { "album",  "album gain is preferred",         0, 
> > AV_OPT_TYPE_CONST, { .i64 = REPLAYGAIN_ALBUM  }, 0, 0, A, "replaygain" },
> > +    { "replaygain-preamp", "Apply replaygain pre-amplification",
> 
> If you don't object, I'd make it "replaygain_preamp" to be consistent with 
> other
> options in libav.

Fine with me. I guess this also applies to replaygain-noclip.

-- 
perl -E '$_=q;$/= @{[@_]};and s;\S+;<inidehG ordnasselA>;eg;say~~reverse'
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to