Brian,
It works based on number of characters in the text.
When I use geometry as 0/0:50%x100%:100, it does not place text at
0(zero'th) pixel if the
- text has less number of characters (say 4 characters)
- text alignment is right
What I need is, I need to place text at any position on the frame
with any number of characters and with center, left and right alignments.
I was trying to specify X position in geometry for center alignment as
follows
- *X = Xposition - ( frameWidth - textWidth ) / 2*
- Y = 0
- W = 100%
- H = 100%
For example, if
Xposition = 0 ( text should be placed at 0 (zero'th) pixel)
frameWidth = 854
textWidth = 285
Now, X will be -284 and geometry will be *-284/0:100%x100%*
If I want place the same text with center alignment at 100 th pixel (
Xposition = 100 ) on the frame then geometry will be *-184/0:100%x100%*
For right alignment, *X = Xposition - ( frameWidth - textWidth )*
*
*
If I could get X value using these formulas, I think text is being placed
close to required position.
For this the thing what I need is, textWidth and it varies from number of
characters.
Is there any way to get value of text width ?
Thank you,
On Tue, Dec 25, 2012 at 1:47 AM, Brian Matherly <[email protected]> wrote:
> >Let me first thank you for fixing this issue.
> >
> >Now with dynamictext filter text alignment works fine and there is one
> more issue which I am facing
> > * When I use geometry as <property
> name="geometry">0%/50%:100%/100%</property>
> > * Now the position of X is not being placed at 0(zero'th) pixel on
> the frame instead the entire text is placed to the center of the frame
> > * Is it possible to place text at specified position using geometry
> and align it with center or right ?
> > * I am attaching a couple of images expecting.png and result.png
>
> There is the definition for the geometry:
> [frame=]X/Y:WxH[:mix][!][;[frame=]X/Y:WxH[:mix][!]]*
> X, Y, W and H can have trailing % chars to indicate percentage of
> normalised size
>
> For example, this will center the text on the left side of the screen:
> 0/0:50%x100%:100
> I think that is close to what you are looking for.
>
> Whem I'm feeling lazy, I just open KDENLIVE, slap the dynamictext effect
> on a color clip, click and drag the geometry in the monitor view, and then
> grab the geometry value in the resulting project file.
>
> ~Brian
>
--
-Satya.
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Mlt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mlt-devel