KdenCode is a simple C++ library that allows you to programmtically generate .kdenlive files which can be opened in the
Kdenlive video editor.
This functionally allows you to edit a video however you like with your own custom program, which can help speed up your editing process.
You can take a generated .kdenlive file, open it in the Kdenlive, and render it.
As I've said above, this is a simple library, and it only supports the bare minimum of video editing:
      - Adding clips to the project bin.
      - Adding new audio and video tracks to the timeline.
      - Adding clips to tracks at specific timestamps.
      - Specifying the length of clips on tracks.
      - Adding a fade effect to video clips on tracks.
      - Setting the profile of the video (framerate and size)
The idea is that the bulk of the work would be done by the library, but the fine-tuned/complex editing would be done in Kdenlive afterwards.
You can find the library
here.
I used this library when creating
a tool
that helps streamline my very specific video editing process, whenever I need to edit a video.
It's really geared towards me though, so I wouldn't really recommend anyone else really use it.