<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1484339642289_11784">Hello. </div><div id="yui_3_16_0_ym19_1_1484339642289_11785"><br id="yui_3_16_0_ym19_1_1484339642289_11786"></div><div id="yui_3_16_0_ym19_1_1484339642289_11787">I want to build an application which encodes frames grabbed from a V4L2 device and streams them through HTTP.</div><div id="yui_3_16_0_ym19_1_1484339642289_11788">I don't want to use threads and the encoding and streaming functions will be called into one main loop.</div><div id="yui_3_16_0_ym19_1_1484339642289_11789">Therefore, I ask: </div><div id="yui_3_16_0_ym19_1_1484339642289_11789"><br></div><div id="yui_3_16_0_ym19_1_1484339642289_11789">1) does x264_encoder_encode() function block until the frame is complete?<br></div><div id="yui_3_16_0_ym19_1_1484339642289_11790"><br></div><div id="yui_3_16_0_ym19_1_1484339642289_11790">2) If it blocks by default, is there a way to avoid blocking without using threads? </div><div id="yui_3_16_0_ym19_1_1484339642289_11791">(The x264 can use, if required, internal threads, but I want don't want to call threads in my application)</div><div id="yui_3_16_0_ym19_1_1484339642289_11792"><br id="yui_3_16_0_ym19_1_1484339642289_11793"></div><div id="yui_3_16_0_ym19_1_1484339642289_11792" dir="ltr">3) How does VLC manage multiple simultaneous x264 encoders? Does it use threads?</div><div id="yui_3_16_0_ym19_1_1484339642289_11792"><br></div><div id="yui_3_16_0_ym19_1_1484339642289_11792"><br></div><div id="yui_3_16_0_ym19_1_1484339642289_11794">Thanks!</div><div dir="ltr" id="yui_3_16_0_ym19_1_1484339642289_11795"><br id="yui_3_16_0_ym19_1_1484339642289_11796"></div></div></body></html>