Thanks for the quick response!! 2 queries:
1) Do we have to also set the thread_type ( thread_type = FF_THREAD_FRAME|FF_THREAD_SLICE) ? or Just by setting the thread count (AVCodecContext::thread_count) before avcodec_open() works? 2) Do we have to do the thread synchorinization also? or ffmpeg library handles that.. Because I had read in some links/discussions, that the functions avcodec_open() and avcodec_close() are not thread safe? Thanks, Ierum On Fri, Jan 3, 2014 at 12:35 PM, Евгений Гарифуллин <[email protected]>wrote: > > 03.01.2014, 00:38, "Ierum Shanaya" <[email protected]>: > > hi, > > > > I tried looking into the documentation of how to use multithreading to > decode a h264 or mpg video static file, but could not find any detailed > note. > > > > Could you please help me understand - how can we use multithreading to > decode an incoming static video stream. > > > > If you can share me some sample programs , it would be of great help. > > > > Thanks, > > Ierum > > threads for multithreading decoding (AVCodecContext::thread_count) must be > set _before_ call to avcodec_open(). > > -- > С уважением, Евгений Гарифуллин. > e-mail: [email protected] > jabber: [email protected] > ICQ : 387906261 > _______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user >
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
