[Libav-user] How set sws_flags in Filter
Aleksei Komarov
abkomarov at gmail.com
Wed Sep 14 13:11:06 EEST 2022
I recommend not to use sws_sclale at all. It is a real bottleneck of all
encoding process. I had a bad experience using sws_sclale for RGB->YUV
conversion. I replace the ffmpeg ( sws_sclale) conversion with this
https://github.com/lemenkov/libyuv
чт, 25 авг. 2022 г. в 07:53, wolverin via Libav-user <libav-user at ffmpeg.org
>:
> Sorry if the question is stupid )) but I didn't find how to do it
>
> I am using AVFilterContext for scaling because it is multithreaded but
> still slow and I want to specify SWS_FAST_BILINEAR
> I'm trying to specify this (scale work), but I get an error: No such
> filter: 'sws_flags'
>
> char args[512];
> …
> snprintf(args, sizeof(args), "scale=%d:%d,sws_flags=1",
> pCdcCtxOut->width, pCdcCtxOut->height);
> if ((rt = avfilter_graph_parse_ptr(pFltGph, args, &pFltInp,
> &pFltOut, NULL)) < 0)
> {
> PrintError("Error avfilter_graph_parse_ptr", rt);
> goto FILTER_END;
> }
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/libav-user
>
> To unsubscribe, visit link above, or email
> libav-user-request at ffmpeg.org with subject "unsubscribe".
>
--
С уважением Алексей Комаров.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20220914/7b445d31/attachment.htm>
More information about the Libav-user
mailing list