<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">Am 23.07.2018 um 19:35 schrieb johnar1:<br>
</div>
<blockquote type="cite"
cite="mid:nJaNMnbPuNMX2q4QhM4xyHs31Jd-6GNEP0O9hPjpFKAhDIsIjroWam-iymqzycTv8k2kj0x7pQtAsFaJ5MC1qlscQmbV2nGfqSFkpdrFQqk=@protonmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div>Thanks again, for your efforts! (Ich vermute, dass du
ebenfalls Deutscher bist, also nochmal danke haha.)<br>
</div>
<div><b>I have 100% and with absolute certainty figured out what
the actual problem is.</b><br>
</div>
<div><br>
</div>
<div>I have compiled melt from the latest git available here: <a
href="https://github.com/mltframework/mlt/releases/tag/v6.10.0"
moz-do-not-send="true">https://github.com/mltframework/mlt/releases/tag/v6.10.0</a><br>
</div>
<div>I just ./configure and make && make install<br>
</div>
<div>I then use this melt executable by selecting it in the
kdenlive environment tab.<br>
</div>
<div><br>
</div>
<div>Here is the kicker:<br>
</div>
<div><br>
</div>
<div>When I use ./configure --enable-gpl --enable-gpl3 to compile
melt---> NVENC does not --->CPU utilization 100% on 1
core, 20% - 30% on the rest, GPU utilization= 4%<br>
</div>
<div><br>
</div>
<div>When I use ./configure without these two flags ---> NVENC
works --> CPU utilization = 100% on all cores /GPU
utilization = 90%<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Here is kicker number 2:<br>
</div>
<div><br>
</div>
<div>I originally thought this was a problem with NVENC, but that
is not true.<br>
</div>
<div><br>
</div>
<div>When compiling with --enable-gpl and --enable-gpl3, Kdenlive
subsequently only uses 1 single CPU core for rendering. (Despite
having 4 threads selected in the render dialog, kdenlive
environment and even in the generated render script)<br>
</div>
<div><br>
</div>
<div><b>That </b>is why NVENC <b>appears</b> to not work,
because the CPU is not being used properly, hence it cannot feed
the GPU enough frames. There is some GPU utilization<br>
</div>
<div><br>
</div>
<div>Now I have read that enabling the license also enables a
bunch of qt modules, and qt obviously heavily pertains to
concurrent CPU scheduling.<br>
</div>
<div><br>
</div>
<div>You'd think that the problem could be solved by simply not
using --enable-gpl and --enable-gpl3, but unfortunately that
excludes the libmltqt.so module, which I need for title clips in
kdenlive.<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>So basically, without gpl I get crazy render speeds and
almost 100% GPU/CPU utilization, but not title clips.<br>
</div>
<div>And with gpl only 1 single CPU core is being used for
rendering, no matter how many times I specify 4 threads, but
title clips work.<br>
</div>
<div><b><u><br>
</u></b></div>
<div><b><u>We are sooooo close to solving this omg!</u></b><b><u><br>
</u></b></div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br>
</div>
<div> On July 22, 2018 6:46 PM, Eugen Mohr
<a class="moz-txt-link-rfc2396E" href="mailto:eugen.mohr@gmx.net"><eugen.mohr@gmx.net></a> wrote:<br>
</div>
<div> <br>
</div>
<blockquote class="protonmail_quote" type="cite">
<p><br>
</p>
<p><br>
</p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-US"
lang="EN-US">You render it with MLT 11.0. Kdenlive
refactoring runs MLT 10.0. Try with the actual AppImage
18.08.Beta 18.</span><br>
</p>
<p><br>
</p>
<div><br>
</div>
<div class="moz-cite-prefix">Am 22.07.2018 um 16:15 schrieb
johnar1:<br>
</div>
<blockquote type="cite">
<div>Ok, I think I have isolated the problem now.<br>
</div>
<div><br>
</div>
<div>I just compiled kdenlive from the latest git, everything
works and I get the following warning before launching it.
(Screenshot attached)<br>
</div>
<div><br>
</div>
<div>The following codecs are missing: libx265, nvenc_h264,
h264_nvenc<br>
</div>
<div><br>
</div>
<div>The Appimage version does not state this warning as it
probably already comes with the necessary stuff.<br>
</div>
<div><br>
</div>
<div>So the final question is, how do I get these codecs?<br>
</div>
<div>The only thing you can manually install that is related
to nvenc, are the headers themselves, which I already have
installed.<br>
</div>
<div><br>
</div>
<div>Any ideas?<br>
</div>
<div><br>
</div>
<div class="protonmail_signature_block">
<div class="protonmail_signature_block-user
protonmail_signature_block-empty"><br>
</div>
<div class="protonmail_signature_block-proton">Sent with <a
target="_blank" href="https://protonmail.com"
moz-do-not-send="true">ProtonMail</a> Secure Email.<br>
</div>
</div>
<div><br>
</div>
<div>‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br>
</div>
<div>On July 16, 2018 2:48 PM, Eugen Mohr <a
href="mailto:eugen.mohr@gmx.net"
class="moz-txt-link-rfc2396E" moz-do-not-send="true"><eugen.mohr@gmx.net></a>
wrote:<br>
</div>
<div><br>
</div>
<blockquote type="cite" class="protonmail_quote">
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<p style="margin-bottom: 0cm; line-height: 100%"
lang="en-US">On a first look:<br>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"
lang="en-US">File which runs:<br>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"
lang="en-US">MLT version 6.7.0<br>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"
lang="en-US">frame_rate_den="1"<br>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"
lang="en-US">60 fps<br>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"
lang="en-US">name="length">53282<br>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"
lang="en-US"> <br>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"
lang="en-US">file which doesn't run:<br>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"
lang="en-US">MLT version 6.10.0 → version of the
Kdenlive refactoring<br>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"
lang="en-US">frame_rate_den="1001"<br>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"
lang="en-US">29.97 fps<br>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"
lang="en-US">name="length">00:14:48;00<br>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"
lang="en-US"> <br>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"
lang="en-US">check this parameters with other files<br>
</p>
<div> <br>
</div>
<div>
<div> <br>
</div>
<div name="quote" style="margin:10px 5px 5px 10px;
padding: 10px 0 10px 10px; border-left:2px solid
#C3D9E5; word-wrap: break-word; -webkit-nbsp-mode:
space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;">
<div><b>Gesendet:</b> Montag, 16. Juli 2018 um
07:51 Uhr<br>
</div>
<div><b>Von:</b> johnar1 <a
href="mailto:johnar1@protonmail.com"
class="moz-txt-link-rfc2396E"
moz-do-not-send="true"><johnar1@protonmail.com></a><br>
</div>
<div><b>An:</b> <a href="mailto:kdenlive@kde.org"
class="moz-txt-link-rfc2396E"
moz-do-not-send="true">"kdenlive@kde.org"</a>
<a href="mailto:kdenlive@kde.org"
class="moz-txt-link-rfc2396E"
moz-do-not-send="true"><kdenlive@kde.org></a><br>
</div>
<div><b>Betreff:</b> Incredible Render Performance
In Kdenlive With NVENC - But 1 Big Problem<br>
</div>
</div>
<div name="quoted-content">
<div> <br>
</div>
<div class="protonmail_signature_block">
<div class="protonmail_signature_block-user
protonmail_signature_block-empty"> <br>
</div>
</div>
<div>System: i5 6600K, 1050TI, Ubuntu 18.04,
Kernel 4.16<br>
</div>
<div>I have successfully compiled mlt and ffmpeg
with nvenc support using the official nvenc
headers stripped from the Nvidia SDK.<br>
</div>
<div>Rendering the first minute of the 1080p
Sintel version, with 4 threads specified and my
nvenc profile, finishes in 10 seconds.<br>
</div>
<div>Sintel can be downloaded here: <a
href="https://durian.blender.org/download/[/url"
target="_blank" moz-do-not-send="true">https://durian.blender.org/download/</a><br>
</div>
<div>Nvenc Profile: (compatible with recent mlt
versions who are nvenc enabled by deafult)<br>
</div>
<div>f=mp4 vcodec=nvenc_h264 global_quality=21
vq=21 preset=slow bf=2 ab=384k<br>
</div>
<div> <br>
</div>
<div> <br>
</div>
<div>Now here is the problem that I do not
understand:<br>
</div>
<div>Using the latest version of kdenlive from the
kdenlive-master ppa combined with the newly
compiled versions of ffmpeg and mlt works
perfectly, but only under very specific
circumstances.<br>
</div>
<div> <br>
</div>
<div>I have only been able to get rendering with
nvenc to work properly when I use and open this
specific kdenlive [b]save file[/b] which I made
of the first minute of the Sintel short film
with the Appimage Version of Kdenlive. After
launching the ppa/installed version of kdenlive
and opening this save file, rendering with nvenc
works flawlessly.<br>
</div>
<div> <br>
</div>
<div>If I simply start a new project, adding the
whole Sintel short film to the project bin,
cutting the first minute and render it, nvenc
simply does not work and the render time is
tripled, despite having changed nothing else,
including the nvenc render profile.<br>
</div>
<div> <br>
</div>
<div>If I create a save file of the first minute
of Sintel with the installed version and open it
on the Appimage version, nvenc does not work
again.<br>
</div>
<div> <br>
</div>
<div>Conclusion: There must be something in this
save file, maybe a parameter, additonal settings
or any type of code not present in the default
kdenlive project profiles, which enables NVENC.<br>
</div>
<div> <br>
</div>
<div>I would greatly appreciate it if we could
find out the source of this problem together.<br>
</div>
<div> <br>
</div>
<div>Kdenlive Appimage Save File with which NVENC
works:<br>
</div>
<div><a href="https://pastebin.com/rzjR57DJ"
target="_blank" moz-do-not-send="true">https://pastebin.com/rzjR57DJ</a><br>
</div>
<div> <br>
</div>
<div>PPA/Installed Version of Kdenlive created
Save File which breaks NVENC:<br>
</div>
<div><a href="https://pastebin.com/3uQ8sP0C"
target="_blank" moz-do-not-send="true">https://pastebin.com/3uQ8sP0C</a><br>
</div>
<div> <br>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
</blockquote>
</blockquote>
<div><br>
</div>
</blockquote>
<br>
</body>
</html>