<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div><br></div>
<div>On Fri, Jun 30, 2017, at 12:21, Mathieu Velten wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div defang_data-gmailquote="yes"><div dir="ltr">Le ven. 30 juin 2017 à 00:10, Thomas Guillem <<a href="mailto:thomas@gllm.fr">thomas@gllm.fr</a>> a écrit :<br></div>
<blockquote defang_data-gmailquote="yes" style="margin-top:0px;margin-right:0px;margin-bottom:0px;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div><br></div>
<div><br></div>
<div>On Thu, Jun 29, 2017, at 22:47, Rémi Denis-Courmont wrote:<br></div>
<div> > Le torstaina 29. kesäkuuta 2017, 21.43.16 EEST Mathieu Velten a écrit :<br></div>
<div> > > Fixes #18445<br></div>
<div> ><br></div>
<div> > This does not fix #18445.<br></div>
<div> <br></div>
<div> I did the same patch for the vaapi converter locally but didn't have an<br></div>
<div> internet connection to propose it. I'm ok with your converter_vaapi.c<br></div>
<div> changes but you shouldn't touch avcodec/vaapi.c. This module should<br></div>
<div> still be usable if interop is not working.<br></div>
<div> <br></div>
<div> For me, it fixes #18445. This is no reason to prefer the old<br></div>
<div> avcodec/vaapi DRM with software rendering when there is the direct<br></div>
<div> rendering one working. This old module will be used if your system can't<br></div>
<div> do interop.<br></div>
</blockquote><div><br></div>
<div>The changes in vaapi.c allows gl output + DRM (non DR) to work.<br></div>
<div>I think it is doable to only initialize VADisplay in the decoder, and the gl vout can<br></div>
<div>pick up this display on first image displayed. I'll have a look after the weekend.<br></div>
</div>
</div>
</blockquote><div><br></div>
<div>I would say the contrary.<br></div>
<div>The vout need to initialize the VDisplay in the Open function. That way, if it fails (drivers doesn't support interop, permissions issues), you can fallback to the generic converter that will ask for I420 (so, there will be a VAAPI_OPAQUE to I420 conversion). In that failing case, the avcodec vaapi drm module will work. If the vaapi gl converter succeed, the vout will own the vaapi instance (that can be drm/x11/wl) and the avcodec vaapi *dr* module will be used.<br></div>
<div><br></div>
<blockquote type="cite"><div dir="ltr"><div defang_data-gmailquote="yes"><div><br></div>
<div>However I think Rémi has a point, even with that patch something is wrong when doing DRM + other vout.<br></div>
<div>It seems to decode well but it looks like we have a pixel format negotiation problem somewhere,<br></div>
<div>SPU is not working and I get a bunch of:<br></div>
<div><div>[00007fa58801ca50] blend blend error: no matching alpha blending routine (chroma: YUVA -> VAOP)<br></div>
<div>[00007fa58801ca50] core blend error: blending YUVA to VAOP failed<br></div>
</div>
<div><br></div>
<div><br></div>
<blockquote defang_data-gmailquote="yes" style="margin-top:0px;margin-right:0px;margin-bottom:0px;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div><br></div>
<div><br></div>
<div>><br></div>
<div> > --<br></div>
<div> > 雷米‧德尼-库尔蒙<br></div>
<div> > <a href="https://www.remlab.net/">https://www.remlab.net/</a><br></div>
<div> > ______________________________<wbr>_________________<br></div>
<div> > vlc-devel mailing list<br></div>
<div> > To unsubscribe or modify your subscription options:<br></div>
<div> > <a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/<wbr>listinfo/vlc-devel</a><br></div>
<div> ______________________________<wbr>_________________<br></div>
<div> vlc-devel mailing list<br></div>
<div> To unsubscribe or modify your subscription options:<br></div>
<div> <a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/<wbr>listinfo/vlc-devel</a><br></div>
</blockquote></div>
</div>
<div><u>_______________________________________________</u><br></div>
<div>vlc-devel mailing list<br></div>
<div>To unsubscribe or modify your subscription options:<br></div>
<div><a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a><br></div>
</blockquote><div><br></div>
</body>
</html>