[Mlt-devel] Compiling basic C program

2021-11-09 Thread José María García Pérez
I have the following example: ```c #include #include #include int main( int argc, char *argv[] ) { // Initialise the factory if ( mlt_factory_init( NULL ) != 0 ) { // Create the default consumer mlt_consumer hello = mlt_factory_consumer( NULL, "sdl2", NULL ); // Create via the default producer

Re: [Mlt-devel] Compiling basic C program

2021-11-13 Thread José María García Pérez
and post the > stack trace. > > ~Brian > > > On Tuesday, November 9, 2021, 10:31:28 AM CST, José María García Pérez < > josemaria.alk...@gmail.com> wrote: > > > I have the following example: > ```c > #include > #include > #include > > int main(

[Mlt-devel] C lang examples

2021-11-13 Thread José María García Pérez
I am trying to create some bindings for MLT for the Nim programming language. Is there any place with many C lang examples? Cheers Jose M. ___ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel

Re: [Mlt-devel] C lang examples

2021-11-13 Thread José María García Pérez
st option for C >> examples. >> >> I do not have any experience writing language bindings. But I wonder if >> it would be easiest to look at the SWIG output for python and then try to >> model your bindings after that. >> >> ~Brian >> >> >>

[Mlt-devel] Nim bindings

2021-11-20 Thread José María García Pérez
I implemented some examples in the Nim programming language. Nim compiles into C (among other languages). I like that it gives you the feeling of python despite it is using actual types. The code looks as follows: ``` import mlt, os var f = initFactory() # Create the default consumer var p = new

[Mlt-devel] Problem with mlt_consumer_is_stopped

2021-11-20 Thread José María García Pérez
With the following example: ```c #include #include #include int main( int argc, char *argv[] ) { // Initialise the factory if ( mlt_factory_init( NULL ) != 0 ) { mlt_profile p = mlt_profile_init(NULL); // Create the default consumer mlt_consumer hello = mlt_factory_consumer( p, "sdl2", NULL );

Re: [Mlt-devel] Nim bindings

2021-11-20 Thread José María García Pérez
r sharing that. Read more below... > > On Sat, Nov 20, 2021 at 8:54 AM José María García Pérez < > josemaria.alk...@gmail.com> wrote: > >> I implemented some examples in the Nim programming language. Nim compiles >> into C (among other languages). >> >> I li

[Mlt-devel] pixbuf

2021-12-28 Thread José María García Pérez
I am playing with pixbuf, but the colours I get are off: https://i.imgur.com/DhuBrir.png while I was expecting: https://i.imgur.com/p8yTx2W.jpg The code that I am using (in Nim, but readable): # nim c -r --threads:on ex02_show_red_window import mlt import os var f:Repository = initFactory("/usr/

Re: [Mlt-devel] pixbuf

2021-12-28 Thread José María García Pérez
roducer class as an argument you > bypass the loader producer, which is special. > > > On Tue, Dec 28, 2021 at 11:01 AM José María García Pérez < > josemaria.alk...@gmail.com> wrote: > >> I am playing with pixbuf, but the colours I get are off: >> https://i.i

Re: [Mlt-devel] pixbuf

2021-12-28 Thread José María García Pérez
And in order to load .svg files? How should I do it? El mar, 28 dic 2021 a las 21:53, José María García Pérez (< josemaria.alk...@gmail.com>) escribió: > So, if I get it, I should just use "loader" as the producer for most (all) > the cases. Is that correct? > > El

Re: [Mlt-devel] pixbuf

2021-12-28 Thread José María García Pérez
ull, > "./resources/pexels-pixabay-97082.svg") > > The loader will figure out the best producer based on the file type. > > The heuristic is here: > > https://github.com/mltframework/mlt/blob/master/src/modules/core/loader.dict > > ~Brian > > > On Tue

[Mlt-devel] Filter affine

2021-12-30 Thread José María García Pérez
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

Re: [Mlt-devel] Filter affine

2021-12-30 Thread José María García Pérez
Do you spot something obvious that might be wrong? El jue, 30 dic 2021 a las 18:52, Dan Dennedy () escribió: > 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

Re: [Mlt-devel] Filter affine

2021-12-30 Thread José María García Pérez
t; while not sdl.stopped: > sleep(1) > > Do you spot something obvious that might be wrong? > > El jue, 30 dic 2021 a las 18:52, Dan Dennedy () escribió: > > You can use a tool like Shotcut and study it’s XML output to understand > the properties for a filter. The affine filter

Re: [Mlt-devel] Filter affine

2021-12-31 Thread José María García Pérez
_profile I am not seeing neither "transition" nor "use_normalised" keys that I would expect in accordance with https://www.mltframework.org/plugins/FilterAffine/#transition. Any clue about what might be going on? El jue, 30 dic 2021 a las 19:53, José María García Pérez (<

Re: [Mlt-devel] Filter affine

2022-01-01 Thread José María García Pérez
"transition" nor "use_normalised". What do I need to do in C language to make them appear? Kind regards, José M. El vie, 31 dic 2021 a las 9:24, José María García Pérez (< josemaria.alk...@gmail.com>) escribió: > I think that my problem is that I am not handling prope

Re: [Mlt-devel] Filter affine

2022-01-01 Thread José María García Pérez
_normalized" property, the properties > object will return "0" (false): > > https://github.com/mltframework/mlt/blob/9c3bb7d997a78fed3142c2ef95988623d21dce15/src/modules/plus/filter_affine.c#L98 > > ~Brian > > > > On Saturday, January 1, 2022, 10:10:25 AM CST, José

[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] Filter affine

2022-01-01 Thread José María García Pérez
NULL in the third parameter). Thank you both for your kind support. El sáb, 1 ene 2022 a las 19:24, Dan Dennedy () escribió: > > > 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, an

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

2022-01-02 Thread José María García Pérez
sumer sdl2 +hello.txt -attach affine transition.keyed=1 transition.rotate_x="0=1;100=10" I hope this might help others too. El sáb, 1 ene 2022 a las 23:43, Dan Dennedy () escribió: > > > On Sat, Jan 1, 2022 at 2:20 PM José María García Pérez < > josemaria.alk...@gmail.com

[Mlt-devel] Getting producer's width, height, aspect ratio

2022-01-04 Thread José María García Pérez
How can I get the producer's width and height using the C API? ___ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel

Re: [Mlt-devel] Getting producer's width, height, aspect ratio

2022-01-04 Thread José María García Pérez
I manage to do it by getting the frame from a service and later by getting the image from a frame. El mar, 4 ene 2022 a las 18:58, José María García Pérez (< josemaria.alk...@gmail.com>) escribió: > How can I get the producer's width and height u

[Mlt-devel] Stacking videos vertically

2022-01-05 Thread José María García Pérez
What is the proper way of stacking videos vertically? For example: video1 - video2 so that I can later scale it and move it around in the profile. Right now I am using affine (scaling down and then positioning it vertically). But the result is something like: video1 | black

Re: [Mlt-devel] Stacking videos vertically

2022-01-05 Thread José María García Pérez
sdl.run The result is: https://i.imgur.com/eESDdJg.jpg El mié, 5 ene 2022 a las 18:28, Dan Dennedy () escribió: > > On Wed, Jan 5, 2022 at 9:22 AM José María García Pérez < > josemaria.alk...@gmail.com> wrote: > >> What is the proper way of stacking videos vertic

Re: [Mlt-devel] Stacking videos vertically

2022-01-05 Thread José María García Pérez
further. You need to learn more outside of the code. > > On Wed, Jan 5, 2022 at 11:06 AM José María García Pérez < > josemaria.alk...@gmail.com> wrote: > >> Could you explain a bit further? >> >> I mean: >> 1. Create profile: p >> 2. Create producer

Re: [Mlt-devel] Stacking videos vertically

2022-01-05 Thread José María García Pérez
noob, but I think the problem: if you use "hdv_720_50p" profile in > your main function and create a consumer with that profile, you won't have > a big enough consumer. > https://www.mltframework.org/docs/profiles/ > > Best regards, > Hudi > > Jos

Re: [Mlt-devel] Stacking videos vertically

2022-01-05 Thread José María García Pérez
ene 2022 a las 22:13, José María García Pérez (< josemaria.alk...@gmail.com>) escribió: > Thanks Péter. > > I think my issue is more related with the "aspect ratio" and/or "display > ratio" of the profile, producer (the video itself) and the co

[Mlt-devel] Consumer as producer

2022-01-06 Thread José María García Pérez
Right now, when I stack videos vertically, I output the Tractor and the Profile: "tuple[tr:Tractor; p:Profile] " proc stackVertically*( v1,v2:Producer ):tuple[tr:Tractor; p:Profile] Later I apply the returned profile to the consumer: # Call the function to stack vertically two videos. # The tracto

Re: [Mlt-devel] Stacking videos vertically

2022-01-07 Thread José María García Pérez
raphical > tool, examine the resulting MLT file to learn about how various properties > interact. > > ~Brian > > > On Wednesday, January 5, 2022, 04:44:33 PM CST, José María García Pérez < > josemaria.alk...@gmail.com> wrote: > > > I managed to do it thanks to

Re: [Mlt-devel] Consumer as producer

2022-01-07 Thread José María García Pérez
gt; non-standard profile will work for you. But this is uncommon in my > experience. > > ~Brian > > > On Thursday, January 6, 2022, 03:53:40 AM CST, José María García Pérez < > josemaria.alk...@gmail.com> wrote: > > > Right now, when I stack videos vertically,

Re: [Mlt-devel] Consumer as producer

2022-01-08 Thread José María García Pérez
You are right for sure. I will try to see if I can do the same without changing the profile. GStreamer would be a better fit for sure, and I tried, but the bindings weren't mature enough at that time. I may check again. Thank you all for your support and patience. El sáb, 8 ene 2022 a las 6:23,