Thanks for the answer.
 
Yes, I tried to configure for mjpeg
 
    if (!(pInpCdcCtx = avcodec_alloc_context3(pInpCdc)))
    {
        PrintError("Error allocate decoder context", (rt = AVERROR(ENOMEM)));
        return rt;
    }
    pInpCdcCtx->thread_count = 4;
 
and after your answer I added
 
        if (!(pSwsCtx = sws_getContext(pInpCdcCtx->width, pInpCdcCtx->height, 
pInpCdcCtx->pix_fmt,
                                    pOutCdcCtx->width, pOutCdcCtx->height, 
pOutCdcCtx->pix_fmt,
                                    SCALE_FLAGS, NULL, NULL, NULL)))
        {
            PrintError("Error initialize the conversion context", (rt = 
AVERROR(ENOMEM)));
            return rt;
        }
        else
             av_opt_set_int(pSwsCtx, "threads", 20, 0);
 
But there is no effect, what am I doing wrong?
 
 
>Have you tried setting "threads" option to the sws_scale context? And to
>the codec context?
>
>See:
>
>https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/HEAD:/libavfilter/vf_scale.c#l546
> 
 
 
_______________________________________________
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".

Reply via email to