<?xml version="1.0" ?>
<mlt>
<profile description="DV/DVD NTSC"
display_aspect_den="600" display_aspect_num="1024"
frame_rate_den="1" frame_rate_num="30"
height="600" width="1024"/>
<multitrack>
<playlist id="Background Track">
<producer in="0" length="5000" novdpau="1">
<property name="mlt_service">color</property>
</producer>
</playlist>
<playlist id="Track 2">
<blank length="5"/>
<producer in="1" out="100">
<property name="resource">output.mp4</property>
</producer>
<producer in="600" out="600">
<property name="resource">output.mp4</property>
</producer>
</playlist>
</multitrack>
</mlt>
This file may appear daunting at first. But actually it contains
some obvious pieces of information in a structured way. The file
lies inside the <mlt>...</mlt> tags. There are just two things inside:
<producer in="600" out="1500"> <property name="resource">output.mp4</property> </producer>and we have frame rate 30, we mean "play output.mp4 from 20 sec to 50 sec". It is important to understand that the 20 sec is from the start of output.mp4, and not of the current video!
//This is a sample file //to showcase various features of //the new language. | 1 |
v vid: DSCN2305.MOV 600 b vid2: DSCN2303.MOV 600 p red: red.svg | 2 |
----------- | 3 |
start=0: vid[in] | 4 |
redenters=start+50: red[in,x=20,y=10,w=30,h=30] | 5 |
redwillmove=redenters+100 redwillmove-50: red[w=32,h=32] redwillmove: red[>] | 6 |
aha= redwillmove+150: red[y=60]
vid[out]
vid2[in]
| 7 |
silly= aha+250: red[x=10] | 8 |
last = silly+300
last: red[out]
vid2[out]
| 9 |
-------- | 10 |
end: 299 | 11 |
Explanation of the code:
// and continues
till the end of the line.start to be the
number 0. Also at this frame we want asset vid to
appear on screen.