On Tue, Jun 12, 2012 at 6:35 PM, Brian Matherly <[email protected]> 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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mlt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to