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 > are there any chance to avoid such scaling and provide pixel-to-pixel > compositing. pixel-to-pixel precision with a profile that has non-square pixel aspect ratio requires that you make the graphics with the same pixel aspect ratio and set the force_aspect_ratio property on the producer. Obviously, the square pixel ATSC HD profiles are much easier to work with. :) > 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. -- +-DRD-+ ------------------------------------------------------------------------------ RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 _______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel