<div dir="ltr">Hi Christian,<div class="gmail_extra"><br><div class="gmail_quote">2017-01-25 15:41 GMT+01:00 Christian König <span dir="ltr"><<a href="mailto:deathsimple@vodafone.de" target="_blank">deathsimple@vodafone.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi guys,<br>
<br>
ok this is completely work in progress and untested except for a compile run.<br>
<br>
Most of the stuff necessary should be there for VDPAU, but I'm honestly not sure how to approach VAAPI.<br>
<br>
My main problem at the moment is that I can't get mpv/ffmpeg to decode Main10 content using VDPAU and when I try VAAPI it always ends up using NV12.<br>
<br>
Peter, Rainer any idea what I'm missing here? Do you guys use some modified ffmpeg for Kodi or how does that work for you?<br></blockquote><div><br></div><div>do you set the format correctly, e.g.: <a href="https://github.com/FernetMenta/kodi-agile/blob/master/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp#L2697">https://github.com/FernetMenta/kodi-agile/blob/master/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp#L2697</a> to create the surfaces?</div><div><br></div><div>afterwards we just do drm / egl interop, via:</div><div><a href="https://github.com/FernetMenta/kodi-agile/blob/master/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp#L1374">https://github.com/FernetMenta/kodi-agile/blob/master/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp#L1374</a> </div><div>You need ffmpeg 3.2.<br></div><div><br></div><div>If you use vaPutSurface it will end up as RGBA32 or something, which is why we use the above way.</div><div><br></div><div>Best regards</div><div>Peter</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Cheers,<br>
Christian.<br>
<br></blockquote><div><br></div><div> </div></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">                   Key-ID:     0x1A995A9B<br>                   keyserver: <a href="http://pgp.mit.edu" target="_blank">pgp.mit.edu</a><br>==============================================================<br>Fingerprint: 4606 DA19 EC2E 9A0B 0157  C81B DA07 CF63 1A99 5A9B</div>
</div></div>