Re: [Mlt-devel] How to add a text field with a given size at position
Brought to you by:
ddennedy,
lilo_booter
|
From: Dan D. <da...@de...> - 2012-06-13 06:22:41
|
On Tue, Jun 12, 2012 at 6:35 PM, Brian Matherly <pez...@ya...> wrote: > Matt, > > >>again a pretty basic question: >>How do I place a text field with a given size at a given position in my output? Best would be in mlt-xml. > > > A simple way to learn how to form XML is to use melt with the XML consumer. > > For example, run: > melt color:red -attach dynamictext:hello geometry="50%/50%:100%x100%:100" > And you will see a red frame with the text "hello" in it. That's becasuse the SDL consumer is the default for melt. > > If you want to see what XML would produce that, run: > melt color:red -attach dynamictext:hello geometry="50%/50%:100%x100%:100" -consumer xml:output.mlt > Adding the xml consumer will cause melt to dump the xml to file. Then, you can open the file to see how the properties were formed. > > To prove the xml is the correct input for MLT, just run: > melt output.mlt > and you will see the red frame with text again. good overview. thanks, Brian > Also, it is important to understand how the geometry property works. The format is: > X,Y:WxH[:mix] The usage of comma here is deprecated because in some locales it is the radix. Instead, one should use something other than . , ; - or %. Space works except not convenient on command line. The examples and comment above mlt_geometry_parse() use X/Y. > where X, Y, W, H are assumed to pixel units unless they have the suffix '%', > > ~Brian |