Hi all,
I’m studying building MLT files from code and learning how shotcut works. It’s very cool.
In general the structure is clear and sensible.
One area I don’t understand is this: if I add a video to a timeline and have a fade in/out, within the <tractor>
node will be <transition>
nodes:
<transition id="transition0">
<property name="a_track">0</property>
<property name="b_track">1</property>
<property name="mlt_service">mix</property>
<property name="always_active">1</property>
<property name="sum">1</property>
</transition>
<transition id="transition1">
<property name="a_track">0</property>
<property name="b_track">1</property>
<property name="version">0.1</property>
<property name="mlt_service">frei0r.cairoblend</property>
<property name="disable">1</property>
</transition>
This confuses me because the <chain>
node has the filters clearly on it and they make sense.
Removing the <transition>
nodes stops the visual fade from occurring, but doesn’t stop the audio fade!
I’m pretty sure the a_track
and b_track
refer to a zero-based array index into the tracks, e.g. a_track=0
means “background” and _track=1
means playlist0
in this example:
<tractor id="tractor0" title="Shotcut version 24.11.17" in="00:00:00.000" out="01:04:55.560">
<property name="shotcut">1</property>
<property name="shotcut:projectAudioChannels">2</property>
<property name="shotcut:projectFolder">1</property>
<track producer="background"/>
<track producer="playlist0"/>
<transition id="transition0">
<property name="a_track">0</property>
<property name="b_track">1</property>
...
but can anyone help my understanding of how the transition nodes fit in?
Thanks!
Ellers