<div dir="ltr">Hi there, Mehdi.<div><br></div><div>MLT does use some GPU accel, and I have some scripts for the encoding of x264 and x265 video in kdenlive. </div><div><br></div><div>The thing about GPU acceleration is that someone has to write the module in the low level language that a GPU understands. As there are a lot of people re-encoding video, it made sense for the big houses like Google to pay the people that are smart enough to develop a library for encoding video. </div><div><br></div><div>For the mathematics involved in merging various effects per frame in video, you need different libraries. There was an attempt to use some of the accelerations available on a GPU with the movit project. Unfortunately it is so unstable in Kdenlive that it crashes out on my system in minutes. I'll enable it from time to time to see the progress on the project, but for any serious editing it's turned off on my system.</div><div><br></div><div>This might break your heart, applying effects is not even properly multi-threaded. You can set the number of threads higher for the effects, but there are some concurrency issues and if your effect stack depends on the effects being applied in a certain order you will see some weird visual effects. </div><div><br></div><div>You might think about just dropping the preview resolution until you can apply the effects smoothly, do your edits and let the system render the high resolution stuff at some later time when you can be doing something else.</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Evert Vorster<br>Awesome Chapters Tours</div><div><a href="http://www.awesomechapters.com" target="_blank">http://www.awesomechapters.com</a></div><div>Tel: +264 (0) 811477690<br></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 28 Jun 2020 at 17:45, Mehdi Haghgoo <<a href="mailto:powergame_coder2@yahoo.com">powergame_coder2@yahoo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks Evert, <div id="gmail-m_2537937981722066545yMail_cursorElementTracker_1593358673120">I have not used proxies, but as I understand from your comment, it would not do much good for me here. </div><div id="gmail-m_2537937981722066545yMail_cursorElementTracker_1593358855784"><br></div><div id="gmail-m_2537937981722066545yMail_cursorElementTracker_1593358857083">One more thing Camille, do you mean MLT does make zero use of GPU for video processing? If so, this seems quite a drawback, but then adding GPU might be extra work on different platforms like mobile, Desktop, etc. because of different GPU architectures. </div><div id="gmail-m_2537937981722066545yMail_cursorElementTracker_1593359021555">Any thoughts? </div><div id="gmail-m_2537937981722066545yMail_cursorElementTracker_1593359030494"><br id="gmail-m_2537937981722066545yMail_cursorElementTracker_1593358660059"><br><div id="gmail-m_2537937981722066545ymail_android_signature">- mehdi</div> <br> <blockquote style="margin:0px 0px 20px"> <div style="font-family:Roboto,sans-serif;color:rgb(109,0,246)"> <div>On Sun, Jun 28, 2020 at 19:18, Evert Vorster</div><div><<a href="mailto:evorster@gmail.com" target="_blank">evorster@gmail.com</a>> wrote:</div> </div> <div style="padding:10px 0px 0px 20px;margin:10px 0px 0px;border-left:1px solid rgb(109,0,246)"> <div id="gmail-m_2537937981722066545yiv7519495314"><div><div dir="ltr">Hi there, Mehdi.<div><br clear="none"></div><div>To second Camille's suggestion, the first thing to try would be to lower the preview resolution. This setting does not affect the rendered video, but does provide a much smoother editing experience on older hardware. When editing 4K footage on my machine, I use a resolution of 540p for my monitor. This is near VHS quality, if you are old enough to remember that format.</div><div><br clear="none"></div><div>Proxies are lower resolution copies of your original footage that Kdenlive can create automatically, and represents another level of smoothing of the editing process on older hardware. Unfortunately proxies create all sorts of problems in Kdenlive. Drawbacks include extra disk space used as well as the time it takes to generate. For your own sanity, please avoid using proxies if you can. </div><div><br clear="none"></div><div>Kind regards,</div><div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Evert Vorster<br clear="none">Awesome Chapters Tours</div><div><a rel="nofollow" shape="rect" href="http://www.awesomechapters.com" target="_blank">http://www.awesomechapters.com</a></div><div>Tel: +264 (0) 811477690<br clear="none"></div></div></div></div></div></div></div></div></div></div></div></div><br clear="none"></div></div><br clear="none"><div id="gmail-m_2537937981722066545yiv7519495314yqt81475"><div><div dir="ltr">On Sun, 28 Jun 2020 at 14:24, Camille Moulin <<a rel="nofollow" shape="rect" href="mailto:camille.moulin@free.fr" target="_blank">camille.moulin@free.fr</a>> wrote:<br clear="none"></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div>Hi Mehdi, <br clear="none">
</div>
<div><br clear="none">
</div>
<div>Thanks for the kind words about
kdenlive :-).</div>
<div>About your performance problem, on
short term you can try to lower down the preview resolution (in
the lower left corner of the monitor, see picture attached.)or you
can enable proxies.</div>
<div>On the medium/long term, the goal is to
be able to use GPU, but this is quite a large task and needs also
to be implemented at MLT's level.</div>
<div>Cheers,</div>
<div>Camille <br clear="none">
</div>
<div> <br clear="none">
</div>
<div><br clear="none">
</div>
<div>On 28/06/2020 13:05, Mehdi Haghgoo
wrote:<br clear="none">
</div>
<blockquote type="cite">
[...]
<div id="gmail-m_2537937981722066545yiv7519495314gmail-m_7045233675553400879yMail_cursorElementTracker_1593341740210">I have a small
problem though, Kdenlive is bad at previewing in-edit tracks
especially for high-res videos like 4k and when layering
multiple tracks. It just plays with a lot of hiccups. I have low
end laptop: core i5 6200u dual core with Intel 520 graphics.</div>
<div id="gmail-m_2537937981722066545yiv7519495314gmail-m_7045233675553400879yMail_cursorElementTracker_1593342000403">Is there a way
to improve the performance in future versions or are there any
plans? </div>
<div id="gmail-m_2537937981722066545yiv7519495314gmail-m_7045233675553400879yMail_cursorElementTracker_1593342112904">I have not
tried kdenlive with a discrete graphics. Maybe, these issues are
not present on powerful systems. <br clear="none">
</div>
</blockquote>
<p><br clear="none">
</p>
<p><br clear="none">
</p>
<blockquote type="cite">
<div id="gmail-m_2537937981722066545yiv7519495314gmail-m_7045233675553400879yMail_cursorElementTracker_1593342181136"><br clear="none">
</div>
<div id="gmail-m_2537937981722066545yiv7519495314gmail-m_7045233675553400879yMail_cursorElementTracker_1593342147838"><br clear="none">
</div>
<div id="gmail-m_2537937981722066545yiv7519495314gmail-m_7045233675553400879yMail_cursorElementTracker_1593342148326">Again thank you
for your great work. I would love this message to be seen as a
query and suggestion at its best. </div>
<div id="gmail-m_2537937981722066545yiv7519495314gmail-m_7045233675553400879yMail_cursorElementTracker_1593342243204"><br clear="none">
</div>
<div id="gmail-m_2537937981722066545yiv7519495314gmail-m_7045233675553400879yMail_cursorElementTracker_1593342243808">Looking forward
to hearing your thoughts. </div>
<div id="gmail-m_2537937981722066545yiv7519495314gmail-m_7045233675553400879yMail_cursorElementTracker_1593342257726"><br clear="none">
</div>
<div id="gmail-m_2537937981722066545yiv7519495314gmail-m_7045233675553400879yMail_cursorElementTracker_1593342257827"><br clear="none">
</div>
<div id="gmail-m_2537937981722066545yiv7519495314gmail-m_7045233675553400879yMail_cursorElementTracker_1593342257959">Best regards</div>
<div id="gmail-m_2537937981722066545yiv7519495314gmail-m_7045233675553400879yMail_cursorElementTracker_1593342261795">- mehdi</div>
<div id="gmail-m_2537937981722066545yiv7519495314gmail-m_7045233675553400879yMail_cursorElementTracker_1593342052722"><br clear="none">
</div>
</blockquote>
<p><br clear="none">
</p>
</div>
</blockquote></div></div></div></div> </div> </blockquote></div></blockquote></div>