Do you have plan to save/load multiple filters to 'preset'?

I always should make same filter combinations (for example, ‘text and transparent’ and ‘text, text and text’) for each projects.

So I tried to save preset these combinations but it does not.
Of course, I can save it but I could not find combinations after loading my preset.
There is just one filter.

I think we already can save/load multiple filters with .mlt than we can save/load multiple filter combination by using preset.

I checked .mlt and preset files and found preset files are simple text type.
I think we need huge effort for this functionality because
we need convert to all preset files to xml and re-create parser maybe.

If you have plan about multiple filters control, I want to help you anythings.

4 Likes

This have been suggested a few people already, including me. Being able to save multiple filters into one preset would be a time saver for many Shotcut users in my humble opinion.

There is already the option of copying all the filters added to one clip and pasting it to another clip. I’m no expert, but there must be a way to save that copied information into a file, so it can be reused whenever needed. :thinking:

1 Like

The problem I see is if you save a preset in one video mode say 1080, and you have the filter in the very center, it will not stay in the center for a 720 video mode. People that only exist in the Automatic video mode will have problems with multiple saved filter presets.

1080p Video Mode saved preset.

720p Video Mode using a 1080p preset.

This would not be an additional problem since, like you showed, it already exists for the actual presets.

When I create presets, I usually include the video mode in the name of the preset.
I’ll do the same with multi-filter presets if we ever get them.

Yes, I also agree.
We already has functions to implement multiple filters copying.
But I think Shotcut team is leak of developer.

Maybe you mean lacks developers? As in not enough of them to meet the constant demand of the users? :slight_smile:

It is not problem, your case is right operation.
Shotcut has not resize function of filters yet.
And resize function is sooooooo difficult.
Anyway I am not talking about resize function now.

I am not sure but I heard there are some developer and volunteer.

Two developers and some volunteers yes.

Sincerely I want to help them but I do not know how can I help the team.

As the dev told me about the structure of Shotcut, it’s not possible. I’m still trying to understand more about the code before proceding to the actual code.

You can just copy the filter and select a track and paste it from there. That will apply all the filters to the entire timeline.

@Sheep Sorry, but we are not talking about copying the filters from one clip and pasting them to the timeline in a single project.
We talk about presets containing more than one filter that can be saved on the computer and then reused at any time in any other projects.

Yes i know.

In order to load a preset with multiple filter preset is not possible yet. Below is the preset from Colour Grading:


lift_r: -0.468986
lift_g: -0.120989
lift_b: 1.5259e-05
gamma_r: 1.21401
gamma_g: 1.21401
gamma_b: 1.21401
gain_r: 1.10668
gain_g: 1.10668
gain_b: 1.10668

As we can see, there’s no identifier to call the filters. If i put another preset below the colour grading preset, that will make it even harder to call the right filter. For example:

Colour_Grading Filter

lift_r: -0.468986
lift_g: -0.120989
lift_b: 1.5259e-05
gamma_r: 1.21401
gamma_g: 1.21401
gamma_b: 1.21401
gain_r: 1.10668
gain_g: 1.10668
gain_b: 1.10668
White_Balance Filter
#7f7f7f
0.358753

In order to call the right filter, Shotcut need to add a new func to read the code from a single preset and call the right filters wihtout inserting the filter itself. From the road map, that is not in the list. Maybe someday if people up vote the function.
A good work around is to use @bentacular tips on using MLT template.

@Sheep Yes, I see what you mean. There is no identifier written in the preset itself.

But then how does it work when you copy the filters applied to one clip, then, at anytime in your Shotcut session you can paste them on another clip? There must be some information that Shotcut keeps in memory, or write somewhere in a temporary file.
Can’t this information be saved some way on a permanent file?

It is saved within the .MLT file. For example:

filter id=“filter0” in=“00:00:16.042” out=“00:00:22.250”>
-0.468986
-0.120989
1.5259e-05
1.21401
1.21401
1.21401
1.10668
1.10668
1.10668
lift_gamma_gain
0


0.1
frei0r.colgate
0
#7f7f7f
0.358753


0
0
0
1.00002
0.914992
0.913985
1
1
1
lift_gamma_gain


avfilter.hue
-10.8
0
1.09

From the id=filter, it’s embedded with time stamp making it useless to use on another project.

filter id=“filter1” in=“00:00:16.042” out=“00:00:22.250”>

Again, it only stated filter0, filter1, filter2 and so on. If we want to reuse a single preset in the next session on Shotcut it is hard to call the right filter. Yes, theres a MLT_service call out.Personaly, i’m leaning towards Bens work around for time being.

Hi Sheep.
Yes, we need to ID for each filters so we need 2 steps for my purpose.

First, we need to change format of preset to xml.
Second we reuse loading function of mlt.

I think we can also save/load multiple filters by preset, if we change type of preset to xml same as mlt.

I am investigating code and I hope I can find the solution.
Fortunately, c++ and qt is familiar for me.

1 Like

My way of solving re-using multiple filters, presets and effects is using the MLT as the master preset as shown here.

1 Like

The next version 21.08 supports the system clipboard for copy and paste filters where it places the XML as text on the clipboard. This means you can use a text editor to paste the XML text and save it as a file with a good name for your group of filters. You can save all these XML files to a special folder. Finally, to use, open a file in the text editor, select all, copy, and use Paste filters in Shotcut.

Alternatively, since I also made a change to improve performance running multiple instances of Shotcut at the same time, you can use a playlist of dummy color clips to hold these where you can rename the clip. Then, copy and paste between instances.

I think it would be easy to add a simple UI around this idea within Shotcut where it skips over the whole clipboard part. Rather, it would simply save and load from XML, but one can look at the existing copy and paste code to get some hints and reuse some functions. Thinking about a design for the UI for this, keep in mind the Filters panel is getting crowded. Perhaps add a button to the existing row of buttons to save. Then, the group presets could be listed in the filter chooser that appears after clicking + as a new category (there can be multiple types of filters in a group).

SDKs for working on Shotcut’s code are in the Technical Notes section of the Web site.

3 Likes