<div dir="ltr"><div class="gmail_extra">Thanks for the quick response!!</div><div class="gmail_extra"> </div><div class="gmail_extra">2 queries:</div><div class="gmail_extra"> </div><div class="gmail_extra">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?</div>
<div class="gmail_extra"> </div><div class="gmail_extra">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?</div>
<div class="gmail_extra"> </div><div class="gmail_extra">Thanks,</div><div class="gmail_extra">Ierum<br><br></div><div class="gmail_quote">On Fri, Jan 3, 2014 at 12:35 PM, Евгений Гарифуллин <span dir="ltr"><<a href="mailto:grisme@yandex.ru" target="_blank">grisme@yandex.ru</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><br>
03.01.2014, 00:38, "Ierum Shanaya" <<a href="mailto:ierumshanaya85@gmail.com">ierumshanaya85@gmail.com</a>>:<br>
<div><div class="h5">> hi,<br>
><br>
> 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.<br>
><br>
> Could you please help me understand - how can we use multithreading to decode an incoming static video stream.<br>
><br>
> If you can share me some sample programs , it would be of great help.<br>
><br>
> Thanks,<br>
> Ierum<br>
<br>
</div></div>threads for multithreading decoding (AVCodecContext::thread_count) must be set _before_ call to avcodec_open().<br>
<span><font color="#888888"><br>
--<br>
С уважением, Евгений Гарифуллин.<br>
e-mail: <a href="mailto:grisme@yandex.ru">grisme@yandex.ru</a><br>
jabber: <a href="mailto:joffadark@jabber.ufanet.ru">joffadark@jabber.ufanet.ru</a><br>
ICQ : 387906261<br>
</font></span><div><div class="h5">_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div></div></blockquote></div><div class="gmail_extra"><br></div></div>