[Libav-user] Decoding H264 frames on Windows

Alex Grosu agrosu at c-s.ro
Mon Oct 3 15:26:40 EEST 2016

I am just calling avcodec_alloc_context(). This sets thread_count to 1. 
I tried set it to 4, but it seems there is no difference. Is there any 
other flag I should set along with thread_count?

Thank you


On 10/3/2016 2:58 PM, Carl Eugen Hoyos wrote:
> 2016-10-03 13:55 GMT+02:00 Alex Grosu <agrosu at c-s.ro>:
>> I built libavcodec some time ago on Windows and I am calling the API
>> functions from my C app. (avcodec_find_decoder, avcodec_open,
>> avcodec_decode_video2, sws_scale). Now, having big frames with a lot of
>> details, the time decoding increased > 55 ms, which is greater than the time
>> a frame should be displayed (40 ms). I have to do some threading logic
>> programatically, using libavcodec, not from command line.
> To which value do you currently set AVCodecContext->thread_count for
> decoding?
> Please do not top-post here, Carl Eugen
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user

More information about the Libav-user mailing list