<HTML><BODY><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;"><div id=""><div class="js-helper js-readmsg-msg"><div id="style_16611051771384258210_BODY"><div class="cl_212604"><div class="gmail_quote_mr_css_attr"><div class="mail-quote-collapse"><div data-type="body"><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" class="gmail_quote_mr_css_attr"><div>I'm using FFMPEG/sws_scale to convert PixFmt from RGB to YUV(NV12) (Without size scaling!) .<div>It is really a bottleneck of the encoding process, it is extremely slow!!</div><div>What I'm doing wrong? Should I use another FFMPEG convert method instead of sws_scale?<div>I've checked the OBS studio source code and found that they use a self-written RGB-NV12 converter instead of using FFMPEG/sws_scale.</div><div> </div></div></div></blockquote></div></div></div></div></div></div></div></blockquote><div> </div><div>Maybe you need to use AVFilterContext like me</div><div> </div><div><a href="http://ffmpeg.org/pipermail/libav-user/2022-August/013157.html">http://ffmpeg.org/pipermail/libav-user/2022-August/013157.html</a></div></BODY></HTML>