[Libav-user] "Circular buffer overrun" error when reading UDP stream

Kalileo kalileo at universalx.net
Tue Jul 30 17:32:36 CEST 2013


On Jul 30, 2013, at 22:18 , Vahid Kowsari wrote:

> Kalileo wrote:
>> 
>> 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) 
>>>> 
> Doesnt the decoder do this as default? If I just use the API to decode a video it creates multiple threads automatically.
> 

Yes, it does (at least libx264 does), but you can also specify exactly how many you want it to use. Useful if you have many decoders running and want to limit how many threads they take per encoder.


More information about the Libav-user mailing list