]> git.sesse.net Git - mlt/commitdiff
Add mlt_pango_keyframes demo.
authorDan Dennedy <dan@dennedy.org>
Tue, 5 Apr 2011 00:16:00 +0000 (17:16 -0700)
committerDan Dennedy <dan@dennedy.org>
Tue, 5 Apr 2011 00:16:00 +0000 (17:16 -0700)
demo/README
demo/demo.ini
demo/mlt_pango_keyframes [new file with mode: 0644]
demo/pango_keyframes.mpl [new file with mode: 0644]

index 1dab2e87288c7c50eefee3552802b2568282d317..56dcd820402615f2d2e1f3feabb3f2f5005be279 100644 (file)
@@ -215,3 +215,14 @@ Ticker tape
        the compositor when viewed on an analog monitor using a DV or BlueFish444
        consumer. The demo also shows the potientional for using and extending the
        existing set of services for a full blown news ticker implementation.
+
+Pango Keyframed Markup
+
+       You can create timed text and subtitles using a .mpl file, which is a
+       properties format file. A properties file contains key=value pairs on
+       separate lines. For .mpl the key is a frame number and the value is
+       Pango Markup Language. A tilde is interpreted as a new line. This
+       example also demonstrates using the watermark and the alignment
+       properties of its encapsulated composite transition where halign
+       is the horizontal, valign is the vertical, c is for center, and m
+       is for middle.
index 9d3fe24605830d9deaeca028c64d5896b03da897..4e7f7b933c5167eb598602a12960ab59e9935cef 100644 (file)
@@ -27,3 +27,4 @@ mlt_ticker                                    Ticker tape                                                     clip1.dv
 mlt_attributes                         Attributes                                                      clip1.dv
 mlt_slideshow_black                    Composite slideshow                                     photos
 mlt_slideshow2                         Ken Burns slideshow                                     photos
+mlt_pango_keyframes                    Pango Keyframed Markup                          pango_keyframes.mpl
diff --git a/demo/mlt_pango_keyframes b/demo/mlt_pango_keyframes
new file mode 100644 (file)
index 0000000..b6f7a24
--- /dev/null
@@ -0,0 +1,4 @@
+melt \
+color:#03CF0 \
+-filter watermark:pango_keyframes.mpl composite.halign=c composite.valign=m \
+$*
diff --git a/demo/pango_keyframes.mpl b/demo/pango_keyframes.mpl
new file mode 100644 (file)
index 0000000..09bf8f0
--- /dev/null
@@ -0,0 +1,4 @@
+0=<b>Hello</b>
+40=
+50=<i>World</i>~<small>the end</small>
+90=