Re: [Mlt-devel] Filter affine

2022-01-01 Thread José María García Pérez
I managed to write a pure C example, and I am getting something similar to what I get with NIm: // $ gcc ex02.c -I/usr/include/mlt-7 -lmlt-7 -o ex02 // Inspired by: https://stackoverflow.com/questions/62983626/how-to-compile-a-simple-mlt-example-in-c #include #include #include int main( int arg

Re: [Mlt-devel] Filter affine

2022-01-01 Thread Brian Matherly via Mlt-devel
The affine filter does not set any of the "transition.*" or "use_normalized" properties when it is initialized. You need to set them yourself:https://github.com/mltframework/mlt/blob/master/src/modules/plus/filter_affine.c#L157 In the absence of setting the "transition.*" properties, the encaps

Re: [Mlt-devel] Filter affine

2022-01-01 Thread Dan Dennedy
On Sat, Jan 1, 2022 at 8:10 AM José María García Pérez < josemaria.alk...@gmail.com> wrote: > I managed to write a pure C example, and I am getting something similar to > what I get with NIm: > But what you wrote in C is not the same as Nim. In Nim, you are setting filter properties, and in C you

Re: [Mlt-devel] Filter affine

2022-01-01 Thread José María García Pérez
I have tried without success the following aproaches: First attempt: 1. Creating an Affine transform: https://mltframework.org/plugins/TransitionAffine/ 2. Setting a new filter property named "transition" with the content of transition properties (I modify before hand the rotation value: var aff =

[Mlt-devel] Does affine transition.rotate_x work?

2022-01-01 Thread José María García Pérez
I tried the following: $ melt -proifle hdv_720_50p -consumer sdl2 +hello.txt -attach affine transition.rotate_x="0=0;100=340" I was expecting to get a rotation animation. ___ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.source

Re: [Mlt-devel] Does affine transition.rotate_x work?

2022-01-01 Thread Dan Dennedy
On Sat, Jan 1, 2022 at 2:20 PM José María García Pérez < josemaria.alk...@gmail.com> wrote: > I tried the following: > $ melt -proifle hdv_720_50p -consumer sdl2 +hello.txt -attach affine > transition.rotate_x="0=0;100=340" > > I was expecting to get a rotation animation. > > That property doe

Re: [Mlt-devel] Filter affine

2022-01-01 Thread José María García Pérez
melt example is working fine and so does the C version with the line you added (that was the piece that wasn't very clear to me about how to do it in this case, so thanks a lot). Regarding Nim, the problem was with the way I was creating the filter (I was sending an empty string rather than NULL i