This happens because you have not specified a profile - so MLT makes up a profile based on your first producer. https://www.mltframework.org/docs/profiles/
An easy way to learn about profiles is to create a project with a tool like Kdenlive or Shotcut and then inspect the output. On Friday, October 9, 2020, 01:24:38 AM CDT, amindfv--- via Mlt-devel <mlt-devel@lists.sourceforge.net> wrote: Anyone have a solution for this? I keep running into this issue and I'm hoping it's a very small fix. On Sat, Sep 26, 2020 at 07:16:55PM -0400, amin...@mailbox.org wrote: > Given a project whose producers have different aspect ratios... > > <mlt> > <producer id="wide"> > <property name="resource">wide.mp4</property> > </producer> > <producer id="narrow"> > <property name="resource">narrow.mp4</property> > </producer> > <playlist> > <entry producer="wide" in="0" out="72"/> > <entry producer="narrow" in="0" out="72"/> > </playlist> > </mlt> > > ...and using the avformat consumer... > > melt foo.mlt -consumer avformat:foo.mp4 > > ...the width and height of the output video seem to often (not always! - > curious about this) be the w/h of the first producer in the playlist. The > other producers are scaled to fit the output width or height while preserving > their aspect ratios. > > But when I fix the output width and height, all the producers are stretched > to fit, not preserving their original aspect ratios: > > melt foo.mlt -consumer avformat:foo.mp4 width=1920 height=1080 > > How can I specify output width and height while preserving the producers' > aspect ratios? > > Thanks! > Tom
_______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel