[FFmpeg-devel] [PATCH] doc: add an overlay "side-by-side" example.

Clément Bœsch ubitux at gmail.com
Sun Jun 17 13:22:23 CEST 2012


On Sun, Jun 10, 2012 at 12:35:04AM +0200, Stefano Sabatini wrote:
> On date Saturday 2012-06-09 00:29:05 +0200, Michael Niedermayer encoded:
> > On Fri, Jun 08, 2012 at 08:23:06PM +0200, Clément Bœsch wrote:
> > > On Fri, Jun 08, 2012 at 10:36:49AM +0200, Michael Niedermayer wrote:
> > > > On Fri, Jun 08, 2012 at 08:05:46AM +0200, Clément Bœsch wrote:
> > > > > On Fri, Jun 08, 2012 at 07:55:19AM +0200, Clément Bœsch wrote:
> > > > > > ---
> > > > > >  doc/filters.texi |    5 +++++
> > > > > >  1 file changed, 5 insertions(+)
> > > > > > 
> > > > > > diff --git a/doc/filters.texi b/doc/filters.texi
> > > > > > index 150bde3..dc1cda1 100644
> > > > > > --- a/doc/filters.texi
> > > > > > +++ b/doc/filters.texi
> > > > > > @@ -2284,6 +2284,11 @@ ffmpeg -i input -i logo1 -i logo2 -filter_complex
> > > > > >  # add a transparent color layer on top of the main video,
> > > > > >  # WxH specifies the size of the main input to the overlay filter
> > > > > >  color=red at .3:WxH [over]; [in][over] overlay [out]
> > > > > > +
> 
> > > > > > +# play an original video and a filtered version (here with the deshake filter)
> > > > > > +# side by side
> > > > > > +ffplay input.avi -vf 'split[a][b]; [a]pad=iw*2:ih[src]; [b]deshake[filt]; [src][filt]overlay=w'
> > > > >                                                  ^^^
> > > > >                                               and I could even drop this
> > > > 
> > > > it can be simplified further to:
> > > > 
> > > > -vf 'split[b], pad=iw*2[src], [b]deshake, [src]overlay=w'
> > > > 
> > > 
> > > Ah true, thanks, changed locally.
> 
> Uhm... I'd like to keep the long version, which is pedagogically more
> clear. You can mention both of them, for example it could go:
> 
> Play an original video and a filtered version (here with the deshake filter)
> side by side:
> ffplay input.avi -vf 'split[a][b]; [a]pad=iw*2:ih[orig]; [b]deshake[filt]; [orig][filt]overlay=w'
> 
> The previous example is the same as:
> ffplay input.avi -vf 'split[b], pad=iw*2[orig], [b]deshake, [orig]overlay=w'
> 

Adapted and pushed, thanks.

> Added karma if you itemize the examples in a separate commit.

I'm not sure how to do that in a sane way...

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120617/007ffd1d/attachment.asc>


More information about the ffmpeg-devel mailing list