Hello

I'm not sure that's what you want to end up with but here is an example with
- your three producers for bike.png, white.png and black.png
- an entry for each producer
- each entry is passed through a brightness filter to alter the alpha
channel.
- I'm setting up a multitrack which comprises of
  * one multitrack with two tracks : one for bike, one for white, and a
frei0r.dodge transition btw them
  * a track with black
- there's a composite transition between the bike/white multitrack and the
black track

<mlt LC_NUMERIC="en_US.UTF-8">
  <producer id="1">
    <property name="resource">bike.png</property>
  </producer>
  <producer id="2">
    <property name="resource">black.png</property>
  </producer>
  <producer id="3">
    <property name="resource">white.png</property>
  </producer>
  <tractor>
    <multitrack>
      <tractor>
        <multitrack>
          <tractor>
            <playlist>
              <entry producer="1" in="0" out="499">
                <filter>
                  <property name="mlt_service">brightness</property>
                  <property name="level">0.5</property>
                  <property name="alpha">-1</property>
                </filter>
              </entry>
            </playlist>
          </tractor>
          <tractor>
            <playlist>
              <entry producer="3" in="0" out="499">
                <filter>
                  <property name="mlt_service">brightness</property>
                  <property name="level">0.5</property>
                  <property name="alpha">-1</property>
                </filter>
              </entry>
            </playlist>
          </tractor>
        </multitrack>
        <transition>
          <property name="mlt_service">frei0r.dodge</property>
          <property name="a_track">0</property>
          <property name="b_track">1</property>
        </transition>
      </tractor>
      <tractor>
        <playlist>
          <entry producer="2" in="0" out="499">
            <filter>
              <property name="mlt_service">brightness</property>
              <property name="level">0.5</property>
              <property name="alpha">-1</property>
            </filter>
          </entry>
        </playlist>
      </tractor>
    </multitrack>
    <transition>
      <property name="mlt_service">composite</property>
      <property name="a_track">0</property>
      <property name="b_track">1</property>
    </transition>
  </tractor>
</mlt>

To summarize :
- you can attach a filter directly to an entry with
<entry><filter></filter></entry>
- to apply a transition to two tracks use
<multitrack><tractor><playlist></playlist></tractor><tractor>
<playlist></playlist></tractor></multitrack><transition></transition>

Hope it helps

Geoffroy


2016-05-02 19:13 GMT+02:00 Nahuel D <ndefo...@machinalis.com>:

> Hi,
> we're trying to create blends similar to this CSS code in MLT XML file:
>
> .lark {
>   -webkit-filter: contrast(0.9);
>           filter: contrast(0.9); }
>
>   .lark::after {
>     background: rgba(242, 242, 242, 0.8);
>     mix-blend-mode: darken; }
>
>   .lark::before {
>     background: #22253f;
>     mix-blend-mode: color-dodge;
>   }
>
> This requires a applying a blend mode to the result of another blend mode.
> We've played with Flowblade, but the resulting XML does not seem to be
> applying the blends in a chain.
> We need to apply a blend mode to the result of a previous blend. Can we
> achieve this in a single XML file?
> We could pre-process each clip but this would require 3 runs (or maybe 2),
> slowing things down.
>
> We've been thinking that if we could take the result of a tractor and use
> it as producer/source for another blend, this could solve our problem.
>
> This a graphical idea of what we'd like to create with MLT XML:
>
> https://drive.google.com/file/d/0B_iCdl50i5rzcmNxbHNub1EzMHM/view?usp=sharing
>
> Thank You in Advance
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Mlt-devel mailing list
> Mlt-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mlt-devel
>
>
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to