You can use a tool like Shotcut and study it’s XML output to understand the properties for a filter. The affine filter is called Size, Position & Rotate. To get the XML use File > Save.
On Thu, Dec 30, 2021 at 9:47 AM José María García Pérez < josemaria.alk...@gmail.com> wrote: > I don't understand how to use the affine filter: > https://www.mltframework.org/plugins/FilterAffine/#transition > > Could you post a basic C example using it? It would be nice to cover both > the static and an animation case. > > I had the following example about using a filter using Nim: > import mlt, os > var f = initFactory() > > # Create the default consumer > var p = newProfile() > var sdl = newFactoryConsumer(p, "sdl2") > > # Create via the default producer > var clip = newFactoryProducer(p, resource = > "avformat:/home/jose/Descargas/sygic.mp4") > > var filter = newFactoryFilter(p, "frei0r.pixeliz0r") > filter["BlockSizeX"] = 0.1 > filter["BlockSizeY"] = 0.2 > > clip.attach( filter ) > clip > sdl > > # Start the consumer > sdl.start > > while not sdl.stopped: > sleep(1) > _______________________________________________ > Mlt-devel mailing list > Mlt-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mlt-devel >
_______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel