2 new filters for the next release

I will try the parameters provided I can install and use the filters in Shotcut without having to compile anything. I have no compilers on my system and I’m not really able to use them even if I had them.

I’m sorry, I meant for you to use them in Kdenlive. That is how I was trying them out.

Not sure I under stand what you mean. I have used both filters in Kdenlive once. I’ve also found that most of the parameters in Kdenlive are not very intuitive and need to be applied and reset a few times before a good result is achieved.

That’s why I use Shotcut. It’s easy to use and pretty intuitive. If I need complex effects I use Lightworks.

So it seems you had the same experience with Kdenlive that I had :slight_smile: The parameters were confusing. I don’t want to just copy that over to Shotcut, because then Shotcut would have the same problem. We need to determine what is useful in Kdenlive and bring that into Shotcut - while leaving out the parts that are confusing.

For both filters, what did you finally end up using in Kdenlive that worked for you? Also, what absolutely did not work?

Now I get it. I’ll reply with more detail later when I get a chance to look at what I ended up using in Kdenlive.

I used the cartoon filter with its default settings for a very small section of my project. I remember that I could not get a very good result by modifying the default setting. Still don’t understand what the Difference Space parameter is supposed to do. Level of Trip parameter seems like it might have something to do with some psychedelic effect. Difference Space parameter did not work for me at all.

Level of Trip could be changed to Intensity. I have no idea what to change Difference Space to. Maybe that parameter can be dropped.

Looking at the video in Kdenlive I used the Charcoal filter for quite a few clips. The results were good. I like it much better than the Cartoon filter. The Charcoal filter might be a good addition to Shotcut.

The settings that worked best for me were.


These were for that particular video.

If you add Charcoal filter to Shotcut I think Line Height and Line Width are good replacements for H and V scatter. Seems to me Scale makes the lines thicker so it could be called Scale or be changed to Intensity. Mix could be called Color MIx.

Just to help but I think you already saw that :
The 2 parameters are here to help doing the first step = > edge detect. Then the textures and colors are modified.

Someone already tried : Frei0r cartoon Filter (working code)

For charcoal, nothing in it…

@Keno40 Good find!

For the Cartoon filter, we could use the implementation you found - with or without modification. I read the documentation for the two parameters and I just don’t know how I would explain to someone what they do. I would prefer to either exclude them (if the parameters aren’t really useful anyway) or rename them to something that I could explain to someone else.

The Charcoal filter does have parameters - but they aren’t documented in the MLT documentation. Here is where KDENLIVE defines them:

I’ll try the cartoon filter tonight to see how I understand the “parameters” and see if they are usefull.

The cartoon filter is really interresting as it is.
Changing the “level of trip” is usefull from 0.90 to 1.
The “difference space” is active only when LoT is <1 and it produces different results depending of the luminosity of the image and the contrast. This setting is more related to line thickness but it not as simple.
I’ll let it as it is.

Based on your comments and my own experience with “Cartoon”, I decided to focus on the charcoal filter.
I created a filter for you to try using the “charcoal” filter. But I renamed some things to make them more intuitive (I think).

Extract this file into your shotcut directory in Shotcut/share/qml/filters
sketch.zip (1.6 KB)
When you restart shotcut, the filter should now be in your list of video filters. It is named “Sketch”.

Let me know your thoughts. Would this be more intuitive than what is in KDENLIVE?

I don’t know if this is mean for me or Keno40. In any event I will try it shortly and report back.

I did try the cartoon filter that Keno40 found. Did not like it. Had weird results. Might give it another try later.

I was hoping to get feedback from both of you :slight_smile: And anyone else who might be interested.

It’s working very well. Functions pretty much the same as the charcoal filter in Kdenlive but the parameters are more intuitive. Very nicely done filter.:+1::+1:

Made a quick video with it. Not the best but I think it shows the capabilities of Sketch.

1 Like

In Windows 10 it;s

Will try it for sure !
Maybe i’ll keep both, but charcoal cool as it is !

Cool ! The transitions at the end are what I’m looking for.

Could the invert parameter be included in sketch?


The transitions at the end are easy.


Copied the clip from the upper track to the lower track. Added a fade in to upper track. Added sketch to the lower track. That creates the transition/blend. This I learned from @Steve_Ledger

The fade to white is just a transition between the video clip and a color clip.

Sketch is a pretty cool filter.

I could add it. I excluded it because:

  • I don’t understand the use case for it (Why would you want to do this?)
  • It is redundant - you can just apply the “Invert Colors” filter on top of the sketch filter to get the same effect

I even considered excluding the Color (mix) option. What do you guys think of the color? I think it looks off and some scenes look strange when I add in color. We could exclude the option and just make this a black-and-white filter. Thoughts? Is the color worth keeping?

Another question for you guys: If we go forward with the “Sketch” filter, is there any need for the “Cartoon” filter? My opinion of the Cartoon filter is that the settings are useless because there is basically only one setting that looks any good. So if we added the cartoon filter, I think it would have no settings and it wouldn’t add much over the Sketch filter with color turned on. Thoughts?