On Sun, May 10, 2020 at 1:10 AM Mark Polesky via Mlt-devel < mlt-devel@lists.sourceforge.net> wrote:
> Hi, > > I asked this question on stackoverflow a few days ago. Thought I'd hit up > the mailing list to see if I might get a bite here: > https://stackoverflow.com/questions/61628423/ > > ===== > > Possibly related, but separate question: > > Let's say I have a file 'included.mlt': > > <producer mlt_service="color" resource="blue" in="0" out="0"/> > > If I want to include that file inside another, none of the usual methods > seem to work: > > 1) XInclude > > <?xml version="1.0" encoding="utf-8"?> > <mlt xmlns:xi="http://www.w3.org/2001/XInclude"> > <profile width="428" height="240"/> > <xi:include href="included.mlt"/> > </mlt> > > Responds with: > Failed to load "includer.mlt" > > 2) external general entity > > <?xml version="1.0" encoding="utf-8"?> > <!DOCTYPE mlt SYSTEM "/usr/share/mlt/xml/mlt-xml.dtd" [ > <!ENTITY included SYSTEM "included.mlt"> > ]> > <mlt> > <profile width="428" height="240"/> > &included; > </mlt> > > Responds with: > [producer_xml] parse fatal: Entity 'included' failed to parse > row: 7 col: 13 > Failed to load "includer.mlt" > > Is there any way to do it? > > Thanks > > <producer resource="included.mlt"/> But it will not work with a minimal MLT XML containing only a <producer> for some reason. It must include that producer in a <playlist> or <tractor>. Basically, if you create that included.mlt using the following it works: melt color:blue out=555 -consumer xml:included.mlt Also, you need to be aware that mixing frame rates between the XML files does not work. You can learn from how popular open source MLT apps are doing things if they save or export MLT XML. In Shotcut this is made available through File > Open MLT XML as Clip.
_______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel