<br><br>W dniu środa, 5 sierpnia 2015 Olivier Roger <<a href="mailto:oroger@prynel.com">oroger@prynel.com</a>> napisał(a):<div><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="FR" link="blue" vlink="purple"><p class="MsoNormal"><span lang="EN-US">I have identified sws_scale as the bottleneck. On a samsung tablet<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">with a 2500*1600 display it take more than 100ms to convert YUV to RGB <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">causing huge latency in the video stream.<u></u><u></u></span></p><p class="MsoNormal">Is there a way to speed up this conversion ? It doesn't seems to be hardware accelerated</p></div></blockquote><div><br></div><div>sws stands for software scaler (or something like that) so don't be supprised it is software coversion. if you render to opengl context/or you are able to, then you may want to do this conversion in opengl shaders. i used to easy play full hd on ipad2 using ffmpeg for decodig with color space conversions in shaders. </div></div><div>you may use libavdecive.opengl* as refference or use directly.</div>