On Fri, Sep 28, 2012 at 2:46 PM, Matthias Wenz <[email protected]> wrote: > Hi there, it's me again :-) > > I'm trying hard to get text-alignment to work with the Pango producer. > > Here's my current XML: > > <producer id="text-6" in="0" out="129"> > > <property name="mlt_service">pango</property> > <property name="markup"><i><u>Title here</u> > </i></property> > <property name="fgcolour">0x000000ff</property> > <property name="bgcolour">0x00000000</property> > <property name="family">Tahoma</property> > <property name="align">center</property> > <property name="size">96</property> > > </producer> > > From what I read from producer_pango.c and the yml-spec there should be a > property "align" which I do set e.g. to center the text - yet the text is > always left-aligned, no matter what I do. Am I missing out on something?
align is not relative to the frame; align is for multiple lines of text and is like left, right, or center justification (except full, which we have not exposed for some completely arbitrary reason). > I also got this transition to keep the producers output in place: > > <transition id="text-6-hold" in="13" out="129"> > > <property name="a_track">0</property> > <property name="b_track">3</property> > <property name="mlt_service">composite</property> > <property name="geometry">60/120:1800x180</property> > > </transition> > > Might something be wrong with this? yes, you need a composite transition or a filter that encapsulates it like dynamictext in order to control its position on screen. MLT lets you have images and videos with varying resolution and aspect in the same timeline, right? Well, think of pango producer as a simple text-to-image generator. It does not care what your MLT profile is; it just generates an image. Something else controls position and alignment relative to the output video frame. -- +-DRD-+ ------------------------------------------------------------------------------ How fast is your code? 3 out of 4 devs don\\\'t know how their code performs in production. Find out how slow your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219672;13503038;z? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ Mlt-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mlt-devel
