<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:굴림;
        panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"맑은 고딕";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:"\@맑은 고딕";}
@font-face
        {font-family:"\@굴림";
        panose-1:2 11 6 0 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:12.0pt;
        font-family:굴림;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"맑은 고딕";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"맑은 고딕";
        mso-ligatures:none;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=KO link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>Hi,<o:p></o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'><o:p> </o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>I guess the heavy CPU loads might happen around CPU <-> GPU memory transfer rather than color conversion.<o:p></o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>glcolorconvert uses GPU already.<o:p></o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'><o:p> </o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>Anyway, manual caps setting to the glsinkbin will not work since it will be updated later by upstream events.<o:p></o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>If you want to use D3D11 color conversion path instead of GL, you can configure capsfilter in front of sink, for example:<o:p></o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>decodebin ! d3d11upload ! d3d11colorconvert ! d3d11download ! video/x-raw,format=RGBA ! glsinkbin sink=qmlglsink<o:p></o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'><o:p> </o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>Regards,<o:p></o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>Seungha<o:p></o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'><o:p> </o:p></span></p><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'> gstreamer-devel <gstreamer-devel-bounces@lists.freedesktop.org> <b>On Behalf Of </b>Deymos s via gstreamer-devel<br><b>Sent:</b> Saturday, May 27, 2023 8:22 PM<br><b>To:</b> gstreamer-devel@lists.freedesktop.org<br><b>Cc:</b> Deymos s <yarmolovichv@gmail.com><br><b>Subject:</b> Glsinkbin with qmlglsink load CPU supposedly by glcolorconvert<o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US>Hi, I'm trying to solve the problem of CPU congestion when playing 16 videos on the video wall, my pipeline looked like this initially:<br>rtspsrc ! decodebin(with d3d11h264dec) ! videoconvert ! glsinkbin sink=qmlglsink<br><br>but, heavy CPU loads began, although they should not be with d3d11h264dec, I found that the load comes from sink, specifically glcolorconvert, which converts NV12 to RGBA.<br><br>I tried to redo the pipeline on rtspsrc ! decodebin ! d3d11upload ! d3d11colorconvert ! d3d11download ! glsinkbin sink=qmlglsink but d3d11colorconvert cannot be explicitly set to convert NV12 to RGBA. I tried adding caps to the glsinkbin static pad, but it didn't help, it still doesn't convert.<br><br>Does anyone have any ideas how to make the video card convert color, and not load the processor with it?<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>here is pipeline code: <a href="https://pastebin.com/h0b90NLx">https://pastebin.com/h0b90NLx</a><o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>here is pipeline dot: <a href="https://drive.google.com/file/d/1dJVf92svdmnrQ8brayDT-zrKKA_IRboJ/view?usp=sharing">https://drive.google.com/file/d/1dJVf92svdmnrQ8brayDT-zrKKA_IRboJ/view?usp=sharing</a><o:p></o:p></span></p></div></div></div></body></html>