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 <[email protected] >: > 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 > [email protected] > https://ffmpeg.org/mailman/listinfo/libav-user > > To unsubscribe, visit link above, or email > [email protected] with subject "unsubscribe". > -- С уважением Алексей Комаров.
_______________________________________________ Libav-user mailing list [email protected] https://ffmpeg.org/mailman/listinfo/libav-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
