<div dir="ltr"><div>Hi there, Bernd.<br><br></div><div>I am under the impression that you want to create a render profile in Kdenlive. If that is the case start with the example from the bug report:<br></div><pre class="gmail-bz_comment_text" id="gmail-comment_text_1">-vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -i -an -c:v dnxhd<br><br></pre><pre class="gmail-bz_comment_text" id="gmail-comment_text_1">If you have a look at all the other rendering profiles, you will notice that none have an input our output,<br></pre><pre class="gmail-bz_comment_text" id="gmail-comment_text_1">these are added by Kdenlive itself. <br></pre><pre class="gmail-bz_comment_text" id="gmail-comment_text_1">Kind regards,<br></pre><pre class="gmail-bz_comment_text" id="gmail-comment_text_1">Evert<br></pre></div><div class="gmail_extra"><br><div class="gmail_quote">On 10 August 2017 at 19:47, B.M. <span dir="ltr"><<a href="mailto:b-misc@gmx.ch" target="_blank">b-misc@gmx.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">1) Proxy clips -- done<br>
<br>
Proxy clips creation with hardware acceleration is working fine now, for the<br>
record:<br>
I use x264 with these settings (in ~/.local/share/kdenlive/<br>
encodingprofiles.rc):<br>
<br>
x264_vaapi=-vaapi_device /dev/dri/renderD128 -i -vf<br>
format=nv12,hwupload,scale_<wbr>vaapi=w=1280:h=720 -vcodec h264_vaapi -b:v 5M -ab<br>
128k -acodec libvorbis;mp4<br>
<br>
<br>
2) Project rendering -- open<br>
<br>
Still open - Evert, -i instead of $SOURCE_0 and $TARGET_0 cannot work because<br>
source and target contain the mlt script and the output file.<br>
Does this not work at all? Is it a mlt problem?<br>
<br>
Thank you so much for further input!<br>
Bernd<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Donnerstag, 10. August 2017 14:41:38 CEST you wrote:<br>
> Hi there, Bernd<br>
><br>
> Try again, but replace the "- $SOURCE_0 $TARGET_0" with "-i"<br>
><br>
> Kind regards,<br>
> -Evert-<br>
><br>
> On 10 August 2017 at 13:37, B.M. <<a href="mailto:b-misc@gmx.ch">b-misc@gmx.ch</a>> wrote:<br>
> > PS: I'm trying something like (render script)<br>
> ><br>
> > PARAMETERS_0="-kuiserver -pid:8839 in=0 out=1139 $MELT uhd_2160p_25<br>
> > 'avformat<br>
> > vaapi_device=/dev/dri/<wbr>renderD128' - $SOURCE_0 $TARGET_0<br>
> > properties=x264-medium<br>
> > f=mp4 vf='format=nv12,hwupload' vcodec=libx264_vaapi acodec=aac g=120<br>
> > crf=23<br>
> > ab=160k preset=faster threads=1 real_time=-1"<br>
> ><br>
> > but it doesn't work.<br>
> ><br>
> > Best,<br>
> > Bernd<br>
> ><br>
> > On Donnerstag, 10. August 2017 14:36:16 CEST you wrote:<br>
> > > Hi,<br>
> > ><br>
> > > Foreword: I just did the upgrade to the testing package (17.04.3) to get<br>
> > > this "bug fix".<br>
> > ><br>
> > > I'm really sorry, but I don't get it:<br>
> > ><br>
> > > What you've sent me is the rendering parameter, as set in the render<br>
> ><br>
> > dialog.<br>
> ><br>
> > > You changed is from vcodec=hevc to vcodec_nvenc to get hardware encoding<br>
> > > working with your nvidia card.<br>
> > ><br>
> > > What I want is just the same, but for vaapi because I've only the<br>
> ><br>
> > integrated<br>
> ><br>
> > > intel graphics. I can use libx264_vaapi as like with the ffmpeg command,<br>
> > > but there are more parameter required (vaapie_device, hwaccel, ...) -<br>
> > > that's what Anton mentions in his bug report, and he asks for both proxy<br>
> > > clips and "encoding profile" which I take as rendering profile. JBM's<br>
> > > answer and the commit are only talking about proxy clips and<br>
> > > transcoding,<br>
> > > not about rendering, so this leaves me unsure.<br>
> > ><br>
> > > From my understanding, I've the same problem as Anton: I need to inject<br>
> ><br>
> > the<br>
> ><br>
> > > additional parameters needed for vaapi (but not for nvenc) for the<br>
> ><br>
> > rendering<br>
> ><br>
> > > command, but so far I didn't find out how I have to do this. If I<br>
> ><br>
> > generate<br>
> ><br>
> > > a render script, I get something like<br>
> > ><br>
> > > PARAMETERS_0="-kuiserver -pid:8839 in=0 out=1139 $MELT uhd_2160p_25<br>
> ><br>
> > avformat<br>
> ><br>
> > > - $SOURCE_0 $TARGET_0 properties=x264-medium f=mp4 vcodec=libx264<br>
> > > acodec=aac g=120 crf=23 ab=160k preset=faster threads=1 real_time=-1"<br>
> > ><br>
> > > Now, where do I have to insert these parameter (beside changing libx264<br>
> ><br>
> > to<br>
> ><br>
> > > libx264_vaapi)?<br>
> > ><br>
> > > Unfortunately I don't have Anton's e-mail address, so I cannot ask him<br>
> > > directly ;-)<br>
> > ><br>
> > > Best,<br>
> > > Bernd<br>
> > ><br>
> > > On Donnerstag, 10. August 2017 07:54:18 CEST Evert Vorster wrote:<br>
> > > > Hi there, Bernd<br>
> > > ><br>
> > > > Have a look at this bug:<br>
> > > > <a href="https://bugs.kde.org/show_bug.cgi?id=378832" rel="noreferrer" target="_blank">https://bugs.kde.org/show_bug.<wbr>cgi?id=378832</a><br>
> > > ><br>
> > > > With the fixed bug there is also an example on how to make a vaapi<br>
> ><br>
> > profile<br>
> ><br>
> > > > from JBM<br>
> > > ><br>
> > > > Kind regards,<br>
> > > > -Evert-<br>
> > > ><br>
> > > > On 9 August 2017 at 20:55, B.M. <<a href="mailto:b-misc@gmx.ch">b-misc@gmx.ch</a>> wrote:<br>
> > > > > Hi,<br>
> > > > ><br>
> > > > > Coming back regarding my attempts to get encoding using<br>
> ><br>
> > vaapi-hardware<br>
> ><br>
> > > > > acceleration to work...<br>
> > > > ><br>
> > > > > First, Vincent, concerning your point of ffmpeg not being compiled<br>
> ><br>
> > with<br>
> ><br>
> > > > > vaapi<br>
> ><br>
> > > > > enabled in Debian - well, that's correct and not correct somehow:<br>
> > it's<br>
> ><br>
> > > > > not<br>
> > > > > compiled with enable-vaapi, but vaapi is still working (at least in<br>
> > > > > stretch),<br>
> > > > > see this Debian bug<br>
> > > > > report: <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=830880" rel="noreferrer" target="_blank">https://bugs.debian.org/cgi-<wbr>bin/bugreport.cgi?bug=830880</a><br>
> > > > ><br>
> > > > > For me, a command like<br>
> > > > > ffmpeg -vaapi_device /dev/dri/renderD128 -i infile.MP4 -vf<br>
> > > > > 'format=nv12,hwupload' -c:v h264_vaapi outfile.mp4<br>
> > > > > works fine and encoding 4K video runs about 4x faster!<br>
> > > > ><br>
> > > > > What I struggle with is adding these options into the rendering<br>
> ><br>
> > profile<br>
> ><br>
> > > > > or<br>
> > > > > to<br>
> > > > > begin with into the rendering script. I created the rendering script<br>
> > > > > which<br>
> > > > > contains the line PARAMETERS_0. But how can I add these<br>
> > > > > vaapi-related<br>
> > > > > options?<br>
> > > > > Which one goes where? Any hints are very welcome ;-)<br>
> > > > ><br>
> > > > > Thanks a lot.<br>
> > > > ><br>
> > > > > Best,<br>
> > > > > Bernd<br>
> > > > ><br>
> > > > > On Dienstag, 8. August 2017 14:31:13 CEST Vincent Pinon wrote:<br>
> > > > > > Hello,<br>
> > > > > ><br>
> > > > > > Note that you need to have FFmpeg built with vaapi or nvenc<br>
> ><br>
> > support,<br>
> ><br>
> > > > > which<br>
> > > > ><br>
> > > > > > is not the case of Debian package. I don't know what's needed for<br>
> > > > > > Intel,<br>
> > > > > > but for NVidia you have to download a SDK linked to closed-source<br>
> > > > > > driver,<br>
> > > > > > providing personal information: showstopper for me (and many<br>
> > > > > > packagers)<br>
> > > > > :<br>
> > > > > :\<br>
> > > > > :<br>
> > > > > > Please let us know of any progress on your side.<br>
> > > > > ><br>
> > > > > > Evert, did you try to share your custom profiles using<br>
> ><br>
> > "HotNewStuff"<br>
> ><br>
> > > > > > function in Kdenlive? ;)<br>
> > > > > ><br>
> > > > > > Vincent<br>
> > > > > ><br>
> > > > > > Le mardi 8 août 2017, 12:47:31 CEST Evert Vorster a écrit :<br>
> > > > > ><br>
> > > > > ><br>
> > > > > > Hi there, Bernd.<br>
> > > > > ><br>
> > > > > ><br>
> > > > > ><br>
> > > > > > Kdenlive supports hardware encoding through custom encoding<br>
> ><br>
> > profiles.<br>
> ><br>
> > > > > > This is my profile for hardware hevc encoding with nvidia:<br>
> > > > > ><br>
> > > > > ><br>
> > > > > > properties=x265-medium f=matroska vcodec=hevc_nvenc acodec=aac<br>
> > > > ><br>
> > > > > crf=%quality<br>
> > > > ><br>
> > > > > > ab=%audiobitrate+'k'<br>
> > > > > ><br>
> > > > > ><br>
> > > > > > It would have been awesome if mlt and ffmpeg used the same format<br>
> ><br>
> > in<br>
> ><br>
> > > > > command<br>
> > > > ><br>
> > > > > > lines, but this is not the case. At least they are close.<br>
> > > > > ><br>
> > > > > ><br>
> > > > > > Unfortunately I only have intel cards, so I cannot test the intel<br>
> > > > > > vaapi<br>
> > > > > > acelleration for you.<br>
> > > > > ><br>
> > > > > ><br>
> > > > > > Kind regards,<br>
> > > > > ><br>
> > > > > ><br>
> > > > > > On 8 August 2017 at 10:35, B.M. <<a href="mailto:b-misc@gmx.ch">b-misc@gmx.ch</a>[1]> wrote:<br>
> > > > > ><br>
> > > > > ><br>
> > > > > > Dear all,<br>
> > > > > ><br>
> > > > > > After some years without I'm getting back to video editing... I<br>
> > > > > > already<br>
> > > > > > searched quite a lot but it's really hard to find "realiable"<br>
> > > > ><br>
> > > > > information,<br>
> > > > ><br>
> > > > > > so I decided to ask here:<br>
> > > > > ><br>
> > > > > > - It seems that hw accel is not available in kdenlive<br>
> > > > > ><br>
> > > > > > - As far as I understand kdenlive uses mlt which uses ffmpeg.<br>
> ><br>
> > ffpmeg<br>
> ><br>
> > > > > > can<br>
> > > > ><br>
> > > > > use<br>
> > > > ><br>
> > > > > > hardware acceleration for de- and encoding. So is mlt to "blame"<br>
> ><br>
> > for<br>
> ><br>
> > > > > > missing hw accel. in kdenlive?<br>
> > > > > ><br>
> > > > > > - There has been a patch (bug 378832) "use of vaapi in transcoding<br>
> ><br>
> > and<br>
> ><br>
> > > > > > rendering" which seems to tackle my question. But what did it<br>
> ><br>
> > really<br>
> ><br>
> > > > > change<br>
> > > > ><br>
> > > > > > -/ what is it for? I didn't find more info on that and it's in<br>
> > > > > > kdenlive<br>
> > > > > > 17.04, while Debian is at 16.12. and before I compile myself I'd<br>
> ><br>
> > like<br>
> ><br>
> > > > > > to<br>
> > > > > > get more info.<br>
> > > > > ><br>
> > > > > > - Furthermore I found a thread on this list back in April<br>
> > > > > > "kdenlive<br>
> > > > > > and<br>
> > > > ><br>
> > > > > mlt<br>
> > > > ><br>
> > > > > > nvenc enabled" covering the same topic but for nvidia instead of<br>
> ><br>
> > Intel<br>
> ><br>
> > > > > > graphics; unfortunately nobody reported back if it really works.<br>
> ><br>
> > For<br>
> ><br>
> > > > > > me<br>
> > > > ><br>
> > > > > it<br>
> > > > ><br>
> > > > > > reads like the patch I mentioned above.<br>
> > > > > ><br>
> > > > > > So regarding the current state of hw accel in kdenlive I'm still<br>
> > > > ><br>
> > > > > uncertain.<br>
> > > > ><br>
> > > > > > Thank you for your inputs.<br>
> > > > > ><br>
> > > > > > Kind regardsBernd<br>
> > > > > ><br>
> > > > > ><br>
> > > > > > Evert VorsterIsometrix Acquistion Superchief<br>
> > > > > ><br>
> > > > > ><br>
> > > > > ><br>
> > > > > ><br>
> > > > > ><br>
> > > > > ><br>
> > > > > > --------<br>
> > > > > > [1] mailto:<a href="mailto:b-misc@gmx.ch">b-misc@gmx.ch</a><br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Evert Vorster<br>Isometrix Acquistion Superchief<br><br></div></div></div>
</div>