Kdenlive extremly slow

Hi
When I edit a video in kdenlive, the more I edit (cut, add transitions and text title), the more kdenlive becomes slower, so slowly that its not possible to work with it. I have to restart my computer and than I can edit for a few minuets more until it gets slowly again. It affects the behaviour of the entire system-even after closing kdenlive the computer is very slow (surfing in internet, using programs etc.).
The render time of a 2,5 minuets, video is 3,5 hours! While rendering the temp. increases to 92°C and the cpu works between about 40% to 80% while 1 of the 8 threads is always on 100%, I tried to play around with the render settings and use different amount of threads etc. but no effect…
On the same computer, using sonyvegas the render time of 1080/50p is very fast.
-Is there anything I could do to speed up kdenlive?
-For Thumbleweed there is already version 15.04.2-3.2 of kdenlive, is there a way to install it on Opensuse 13.2 (here is version 0.9.10-13.1) ?

No idea.

-For Thumbleweed there is already version 15.04.2-3.2 of kdenlive, is there a way to install it on Opensuse 13.2 (here is version 0.9.10-13.1) ?

Yes, it is available in the KDE:Applications repo.
But it will just crash on startup, because libmlt and frei0r-plugins are built against Qt4 in 13.2, and kdenlive 15.04 is a KF5/Qt5 application (loading both Qt4 and Qt5 in the same application causes a crash).
A workaround would be to uninstall frei0r-plugins (they are only recommended) and delete mlt’s Qt plugin (/usr/lib(64)/mlt-6/libmltqt.so).
See also here:
https://forums.opensuse.org/showthread.php/504112-Kdenlive5-with-TW
https://bugzilla.opensuse.org/show_bug.cgi?id=930616

I do offer kdenlive 15.04.2 and Qt5 based libmlt/frei0r-plugins packages in my Frameworks5 repo, they can even be co-installed with the KDE4/Qt4 versions…
http://software.opensuse.org/package/kdenlive5

You would need the KDE:Qt5 and KDE:Frameworks5 repos too for that (if you use the 1-click install, they should be added automatically though).

Video editing consume bunches of memory.You are probably starting to use swap when things slow. You may want to run top and watch memory usage

Solutions

  1. more memory
  2. putting swap on a SSD note it still slow but not as much

memory is not the problem, I have 20Gb Ram…

Yes, it is available in the KDE:Applications repo.
But it will just crash on startup, because libmlt and frei0r-plugins are built against Qt4 in 13.2, and kdenlive 15.04 is a KF5/Qt5 application (loading both Qt4 and Qt5 in the same application causes a crash).
A workaround would be to uninstall frei0r-plugins (they are only recommended) and delete mlt’s Qt plugin (/usr/lib(64)/mlt-6/libmltqt.so).
See also here:
https://forums.opensuse.org/showthre…nlive5-with-TW
930616 – kdenlive crashes at start

I do offer kdenlive 15.04.2 and Qt5 based libmlt/frei0r-plugins packages in my Frameworks5 repo, they can even be co-installed with the KDE4/Qt4 versions…
openSUSE Software

You would need the KDE:Qt5 and KDE:Frameworks5 repos too for that (if you use the 1-click install, they should be added automatically though).

Thanks for the tips, I´m not a very experienced linux user, everything looks like an adventure…
So if I uninstall the frei0r-plugins and ml´t, it would not affect the effects etc. of kdenlive? Your seconds suggestion looks easier to me, so I´ll try to install kdenlive5 from your repo.

You cannot uninstall mlt, kdenlive needs that (it’s basically just a GUI frontend to mlt). Deleting the qt plugin should not affect the effects etc. AFAIK (I’m not completely sure for what’s it used/needed at all).
Uninstalling frei0r-plugins would affect the effects though, all effects provided by frei0r-plugins would be missing of course.

Well watch swap anyway 20 gig sounds like a lot but a video editor can slurp memory like candy

opensuse 13.1 x86_64
kdenlive 0.9.10
standard sata HD, ST1000DM003-1CH162, 5400 rpm, 1 TB
Memory 8 GB
intel i5 4590, 3,30 GHz, 4 cores

4 clips Mpeg 2 TS , 1 h 28 mn ,
merged in one mp4 file

kdenlive default settings
rendering default settings

result : 1 h 45 mn to get the mp4 file

i set in kdenlive settings “number of thread” to 4 (number of cores)

result : 1 h 45 mn

i set in rendering settings “number of thread for encoding” to 4 (number of cores)

result : 0 h 45 mn to get the mp4 file !

each tread uses 90 % of core power and 500 MB of memory
curiously kdenlive uses 250 MB of swap

definitively for that kind of job bottle neck is the memory capacity and the number of cores

Hello everybody, I need to bump this thread up, because I’m facing a similar problem when rendering with Kdenlive.
It only uses one core whatever I setted as render Settings, here is the sh-script I created with kdenlive:


#! /bin/sh

RENDERER="/usr/bin/kdenlive_render"
MELT="/usr/bin/melt"

SOURCE_0="file:///home/vortex/Dokumente/scripts/Doom_001.sh.mlt"
TARGET_0="file:///home/vortex/kdenlive/Doom-4.mp4"
PARAMETERS_0="-pid:3948 in=0 out=72390 $MELT atsc_1080p_60 avformat - $SOURCE_0 $TARGET_0 properties=x264-medium f=mp4 vcodec=libx264 acodec=aac g=120 crf=15 ab=192k preset=ultrafast threads=16 real_time=-16"
$RENDERER $PARAMETERS_0

Did I set something wrong, because on previous kdenlive an openSUSE Versions it was not using only one core.
The 20min clip took about 51 minutes to render, and there also no special compositing clips in that video, just an screencast with audio, an audio track and I reduce the volume of the Video clip.
So nothing special here.

Here are my specs:

Kdenlive: 17.08.1
mlt: 6.4.1

System:
openSuse Tumbleweed 20171006 (Kernel: 4.13.4-1-default)
RAM: 16 GB
CPU: Ryzen 7 1800X

Hope somebody can tell me what am I doing wrong this time :smiley:
Also I search the internet for this Problem, but wasn’t able to find something corresponding to my problem.
Yes I found some results on my search but all the fixes I was able to find didn’t do anything =/

Kind regards,
Vortex

Thanks for your time reading this =)

don’t bump a thread open a new one
I don’t use kdenlive but if all you’re doing is reencoding why not use ffmpeg with hardware acceleration it should be a lot faster if you have the hardware (most recent nvidia/ati/intel chips)
https://trac.ffmpeg.org/wiki/HWAccelIntro

Tried to delete the .kdenlive folder that is between hidden files, and restart it?
You can also use Openshot