<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Thank you very much for this tip. Will try it out!<div class=""><br class=""></div><div class="">In fact I don’t need scaling. I really just need color conversion as the size of the frame never changes during the process.</div><div class=""><br class=""></div><div class="">Best regards,</div><div class=""><br class=""></div><div class="">Nuno</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 18 Jul 2021, at 14:41, Yurii Monakov <<a href="mailto:monakov.y@gmail.com" class="">monakov.y@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class="">Hi,</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">You can try libyuv library to convert colorspaces. It is really faster than swscale from our tests.</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Yurii</div><div class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">сб, 17 июля 2021 г. в 15:24, Nuno Santos <<a href="mailto:nuno.santos@imaginando.pt" class="">nuno.santos@imaginando.pt</a>>:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Nicolas,<br class="">
<br class="">
Thanks for your reply.<br class="">
<br class="">
The referred measures are based on:<br class="">
<br class="">
- Intel i5 2.4 Ghz quad core (desktop)<br class="">
- 2018 iPad Pro 12’9 (A12X processor)<br class="">
<br class="">
Regards,<br class="">
<br class="">
Nuno<br class="">
<br class="">
> On 17 Jul 2021, at 12:49, Nicolas George <<a href="mailto:george@nsup.org" target="_blank" class="">george@nsup.org</a>> wrote:<br class="">
> <br class="">
> Nuno Santos (12021-07-17):<br class="">
>> I’m using libav to mux a video file at full hd. <br class="">
>> <br class="">
>> At some point I need to convert the original frame at 1920x1080 RGB to YUV420P<br class="">
>> <br class="">
>> This requires sws_scale to be called. On desktop it takes around 7/8 ms to convert a frame. On iOS it takes 28 ms.<br class="">
>> <br class="">
>> I guess sws_scale is not optimised for iOS. How is people doing it on iOS then?<br class="">
> <br class="">
> I do not think that sws_scale requires OS-specific optimizations.<br class="">
> <br class="">
> What are the CPUs of your desktop and mobile devices?<br class="">
> <br class="">
> Regards,<br class="">
> <br class="">
> -- <br class="">
>  Nicolas George<br class="">
> _______________________________________________<br class="">
> Libav-user mailing list<br class="">
> <a href="mailto:Libav-user@ffmpeg.org" target="_blank" class="">Libav-user@ffmpeg.org</a><br class="">
> <a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank" class="">https://ffmpeg.org/mailman/listinfo/libav-user</a><br class="">
> <br class="">
> To unsubscribe, visit link above, or email<br class="">
> <a href="mailto:libav-user-request@ffmpeg.org" target="_blank" class="">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".<br class="">
<br class="">
_______________________________________________<br class="">
Libav-user mailing list<br class="">
<a href="mailto:Libav-user@ffmpeg.org" target="_blank" class="">Libav-user@ffmpeg.org</a><br class="">
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank" class="">https://ffmpeg.org/mailman/listinfo/libav-user</a><br class="">
<br class="">
To unsubscribe, visit link above, or email<br class="">
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank" class="">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".<br class="">
</blockquote></div></div>
_______________________________________________<br class="">Libav-user mailing list<br class=""><a href="mailto:Libav-user@ffmpeg.org" class="">Libav-user@ffmpeg.org</a><br class="">https://ffmpeg.org/mailman/listinfo/libav-user<br class=""><br class="">To unsubscribe, visit link above, or email<br class="">libav-user-request@ffmpeg.org with subject "unsubscribe".<br class=""></div></blockquote></div><br class=""></div></body></html>