Re: [Mlt-devel] Stacking videos vertically

2022-01-07 Thread José María García Pérez
Thanks Brian, This is what I did in the first instance. And this is the approach that I would follow if I needed to learn how to use a particular filter. I will start from what I would like to achieve (globally speaking), so you better understand my use case: I really like a piece of software (no

Re: [Mlt-devel] Stacking videos vertically

2022-01-06 Thread Brian Matherly via Mlt-devel
For this scenario (and any like it), I strongly recommend to not start with code. Even for my own coding projects I do not start with code. Start with Shotcut or Kdenlive and use the tool to visually achieve what you want. After you get the result that you are looking for in the graphical tool,

Re: [Mlt-devel] Stacking videos vertically

2022-01-05 Thread José María García Pérez
I managed to do it thanks to wikipedia where it clearly explains the difference between SAR, DAR and PAR. https://en.wikipedia.org/wiki/Pixel_aspect_ratio For the record, in case this can help others: SAR= 720/360 = 2 (calculated with the resolution) DAR=16/9 (how we want the image to be displayed

Re: [Mlt-devel] Stacking videos vertically

2022-01-05 Thread José María García Pérez
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 consumer. With this: profile.setWidth(width1) profile.setHeight(height1 + height2) profile.setWidth(profile.width) profile.setHeight(profile.height) pr

Re: [Mlt-devel] Stacking videos vertically

2022-01-05 Thread Péter Hudoba
Hi! I am a 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é María García Pérez ezt írta (időpont: 2022. jan. 5.

Re: [Mlt-devel] Stacking videos vertically

2022-01-05 Thread José María García Pérez
Honestly I don't understand that comment. The documentation is clearly insufficient. The framework design just gives you a glimpse of the ideas; it doesn't even mention the word profile https://mltframework.org/docs/framework/. The demos are more oriented to the usage of melt. melt.c is not the be

Re: [Mlt-devel] Stacking videos vertically

2022-01-05 Thread Dan Dennedy
I am not going to help 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: video1 (with profile p) > 3. Create

Re: [Mlt-devel] Stacking videos vertically

2022-01-05 Thread José María García Pérez
Could you explain a bit further? I mean: 1. Create profile: p 2. Create producer: video1 (with profile p) 3. Create producer: video2 (with profile p) 4. Read the frame sizes 5. Create a new profile with the size of both videos stacked vertically 6. Create the consumer with that new profile So far

Re: [Mlt-devel] Stacking videos vertically

2022-01-05 Thread Dan Dennedy
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 vertically? > > For example: >video1 >- >video2 > > so that I can later scale it and move it around in the profile. > > Right now I am using a

[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