On Sun, Jun 12, 2016 at 6:58 PM Grant Edwards <grant.b.edwa...@gmail.com>
wrote:

> On 2016-06-13, Dan Dennedy <d...@dennedy.org> wrote:
> > On Sun, Jun 12, 2016 at 6:00 PM Grant Edwards <grant.b.edwa...@gmail.com
> >
> > wrote:
> >
> >> On 2016-06-13, Carl Karsten <c...@personnelware.com> wrote:
> >> > On Sun, Jun 12, 2016 at 7:34 PM, Grant Edwards <
> >> grant.b.edwa...@gmail.com> wrote:
> >> >
> >> >> It looks like I could use -transition and ramp gamma and audio gain
> to
> >> >> do the same thing, but then (AFAICT) I need to know the frame numbers
> >> >> where I want to start/end the fade out.
> >> >>
> >> >> Can you somehow index back from the end of a clip (e.g. frame 1 is
> the
> >> >> first frame; frame 2 is the second frame; frame -1 is the last frame,
> >> >> frame -2 is the frame before the last frame).  Then transitions could
> >> >> be applied to the end of a clip without having to know how long it
> is.
> >> >>
> >> >> All the examples I find of applying a transition to the end of a clip
> >> >> require knowing how long it is.
> >>
> >
> > not when using -mix...
>
> Right. But mix only mixes between two clips that both have video and
> audio.  What do you do if you simply want reduce volume to 0 and gamma
> to 0 over the last 60 frames?  One (IMO rather bad) answer is you have
> to create a clip that contains black frames and a silent audio track
> and cross fade to that.
>
> Wouldn't it be simpler to just ramp gamma and audio volume?  It would
> reduce the number of clips involved by 2/3.
>
>
Yes, of course, that's the way I do it in Shotcut (except using brightness
instead of gamma). However, -mix IS a way to add a transition to the end of
a clip without knowing its length, which is what I responded to.

BTW, the way to get the mix transition to work with the color producer is
to add property "set.test_audio=0". It is an undocumented hack.


> > Property animation supports a negative time values to mean from the
> > end of a clip:
> > https://www.mltframework.org/bin/view/MLT/PropertyAnimation
> >
> > However, only some properties of some effects support animation (or
> > geometry animation). See the bottom of that page. Note to self to review
> > that list against git log to see if there are some additions.
>
> That's cool.  Now I just have to figure how to do that with melt. :)
>

Here is a fade-out:
melt noise: out=100 -attach brightness level="0=1; :-1.0=1; -1=0" -attach
volume level="0=1; :-1.0=1; -1=-60"

- semi-colon is the keyframe delimiter.
- a keyframe time of negative one means the last frame
- a colon is needed to interpret the keyframe time as a time value instead
of frame number as colon is the delimiter in timecode and time clock
values, but you do not need to specify the full timecode/-clock: HH:MM::
SS.MS can be shortened to :SS.MS
- volume's level property is keyframable but its unit is dB: -60 dB is very
nearly silent.

MLT is primarily for developers. The developers of MLT are also the
developers of Shotcut, Flowblade, and Kdenlive, all of which have very few
developers leaving little time for helping melt users. So, this is about
all I got for you.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to