[FFmpeg-devel] [PATCH] lavfi: add fade filter

Michael Niedermayer michaelni
Tue Feb 22 04:49:47 CET 2011


On Mon, Feb 21, 2011 at 06:07:09PM +0100, Stefano Sabatini wrote:
> On date Monday 2011-02-21 15:58:17 +0100, Stefano Sabatini encoded:
> > On date Monday 2011-02-21 14:24:52 +0100, Michael Niedermayer encoded:
> > > On Mon, Feb 21, 2011 at 12:02:57PM +0100, Stefano Sabatini wrote:
> > > > From: Brandon Mintern <bmintern at gmail.com>
> > > > 
> > > > Port fade filter from libavfilter soc repo, with minor fixes by
> > > > Stefano.
> > > > ---
> > > >  doc/filters.texi         |   33 +++++++++
> > > >  libavfilter/Makefile     |    1 +
> > > >  libavfilter/allfilters.c |    1 +
> > > >  libavfilter/vf_fade.c    |  170 ++++++++++++++++++++++++++++++++++++++++++++++
> > > >  4 files changed, 205 insertions(+), 0 deletions(-)
> > > >  create mode 100644 libavfilter/vf_fade.c
> > > 
> > > commited
> > > 
> > > ideas for future work:
> > 
> > > allow multiple fade in / out per filter
> > 
> > Not sure about what you mean here.
> > 
> > > allow times in seconds instead of frame numbers
> > 
> > I'm working on this, extending the syntax so that it will accept start
> > time specified as an av_parse_time() string or #FRAME_NB, same for
> > DURATION.
> 
> Check patch, only partially tested, only posted for showing
> the syntax.
[...]
>  # fade out last 45 frames of a 200-frame video
> -fade=out:155:45
> +fade=out:#155:#45
> +
> +# fade out last 10 seconds frames of a 5 minutes video
> +# the quotes are required, since the time specification includes ":"
> +fade=out:'00:04:50':10

I dont think syntax needing escaping is a good idea
i suggest fade=out:00h04m50s:10s


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110222/ed8e81b4/attachment.pgp>



More information about the ffmpeg-devel mailing list