Re: [Mlt-devel] Types of frei0r plugins useable with MLT/MELT

2024-07-05 Thread Brian Matherly via Mlt-devel
I guess this was answered on the frei0r mailing list. But you can see the list here: https://www.mltframework.org/plugins/PluginsTransitions/ On Thursday, July 4, 2024 at 11:25:34 AM CDT, Erik Beck wrote: Hi all, What frei0r plugin types are usable in mlt?  Just filters (one input, o

Re: [Mlt-devel] Problem with sound when exporting playlist with blanks

2023-07-24 Thread Brian Matherly via Mlt-devel
Yeah. That is a good point. You would need to add a transition so that the transparent is blended with the red. I guess it is not a perfect work around. ~Brian On Monday, July 24, 2023 at 12:17:45 AM CDT, Rickard Lindberg wrote: Hmm. Do I need to add some kind of transition for the t

Re: [Mlt-devel] Problem with sound when exporting playlist with blanks

2023-07-22 Thread Brian Matherly via Mlt-devel
> mlt-melt color:red in=0 out=25 -blank 25 color:blue in=0 out=25 -consumer > avformat target=/tmp/export.mp4 Thanks for the example command. I reproduce this and I confirm it is a bug. I have filed it here:https://github.com/mltframework/mlt/issues/931 As a workaround, you can use transparent

Re: [Mlt-devel] Field order broken on rendering

2023-07-22 Thread Brian Matherly via Mlt-devel
Here are some initial comments: Since mlt_tractor_pass_properties only operates on frames, maybe it should be a member of mlt_frame? mlt_tractor_pass_properties should probably have a more descriptive name. Which properties specifically does it pass? Could we convert the function to a single cal

Re: [Mlt-devel] Problem with sound when exporting playlist with blanks

2023-07-22 Thread Brian Matherly via Mlt-devel
The normalizing filters are intended to be attached to the individual producers, not the playlist itself. It isn't the intention for the programmer to manually add the normalizers. They are added by the factory when the "service:resource" notation us used (as you use in your example code). >Fro

Re: [Mlt-devel] Field order broken on rendering

2023-07-20 Thread Brian Matherly via Mlt-devel
The cairoblend transition has an optimization that if the b frame is opaque, it will never request the a frame imagehttps://github.com/mltframework/mlt/blob/master/src/modules/frei0r/transition_frei0r.c#L61 When this optimization is triggered, get_frame is never called on the a frame. As a resu

Re: [Mlt-devel] Problem with sound when exporting playlist with blanks

2023-07-20 Thread Brian Matherly via Mlt-devel
Your MLT is over 2 years old. Can you try with a newer version? Also, it would be helpful to reproduce with a melt command so that others can easily recreate the problem. ~Brian On Thursday, July 20, 2023 at 03:00:45 PM CDT, Rickard Lindberg wrote: Hi, I'm having trouble exporting a

Re: [Mlt-devel] Fwd: Bug#1038506: libmlt7: Contains a plugin for an obsolete version of SDL

2023-06-24 Thread Brian Matherly via Mlt-devel
If you want to disable SDL1, the packager can add "-DMOD_SDL1=OFF" to their cmake call.This is how Shotcut does it: https://github.com/mltframework/shotcut/blob/master/scripts/build-shotcut.sh#L766C161-L766C175 You should be asking the dependency packages if they are using the SDL1 module. From

Re: [Mlt-devel] Need guidance in implementing mlt

2023-01-22 Thread Brian Matherly via Mlt-devel
> Currently what I am thinking is of using swig for the code conversion that >would change my java code to c/c++ code that mlt will use. I hope you mean the other way around - make Java bindings for MLT so that you Java application can use it. MLT already has Java bindings using SWIG: https://g

Re: [Mlt-devel] optimizing MLT's track compositing

2022-09-04 Thread Brian Matherly via Mlt-devel
> 1. identify all YUV only services > 2. convert some of these to also handle RGB(A) I am willing to participate in some of these. In particular, if someone identifies a service that is causing extra conversions, I can work on updating it to support RGB/RGBA. > 3. find suitable replacements for

Re: [Mlt-devel] optimizing MLT's track compositing

2022-09-03 Thread Brian Matherly via Mlt-devel
Thanks for investigating this topic. Here are some comments from me: 1) I support an attempt to reduce unnecessary image format conversions. Your focus is on track compositing. But it would also be good if we could find a general pattern that would work for filters as well. Some filters can oper

Re: [Mlt-devel] Have added an SR filter, but exported video can be incorrect

2022-05-02 Thread Brian Matherly via Mlt-devel
I think you will need to give more information about what you are trying to accomplish. I do not understand why you would make a filter to double the dimensions of the image. In MLT, the consumer expects to receive the image size that it has requested. The producer has normalize filters (like r

Re: [Mlt-devel] Consumer as producer

2022-01-07 Thread Brian Matherly via Mlt-devel
> For sure this is due to my poor understanding of profile's behavior. It is also due to your low understanding of the MLT framework in general. Studying the XML is not just to learn the properties of a filter. It also helps you understand the coordination of MLT framework services. You are work

Re: [Mlt-devel] Consumer as producer

2022-01-06 Thread Brian Matherly via Mlt-devel
I would suggest: 1) Create a producer to open V1 (it does not matter the profile)2) Query V1 for the size3) Close V1 (delete the producer)4) Create a producer to open V2 (it does not matter the profile)5) Query V2 for the size6) Close V2(delete the producer)7) Calculate the profile that you wan

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] 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

2021-12-30 Thread Brian Matherly via Mlt-devel
> My first attempt wasn't very successful What result did you expect, and what was the actual result? On Thursday, December 30, 2021, 12:28:42 PM CST, José María García Pérez wrote: I wasn't aware about Shotcut doing so. Good to know. My first attempt wasn't very successful. I did the f

Re: [Mlt-devel] pixbuf

2021-12-28 Thread Brian Matherly via Mlt-devel
var pro:Producer = newFactoryProducer(p, null, "./resources/pexels-pixabay-97082.jpg") var pro:Producer = newFactoryProducer(p, null, "./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/mltframe

Re: [Mlt-devel] C lang examples

2021-11-13 Thread Brian Matherly via Mlt-devel
I think you have been reading the documentation, so I suppose you have already seen these pages:https://www.mltframework.org/docs/scriptbindings/ https://www.mltframework.org/docs/codeexamples/ I think the melt CLI application is probably your best option for C examples. I do not have any experi

Re: [Mlt-devel] Compiling basic C program

2021-11-13 Thread Brian Matherly via Mlt-devel
> ```> Segment violated ('core' generated)> ``` Nothing jumps out at me. I would suggest to run it in GDB and post the stack trace. ~Brian On Tuesday, November 9, 2021, 10:31:28 AM CST, José María García Pérez wrote: I have the following example:```c#include #include #include int ma

Re: [Mlt-devel] Clock time to frame number?

2021-08-20 Thread Brian Matherly via Mlt-devel
> Am I correct that MLT translates from these clock times to frame numbers and >uses frame numbers for everything internally? Yes. "frame number" is often referred to as "position" in the code. I think the two terms are used interchangably. >  How does rounding work? The code is here:https://g

Re: [Mlt-devel] It's hard to work without information

2021-08-16 Thread Brian Matherly via Mlt-devel
> How would you proceed? I would go to the source and follow the trail:https://sourceforge.net/p/sox/code/ci/master/tree/src/biquads.c#l412 Shotcut has a Bass/Treble filter that uses Ladspa. You could download Shotcut, use the filter, and inspect the .mlt file to see how it works. Patches to i

Re: [Mlt-devel] Suitable Use case?

2021-04-26 Thread Brian Matherly via Mlt-devel
> Hi, > > I'm trying to create a mosaic from several video files. I'll need to add >and remove videos over time and change the position and size of videos.> > 1. >Can I use MLT XML for this? Yes > 2. Is it possible to create the mosaic and output to a file as fast as > possible instead of strea

Re: [Mlt-devel] Future of higher bit depth/dynamic range/etc

2021-04-25 Thread Brian Matherly via Mlt-devel
>  the final film needs to be in 10-bit color HDR is not in your requirement? If you are allowed to use 709 colorspace, then I do not understand the 10bit requirement. MLT already supports RBG which is 24 bits per pixel. YUV 4:2:2 @ 10bits is only 20 bits per pixel. Maybe you could use RGB feat

Re: [Mlt-devel] future of frame-threading in MLT

2020-12-08 Thread Brian Matherly via Mlt-devel
As a reminder, frame threading is when abs(consumer.get_int("real_time")) > 1. There are some problems with it. 1. sometimes there is a crash 2. image artifacts due to race conditions I think that the main reason for this is that we try to allow each service instance to be running get_image(

Re: [Mlt-devel] 10-bit color?

2020-11-17 Thread Brian Matherly via Mlt-devel
Yes - as long as:* You do not use any transitions* You do not use any filters  - including normalizing filters - each clip must perfectly match the profile to avoid normalization filters. On Monday, November 16, 2020, 11:45:46 PM CST, amin...@mailbox.org wrote: On Tue, Nov 17, 2020 a

Re: [Mlt-devel] 10-bit color?

2020-11-16 Thread Brian Matherly via Mlt-devel
Yes. I expect that would get you very far. Then, you could probably do a round trip as long as there are no conversions needed between producer and consumer. ~Brian On Monday, November 16, 2020, 10:06:21 PM CST, amin...@mailbox.org wrote: On Wed, Nov 11, 2020 at 12:18:02AM +, Bria

Re: [Mlt-devel] 10-bit color?

2020-11-10 Thread Brian Matherly via Mlt-devel
> > Am I (at all) on the right track here?: > > > > Yes! > > > > This code seems to say the avformat producer supports rgba, rgb24, and > > yuv422p? > > https://github.com/mltframework/mlt/blob/master/src/modules/avformat/producer_avformat.c#L614-L630 > > > > This is a better place to look: >

Re: [Mlt-devel] 10-bit color?

2020-11-09 Thread Brian Matherly via Mlt-devel
On Monday, November 9, 2020, 03:24:43 AM CST, amin...@mailbox.org wrote: On Sat, Nov 07, 2020 at 03:13:49PM +, Brian Matherly wrote: >  > Thanks. > >  > > Is there an easy way to list (or find) which formats are supported -- > > and thus don't require conversions -- for inputs and

Re: [Mlt-devel] R: Re: How to view simultaneously unprocessed frames and processed ones in two X windows?

2020-11-07 Thread Brian Matherly via Mlt-devel
The filter will not process the audio until you call mlt_frame_get_audio()https://github.com/mltframework/mlt/blob/master/src/framework/mlt_frame.h#L127 Why not listen to the "consumer-frame-render" event from the consumer and request the level of the frame after all the filters have been proce

Re: [Mlt-devel] 10-bit color?

2020-11-07 Thread Brian Matherly via Mlt-devel
> Thanks. >  > Is there an easy way to list (or find) which formats are supported -- > and thus don't require conversions -- for inputs and outputs of > filters/transitions? >  > Tom I think the only way would be to audit the source code and see what mlt image format the service requests. ~Brian

Re: [Mlt-devel] 10-bit color?

2020-10-31 Thread Brian Matherly via Mlt-devel
>> That is correct, but beware of automatically-added normalization filters >> that are added in src/modules/core/loader.ini for things such as scaling >> and padding, etc. > ffmpeg has options like -auto_conversion_filters [0] and "-pix_fmt +" [1] to > explicitly disallow accidental conversion

Re: [Mlt-devel] Keep producer aspect ratios

2020-10-09 Thread Brian Matherly via Mlt-devel
This happens because you have not specified a profile - so MLT makes up a profile based on your first producer. https://www.mltframework.org/docs/profiles/ An easy way to learn about profiles is to create a project with a tool like Kdenlive or Shotcut and then inspect the output. On Friday

Re: [Mlt-devel] 10-bit color?

2020-07-29 Thread Brian Matherly via Mlt-devel
Right now MLT supports a YUV 422 16 bit color format (mlt_image_yuv422p16). So 10bit sources can be mapped to that format to avoid bit depth loss. If you use any filters or transitions, you will be at the mercy of what that particular service requires. Some may convert to RGB, some may convert t

Re: [Mlt-devel] 10-bit color?

2020-07-28 Thread Brian Matherly via Mlt-devel
It would be helpful if you could provide more detail about what you are trying to accomplish. What do you mean by "modules" and which ones do you need to use? ~Brian On Tuesday, July 28, 2020, 08:11:52 AM CDT, amin...@gmail.com wrote: Back when it seemed like a no-brainer I remember bre

Re: [Mlt-devel] RAM guidelines?

2019-09-11 Thread Brian Matherly via Mlt-devel
> On Wednesday, September 11, 2019, 12:35:03 AM CDT, Kingsley G. Morse Jr. > wrote: >  >  > Can you suggest a reasonable amount of RAM for a > 64 bit computer, so it can edit videos with melt's > framework and kdenlive? >  > At the moment, I tend to > 1.) render to 1920x1080 .webm > 2.) use sp