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
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(
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
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
>>
>>
>>
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
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 );
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
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/
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
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
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
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
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
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
_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 (<
"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
_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é
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
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
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
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
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
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
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
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
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
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
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
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
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,
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,
31 matches
Mail list logo