On Thu, Mar 13, 2014 at 6:21 PM, Brian Matherly <pez4br...@yahoo.com> wrote:
> For services that currently have "start" and "end" properties (like
> brightness), it probably makes sense to deprecate those properties and
> create new ones (as already mentioned).
>
> For services that do not have "start" and "end" (like volume), I wonder if

Actually, volume does have this. It uses "gain" instead of "start" but
also has an end over which it will interpolated from gain to end.

> we could simply change the parameter type to animation. I think we could

There is no animation parameter type. The properties are variant, but
the metadata lets one declare a type for the parameter to provide
guidance or for generated UIs in apps. Basically, all properties are
animatable now as long as you access them using the animation version
of the property get functions.

> modify the animation property type to detect if the user has provided an
> animation or a simple type. If the user supplied an animation, parse and
> proceed. If the user has provided a simple type, create an animation with a
> single element containing the property value as the first element applied to
> the first frame.

None of that is required. It is already done by mlt_properties_anim_*.
I designed it so that any property can be accessed via the new
animation getters, and it will work as before when not using keyframes
or with interpolation when a keyframed value is set on the property.
There are just some services like these pointed out by Janne that are
providing legacy, ad hoc keyframing. Every mutable property can be
upgraded to use anim including everything using mlt_geometry - it just
takes time and energy. My time and energy on this task is simply
post-phoned until I add a filter parameter animation timeline to
Shotcut.

> ~Brian
>
> ________________________________
> From: Dan Dennedy <d...@dennedy.org>
> To: Janne Liljeblad <janne.liljeb...@gmail.com>
> Cc: mlt-devel <mlt-devel@lists.sourceforge.net>
> Sent: Thursday, March 13, 2014 1:26 PM
> Subject: Re: [Mlt-devel] Creating versions of services "brightness" and
> "volume" with animated levels
>
> On Thu, Mar 13, 2014 at 1:46 AM, Janne Liljeblad <janne.liljeb...@gmail.com>
> wrote:
>
> Hi,
>
> I think we should do new versions of mlt services that use "start",
> "end" mechanics to achieve animated parameters. We should use the new
> animation framework to animate parameter values.
>
>
> Yes, of course.
>
>
> On Flowblade I have "brightness" and "volume" used as "multipart
> filters" which is a unnecessary added complication to application
> code. I'd be happy to remove code needed to do this and replace them
> with versions of services that support animated level values.
>
> Another question is that should the existing services be expanded or
> should new services be created. I think we should do new services
> called something like "brightness_a", "volume_a" etc. that use the new
> animation framework, these would be much simpler to use from
> applications. There may obivously be other considerations like
> increased library size.
>
>
> I am leaning towards using the existing services, adding a new property, and
> deprecating the older properties. I do not understand how new services would
> be easier to use in an application. It should be simply the choice of
> properties to use. The filter would ignore deprecated properties if a new
> property is used.
>
>
> If we think this is a good idea, and agree on the details, I can do a
> patch that does  "brightness" and "volume" and later work on other
> services.
>
> Janne
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
>
> _______________________________________________
> Mlt-devel mailing list
> Mlt-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mlt-devel
>
>



-- 
+-DRD-+

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to