<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1496325783993_2703" dir="ltr">I'm attempting to set the mpeg2video encoder to use the threads within my existing thread pool.  I'm encoding SD interlaced PAL content, but I cannot seem to get the encoder to callback into my user-defined execute function(s). To keep things simple, I have tried testing the callbacks with GDB before attempting to post the work to my thread pool.</div><div id="yui_3_16_0_ym19_1_1496325783993_2703" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1496325783993_2703" dir="ltr">I have attached a link to a code snippet to provide some insight on how the encoder is being configured.</div><div id="yui_3_16_0_ym19_1_1496325783993_2703"><br></div><div id="yui_3_16_0_ym19_1_1496325783993_2749">https://pastebin.com/qLZ6ZYMy</div><div dir="ltr" id="yui_3_16_0_ym19_1_1496325783993_2750"><br id="yui_3_16_0_ym19_1_1496325783993_2751"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1496325783993_2750">Note: In the code snippet provided, the code detects that threads may be used in conjunction with slices.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1496325783993_2750"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1496325783993_2750"><br>Admittedly, there are a few fields which are linked, yet they do add for some confusion.  The trunk docs are a bit sparse on the first two (2) fields.  I may try update the docs if I can retrieve some additional information. </div><div dir="ltr" id="yui_3_16_0_ym19_1_1496325783993_2750"> * AVCodecContext::thread_type<br> * AVCodecContext::active_thread_type<br> * AVCodec::capabilities</div><div dir="ltr" id="yui_3_16_0_ym19_1_1496325783993_2750"><br><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1496325783993_2750">Any tips/suggestions would be much appreciated...</div><div dir="ltr" id="yui_3_16_0_ym19_1_1496325783993_2750"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1496325783993_2750"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1496325783993_2750">Gavin.</div></div></body></html>