<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Le 26.07.18 à 10:02, johnar1 a écrit :<br>
<blockquote type="cite"
cite="mid:kh1MyUwt3vqLZKClvzue_xwmmPaM_GQ7SMLBrVUI9FOwVMXimxL9iHTNpfcqofsd0GoMG6bggcImQLfkhn41EI7TGUtUq5rPUzC7vKJvXS8=@protonmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div>Hello Jean,<br>
</div>
<div><br>
</div>
<div>yes that is correct, switching from High Quality compositing
had a major impact on performance and I am not sure why.<br>
</div>
<div><br>
</div>
<div>I can help you out getting NVENC to work.<br>
</div>
<div>What platform are you on?<br>
</div>
<div><br>
</div>
</blockquote>
Thanks. My main issue is the NVidia driver, since I currently use an
Ubuntu 16.04 based distro, and FFmpeg complains about my NVIDIA
driver version < 390. I will upgrade my distro and give some
feedback tomorrow.<br>
<br>
After that I guess a page on setting up nvenc would be nice on our
wiki:<br>
<a class="moz-txt-link-freetext"
href="https://community.kde.org/Kdenlive/Development/KF5">https://community.kde.org/Kdenlive/Development/KF5</a><br>
<br>
Regards<br>
Jean-Baptiste<br>
<blockquote type="cite"
cite="mid:kh1MyUwt3vqLZKClvzue_xwmmPaM_GQ7SMLBrVUI9FOwVMXimxL9iHTNpfcqofsd0GoMG6bggcImQLfkhn41EI7TGUtUq5rPUzC7vKJvXS8=@protonmail.com">
<div>There are a couple things to be mindful of.<br>
</div>
<div><br>
</div>
<div>.)After installing the graphics driver you need to genereate
an xorg.conf<br>
</div>
<div>.)Install the NVENC Headers from here: <a
href="https://github.com/lutris/ffmpeg-nvenc/issues/22"
moz-do-not-send="true">https://github.com/lutris/ffmpeg-nvenc/issues/22</a><br>
</div>
<div>.)Use the correct NVENC parameter in your render profile, as
the current one has been deprecated.<br>
</div>
<div>
<div>Here's my profile:<br>
</div>
<div>f=mp4 vcodec=h264_nvenc gb=21 vq=21 acodec=aac ab=384k r=60
preset= slow g=120 bf=2<br>
</div>
<div><br>
</div>
</div>
<div>.)You need to compile ffmpeg and mlt with the following
flags:<br>
</div>
<div>./configure --enable-nvenc --enable-cuvid --enable-nonfree<br>
</div>
<div><br>
</div>
<div>Or if you don't want to compile yourself you can simply use
the melt binary + libs from the most recent Shotcut build.<br>
</div>
<div><a
href="https://github.com/mltframework/shotcut/releases/download/v18.07/shotcut-linux-x86_64-180702.tar.bz2"
moz-do-not-send="true">https://github.com/mltframework/shotcut/releases/download/v18.07/shotcut-linux-x86_64-180702.tar.bz2</a><br>
</div>
<div><br>
</div>
<div>Instructions here:<br>
</div>
<div><a
href="https://www.youtube.com/watch?v=X14GvmBpq08&t=314s"
moz-do-not-send="true">https://www.youtube.com/watch?v=X14GvmBpq08&t=314s</a><br>
</div>
<div><br>
</div>
<div>This will get NVENC working 100%.<br>
</div>
<div>When you're done, you need to track the GPU utilization in
the driver and make sure it is working. How many frames your GPU
can push depends on the power of your CPU. I use the
kdenlive_multirender script to ensure 100% utilization on all
cores and subsequently higher GPU utilization.<br>
</div>
<div><a href="https://github.com/unfa/kdenlive-multirender"
moz-do-not-send="true">https://github.com/unfa/kdenlive-multirender</a><br>
</div>
<div><br>
</div>
<div>Let's keep in touch!<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 26, 2018 9:30 AM, Jean-Baptiste Mardelle <a
class="moz-txt-link-rfc2396E" href="mailto:jb@kdenlive.org"><jb@kdenlive.org></a>
wrote:<br>
</div>
<div> <br>
</div>
<blockquote type="cite" class="protonmail_quote">
<div><br>
</div>
<div class="moz-cite-prefix">On 25.07.2018 21:38, johnar1 wrote:<br>
</div>
<blockquote type="cite">
<div>Dear Mr. Vincent Pinon,<br>
</div>
<div><br>
</div>
<div>if that is in fact your real name, my first born son
shall henceforth be known as Vincent.<br>
</div>
<div><br>
</div>
<div>Your suggestion was spot on and according to my tests so
far I believe it works.<br>
</div>
<div><br>
</div>
<div>Here are my findings:<br>
</div>
<div><br>
</div>
<div>Rendering 1st minute of Sintel 1080p/60FPS , 4 Threads,
NVENC enabled, Kdenlive 18.04 AppImage<br>
</div>
</blockquote>
<div><br>
</div>
<div>Hello Johnar,<br>
</div>
<div> <br>
</div>
<div> I am myself trying to setup a working nvenc environment
and hope to make some more tests.<br>
</div>
<div> <br>
</div>
<blockquote type="cite">
<div><br>
</div>
<div>.)Track Composition - "None" <br>
</div>
<div>[CPU Utilization: 70% - 67% - 64% - 80%] [GPU
Utilization: 70%] [Render Time: 15s]<br>
</div>
<div>I noticed however, that transitions such as for example
Slide or Composite are rendered improperly, with certain
interference patterns.<br>
</div>
<div><br>
</div>
<div>After consulting the documentation, I realized that this
should be fixed by disabling any surrounding empty tracks,
but so far I have not been able to achieve that.<br>
</div>
<div><br>
</div>
<div>.)Track Composition - "Preview"<br>
</div>
<div>[CPU Utilization: 67% - 65% - 69% - 75%] [GPU
Utilization: 65%] [Render Time: 20s]<br>
</div>
<div><br>
</div>
<div>I conclude that the best of both worlds comes into play
with this option enabled.<br>
</div>
<div>Both the GPU and CPU are almost fully utilized, while it
appears that transitions are rendered correctly.<br>
</div>
<div><br>
</div>
</blockquote>
<div>So if I understand correctly, rendering the same project
with Track compositing set to "High Quality" has a major
impact and you get this result:<br>
</div>
<div> [CPU Utilization: 100% - 7% - 10% - 18%] [Video Engine
Utilization (NVENC): 8%] [Render Time: 2m54s]<br>
</div>
<div> <br>
</div>
<div> This seems strange to me since Kdenlive's "high quality"
track compositing uses the qtblend transition that should
automatically be bypassed when there is no transparency in the
video. If you can confirm that and that this simple change in
track compositing has such an impact this definitely has to be
checked... Also, Dan recently fixed many of the "affine"
transition issue, so it should give results similar to the
"qtblend" transition but may be faster..<br>
</div>
<div> <br>
</div>
<div> Thanks for all your investigations, I hope to come back
with more infos once I successfully achieve my setup.<br>
</div>
<div> <br>
</div>
<div> Best regards<br>
</div>
<div> Jean-Baptiste<br>
</div>
<div> <br>
</div>
<div> <br>
</div>
<div> <br>
</div>
<blockquote type="cite">
<div>I will do more thorough testing and read any
documentation available, as I absolutely want to understand
what exactly these options do.<br>
</div>
<div><br>
</div>
<div>I think it's a bit counterintutive to have "High Quality"
enabled by default, which so heavily impacts performance,
while in my opinion not making enough of an effort to alert
the user to the extreme effects it may have on render times.<br>
</div>
<div><br>
</div>
<div>I literally spent 72 hours straight, compiling every
single version of melt and kdenlive, documenting and testing
every possible compilation parameter variation, performance
reviews with every available version of Ubuntu,
corresponding kernels and nvidia drivers, and every remotely
related kdenlive option or workarounds.<br>
</div>
<div><br>
</div>
<div>This has definitely shortened my life span by about 3 -
4 years.<br>
</div>
<div><br>
</div>
<div>I would like to extend my gratitude to you, good sir.<br>
</div>
<div><br>
</div>
<div><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 25, 2018 2:23 AM, Vincent Pinon <a
class="moz-txt-link-rfc2396E" href="mailto:vpinon@kde.org"
moz-do-not-send="true"><vpinon@kde.org></a> wrote:<br>
</div>
<div><br>
</div>
<blockquote type="cite" class="protonmail_quote">
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">Hello,
</p>
<p style="white-space: pre-wrap; -qt-paragraph-type: empty; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-block-indent: 0; text-indent: 0px;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">I don't know how precisely you do the job in kdenlive
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">(you could share the .kdenlive, the .sh.mlt, a screenshot),
</p>
<p style="white-space: pre-wrap; -qt-paragraph-type: empty; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-block-indent: 0; text-indent: 0px;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">one thing I suspect is the track composition (automatic transparency):
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">if you keep the default high quality choice,
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">kdenlive adds "composite & transform" transitions that are based on Qt.
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">So without gpl / qt module, MLT skips these transitions.
</p>
<p style="white-space: pre-wrap; -qt-paragraph-type: empty; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-block-indent: 0; text-indent: 0px;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">Could you run your test switching to "no transparency"?
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">(toolbar just above timeline)
</p>
<p style="white-space: pre-wrap; -qt-paragraph-type: empty; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-block-indent: 0; text-indent: 0px;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">Thanks for you enthusiastic investigations :)
</p>
<p style="white-space: pre-wrap; -qt-paragraph-type: empty; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-block-indent: 0; text-indent: 0px;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">Vincent
</p>
<p style="white-space: pre-wrap; -qt-paragraph-type: empty; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-block-indent: 0; text-indent: 0px;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">Le mardi 24 juillet 2018, 23:26:01 CEST johnar1 a écrit :
</p>
<p style="white-space: pre-wrap; margin-top: 12px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">Hey guys, I have some more info.
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">Hey Eugen, I have some more info.
</p>
<p style="white-space: pre-wrap; margin-top: 12px; margin-bottom: 12px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">For this test I used mlt 6.11, successfully compiled by Dan Dennedy's build-melt.sh
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">The test file that I am using is the 1080p version of Sintel.
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;"><a href="https://durian.blender.org/download/" moz-do-not-send="true"><span style="color:rgb(41, 128, 185)" class="colour"><u>https://durian.blender.org/download/</u></span></a>
</p>
<p style="white-space: pre-wrap; margin-top: 12px; margin-bottom: 12px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">CPU: i5 6600K, GPU:GTX 750 TI nvidia-390 driver , Platform: Kubuntu 18.04
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">In order to check melt and isolate the problem I simply rendered the first minute of the Sintel short film with the following command:
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">(This is not the /bin/melt, but the script which launches it with the correct libs)
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;"><span style="font-family:"Hack"" class="font">/home/frank/melt/20180724/melt -profile atsc_1080p_60 sintel.mkv out=3600 -consumer avformat:result-60.mp4 f=mp4 vcodec=h264_nvenc preset=slow</span>
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">[CPU Utilization: 67% - 70% - 68% - 74%] [Video Engine Utilization (NVENC): 80%] [Render Time: 20s]
</p>
<p style="white-space: pre-wrap; margin-top: 12px; margin-bottom: 12px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 12px; margin-bottom: 12px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">It obviously works perfectly.
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">Now when I select this melt in the kdenlive environment, and also ffmpeg, ffplay, ffprobe and the profiles path from Dan's melt folder, yields the following results when rendering the first minute of Sintel.
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">[CPU Utilization: 100% - 7% - 10% - 18%] [Video Engine Utilization (NVENC): 8%] [Render Time: 2m54s]
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">Something in kdenlive breaks parallel processing, only allowing 1 single core to be fully utilized.
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">And I have tested every single version of kdenlive available on this earth.
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">Every app image, including the refractoring version and every single ppa version, including stable, dev and master.
</p>
<p style="white-space: pre-wrap; margin-top: 12px; margin-bottom: 12px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 12px; margin-bottom: 12px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">Also generating and launching the render script from the terminal yields the same result.
</p>
<pre style="margin-top:12px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style="font-family:"Hack"" class="font">RENDERER="/home/frank/kdenlive/bin/kdenlive_render"</span>
</pre>
<pre style="margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style="font-family:"Hack"" class="font">MELT="/home/frank/melt/20180724/melt"</span>
</pre>
<pre style="margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style="font-family:"Hack"" class="font">SOURCE_0=<a class="moz-txt-link-rfc2396E" moz-do-not-send="true">"file:///home/frank/Documents/scripts/script001.sh.mlt"</a></span>
</pre>
<pre style="margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style="font-family:"Hack"" class="font">TARGET_0=<a class="moz-txt-link-rfc2396E" moz-do-not-send="true">"file:///home/frank/Documents/untitled.mkv"</a></span>
</pre>
<pre style="margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style="font-family:"Hack"" class="font">PARAMETERS_0="-pid:2664 in=0 out=3052 $MELT atsc_1080p_60 avformat - $SOURCE_0 $TARGET_0 vcodec=nvenc_h264 threads=4 real_time=-1"</span>
</pre>
<pre style="margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style="font-family:"Hack"" class="font">$RENDERER $PARAMETERS_0</span>
</pre>
<pre style="margin-top:0px; margin-bottom:12px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style="font-family:"Hack"" class="font"></span>
</pre>
<p style="white-space: pre-wrap; margin-top: 12px; margin-bottom: 12px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">I have also tested different kdenlive_render executables/libs with the same result.
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">I should note, that using the kdenlive_multirender script in conjunction with the generated render script by kdenlive, while specifying 4 threads, the CPU uses 2 cores at 100%.
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;"><a href="https://github.com/unfa/kdenlive-multirender" moz-do-not-send="true"><span style="color:rgb(41, 128, 185)" class="colour"><u>https://github.com/unfa/kdenlive-multirender</u></span></a>
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 12px; margin-bottom: 12px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">Now as I have described before, when I compile melt without enabling gpl, the 1 minute of Sintel renders perfectly again, with full utilization on both the CPU and GPU, but from within Kdenlive this time.
</p>
<p style="white-space: pre-wrap; margin-top: 12px; margin-bottom: 12px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">I conclude that this problem is somehow caused by Kdenlive and related to qt, but I do not possess the knowhow to further analyze it.
</p>
<p style="white-space: pre-wrap; margin-top: 12px; margin-bottom: 12px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">With the latest 18.08 Beta18 and the most recent QT version, <span style="font-weight:600;">2 cores</span> instead of 1 are now being utilized at 100% with the NVENC profile and <span style="font-weight:600;">100% on all 4 cores</span> using the MP4 h264 profile.
</p>
<p style="white-space: pre-wrap; margin-top: 12px; margin-bottom: 12px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">So this is 100% a QT issue with NVENC, but I need further insight from a professionals like yourselves.
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">Sent with <a href="https://protonmail.com" moz-do-not-send="true"><span style="color:rgb(41, 128, 185)" class="colour"><u>ProtonMail</u></span></a> Secure Email.
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">On July 16, 2018 7:51 AM, johnar1 <a class="moz-txt-link-rfc2396E" href="mailto:johnar1@protonmail.com" moz-do-not-send="true"><johnar1@protonmail.com></a> wrote:
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 12px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">System: i5 6600K, 1050TI, Ubuntu 18.04, Kernel 4.16
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">I have successfully compiled mlt and ffmpeg with nvenc support using the official nvenc headers stripped from the Nvidia SDK.
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">Rendering the first minute of the 1080p Sintel version, with 4 threads specified and my nvenc profile, finishes in 10 seconds.
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">Sintel can be downloaded here: <a href="https://durian.blender.org/download/[/url" moz-do-not-send="true"><span style="color:rgb(41, 128, 185)" class="colour"><u>https://durian.blender.org/download/</u></span></a>
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">Nvenc Profile: (compatible with recent mlt versions who are nvenc enabled by deafult)
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">f=mp4 vcodec=nvenc_h264 global_quality=21 vq=21 preset=slow bf=2 ab=384k
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">Now here is the problem that I do not understand:
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">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.
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">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.
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">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.
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">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.
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">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.
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">I would greatly appreciate it if we could find out the source of this problem together.
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">Kdenlive Appimage Save File with which NVENC works:
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;"><a href="https://pastebin.com/rzjR57DJ" moz-do-not-send="true"><span style="color:rgb(41, 128, 185)" class="colour"><u>https://pastebin.com/rzjR57DJ</u></span></a>
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">PPA/Installed Version of Kdenlive created Save File which breaks NVENC:
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;"><a href="https://pastebin.com/3uQ8sP0C" moz-do-not-send="true"><span style="color:rgb(41, 128, 185)" class="colour"><u>https://pastebin.com/3uQ8sP0C</u></span></a>
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 80px; margin-right: 80px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<p style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 40px; margin-right: 40px; -qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0;">
</p>
<div><br>
</div>
</blockquote>
<div><br>
</div>
</blockquote>
</blockquote>
<div><br>
</div>
</blockquote>
<br>
</body>
</html>