On Mon, Oct 14, 2013 at 12:54 PM, Janne Liljeblad
<janne.liljeb...@gmail.com> wrote:
> Hello,
>
>
> I was adding watermark functionality to Flowblade and it worked fine.
> I used the following type of code:
>
> watermark = mlt.Filter(self.profile, "watermark")
> watermark.set("resource","/home/janne/watermark.png")
> self.tractor.attach(watermark)
>
> The problem was that the watermark disappeared every time I changed
> the length of the Playlist. Changing positions of clips had no effect.
> Is this a bug or should I just work around this?

watermark.set("composite.always_active", 1)

That property is documented in mlt_transition.h (watermark is a
transition wrapper), but yeah that is not exactly obvious.
P.S. When reporting something like this, it is useful to know that it
is not a problem with some other filter like "sepia."

> Also the filter_watermark.yml has no parameter "resource", instead it has:
>
> - identifier: argument
>
> for file/URL.

OK, but you can find this in other metadata as well. Services can take
a constructor argument, but there is no clear way to document that in
the metadata. Usually, there is a property like "resource" to back it
or to provide alternative than arg, but we do not want to necessarily
be redundant (but some metadata are)? I have not exactly decided what
to do here. Do you have a preference? Are you using it to generate UI?

>
> Regards,
>
> Janne
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
> _______________________________________________
> Mlt-devel mailing list
> Mlt-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mlt-devel



-- 
+-DRD-+

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to