On Jul 30, 2013, at 21:26 , Adi Shavit wrote:
>> 
>> You can also try to use multithreaded decoder. But this is not going
>> to help if you have more video streams in parallel than CPU cores.
> 
> I can give it a shot.
> How do I set it up?


I think Alex means something like this, here as an example with 2 threads:

AVDictionary *opts = NULL;  
av_dict_set(&opts, "threads", "2", 0);
if (avcodec_open2(pVideoCodecCtx, pVideoCodec, &opts) 
    …



_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to