I made a tool for Kdenlive for titles and graphics

Not really a feature suggestion, but I don’t know where else to post this.

So the built-in title editor is quite limited (I do plan to make that one better, maybe you have seen my contributions already), so I worked on an external tool just for titles and graphics that works with Kdenlive since about a month.

This external tool (called “Graphics Creator”) uses Lua to make graphics, and has some templates as you can see here.

Here’s a YouTube video showcasing the tool:

The link to the GitHub repository is here: GitHub - chocolateimage/graphics-creator: Create titles and other visual effects · GitHub

And the download for the Flatpak is: Releases · chocolateimage/graphics-creator · GitHub

It’s still in WIP and can crash at anytime, but you can create issues on GitHub.

11 Likes

very very nice!

Very cool. This is the kind of attention Kdenlive needs to have.

Sweet! Amazing effort here! Thank you for your contributions so far :folded_hands:

I have seen your contributions, and so has the rest of the team, and we cannot wait to see what other improvements you want to implement :wink:

Pretty cool! Maybe we can eventually think of a way to extend Kdenlive to be scriptable and eventually incorporate this through an addon system to extend functionalities into Kdenlive or even add it into the code base. Are you in the matrix dev room by any chance?

I am in the Matrix room (kdenlive-dev:kde.org).

Fantastic! Thanks for this!

One feature which is missing in the current titler is text kerning. Is kerning possible with your “Graphics Creator”?

Another point is text scrolling (up and down). Would such scrolling only be a matter of a specific template?

That would be possible with the current “Single Letter Test” template, which is still in development, but you can still try to experiment.

Yes, scrolling can also be done with a template. You can start with a pretty simple text template and then add moving in the Lua script (with the x, y) and the seconds/duration.

More info on scripting is available here: graphics-creator/docs/scripting.md at main · chocolateimage/graphics-creator · GitHub

@chocolateimage I tried to compile on Windows localy with windeploy.sh but without success. Can you make on Github a Windows version for downloading?

The Windows version is now attached.

If you want to compile it yourself, you have to use MSYS2 with the UCRT shell, and install the packages with pacman.

Thank you for the Windows version and the explanation how to compile it on Windows.

I played a bit around and it seems that the Lua script execution is single-threaded on the CPU. If so, that may be the reason that I always see “too slow” on the bottom right corner and the payback is choppy.

I like the script possibilities. Would it be possible to create one (1) Lua script which “emulates” the functions of the current Kdenlive titler? If so, we could add easily additional functions by amend the script.

A kind of timeline would be interesting for “steering” each element.

1 Like

It should not be single threaded. If you look at the status bar, it says how many threads it is using. The program performs better on high-end CPUs with many cores. (In the demo video I showed, I have a “32 × AMD Ryzen 9 9950X3D 16-Core Processor”, which is 32 threads). It also depends on the template itself. Some templates, especially with brushes, are slower than other ones. A test with performance I made is “Single Letter Test” vs “Single Letter Test 2”.

If you mean making separate elements and moving it, that is planned, though not high priority as that makes it more of a different focused program than it is now. I thought of possibly building that directly into Kdenlive with a new title/text/graphic editor.

If building something like that into the existing program, then I need some more thinking and ideas on how to implement it without limiting existing things that can be done, and that it would be user friendly. (Adobe After Effects exists, maybe I can try to get some inspiration from there)

r/kdenlive has a few threads about the title editor and what ppl are missing wrt functionality (although you already worked on a few important improvements).

I can confirm my old PC under Win10 uses 6 threads. So the preview is stuttering.

Yes, I see the preview performance difference between the two scripts.

@chocolateimage I saw you made some interesting progress on the graphics-creator. Is it worth that I compile for testing or should I wait?

It’s not ready for using yet (keyframes not implemented, rendering not implemented, and lots of other stuff neither), but if you want you can try it out.