2012/1/14 Maksym Veremeyenko <ve...@m1stereo.tv>: > 14.01.12 00:25, Dan Dennedy написав(ла): > >> 2012/1/13 Maksym Veremeyenko<ve...@m1stereo.tv>: >>> >>> Hi, >>> >>> i am trying to play a mlt files with video on /logo/ overlay: >>> >>> <?xml version="1.0" ?> >>> <mlt> >>> <tractor id="tractor0"> >>> <multitrack> >>> >>> <playlist id="AV"> >>> <producer id="AV0" in="0.0" out="1499.0"> >>> <property >>> >>> name="resource">/home/studio/Videos/file_titling_test/I0009618_test.avi</property> >>> </producer> >>> </playlist> >>> >>> <playlist id="G0"> >>> <producer id="p1" in="0.0" out="1499.0"> >>> <property >>> >>> name="resource">/home/studio/Videos/file_titling_test/test_image_13.png</property> >> >> >> The image producers assume the image has square pixels because that is >> most typical. However, if your images are 720x576 or you simply want >> to prevent scaling for sample aspect ratio compensation, then you need >> to override the force_aspect_ratio property, e.g. >> force_aspect_ratio=@16/15 >> >> The '@' prefix to the property value tells it to do very simple >> expression evaluation when fetching the property as a numeric type. >> >>> </producer> >>> </playlist> >>> >>> </multitrack> >>> >>> <transition in="0.0" out="150.0"> >>> <property name="mlt_service">composite</property> >>> <property name="a_track">0</property> >>> <property name="b_track">1</property> >>> <property name="progressive">1</property> >>> <property name="geometry">0=0%,0%:100%x100%:100; >>> -1=0%,0%:100%x100%:100;</property> >>> <property name="halign">centre</property> >>> <property name="valign">centre</property> >>> <property name="distort">0</property> >>> <property name="fill">1</property> >> >> >> fill=1 tells it to scale up; otherwise, the default is only to scale >> down to fit within the geometry rectangle. Sorry this is not >> documented in the service metadata. We ported some docs to metadata >> format, but still have not fully updated them. >> >>> </transition> >>> >>> </tractor> >>> </mlt> >>> >>> but graphics from test_image_13.png been always scaled to dimensions >>> defined >>> in profile. >> >> >> remove fill=1 > > Thanks, that helps! > > > [...] > >>> for images it would be ease to calculate geometry scaling, but for pango >>> i >>> have no idea how to do this. >> >> >> pango generates images with square pixels; however, like pixbuf, you >> can force_aspect_ratio (pixel aspect) to the same as the project if >> you do not care about a (subtle?) distortion in the display aspect >> ratio of the text. I have used this trick in the past on SD PAL, but >> it will not work on anamorphic widescreen. >> > > i could be wrong, but i have a suspicious that pango do not support > force_aspect_ratio property, so i attached a patch.
When I did this in the past, it was in conjunction with the watermark filter where I had set the producer.aspect_ratio property. I will be nice to add a force_aspect_ratio property for consistency with pixbuf and avformat producers. > PS > where is located a code that perform *composite* of all tracks? That does not exist. It does not fit with the architecture. It has a way to have a transition between tracks for all producers on the tracks - something we call "always_active" [1]. This works for the audio 'mix' transition as kdenlive uses it. It is supposed to work for the composite transition as well. You have to set the property always_active=1 on the transition. [1] http://www.mltframework.org/doxygen/properties.html -- +-DRD-+ ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel