On Wed, 13 Mar 2013 08:15:15 -0400, Keith Lawson 
<[email protected]> wrote:
> 
> 
> On 12.03.2013 15:02, Anton Khirnov wrote:
> 
> > Secondly, I'm afraid those docs are a little obsolete. For one thing, 
> > you should
> > never insert the fifo filter manually. It is always done 
> > automatically when
> > needed.
> >
> > Also in those complex situations when you deal with filters with 
> > multiple inputs
> > or outputs, it's better to explicitly label everything and not rely 
> > on automatic
> > mappings, as it's more clear what's going on.
> >
> 
> Is there somewhere I can read more on the split filter and the syntax 
> for defining inputs and outputs? I'm having trouble understanding what 
> the labels define and how they're processed.

Read http://libav.org/libavfilter.html#Filtergraph-description carefully, it
just might enlighten you. I know it's not very clear, but it should be possible
to understand how labels work from this.

> 
> > In any case, i think that
> > -vf '[in] split [split_main][split_delogo]; 
> > [split_main][delogoed]overlay[out];
> > [split_delogo] select=gte(t\,0)*lte(t\,10),delogo=<delogo 
> > params>[delogoed];'
> > should do roughly what you want EXCEPT for a problem with overlay.
> 
> I haven't had a chance to test this yet as I have to rebuild and 
> install avconv from source but I will send my results when I do.
> 
> > In its current form, after overlay gets an EOF on its secondary 
> > input, it will
> > continue overlaying the last image from it. That is useful e.g. when 
> > you want to
> > overlay a single-picture logo on a video, but in this case you want 
> > it to stop
> > overlaying once the secondary stream ends. That cannot be done 
> > currently, but
> > should be quite easy to implement. I will look into it soonish.
> 
> So in your example above [delogoed] is getting passed to the overlay 
> filter and [delogoed] is created by the filter between [split_delog] ... 
> [delogoed]? Am I interpreting that correctly or am I totally off base?
> 

Yes. Every label that appears twice means a link between some filter's input and
another filter's output. Since [delogoed] appears once after delogo and once
before overlay (as a second label before overlay), it means that the output of
delogo is connected to the second input of overlay.

-- 
Anton Khirnov
_______________________________________________
libav-tools mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-tools

Reply via email to