<div dir="ltr">I recommend parameters.i_threads to be default (i.e. automatic). This may reduce encoding time.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 February 2015 at 23:07, Ryan Bauer <span dir="ltr"><<a href="mailto:r.bauer234@gmail.com" target="_blank">r.bauer234@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Everybody,<div><br></div><div>I have recently started working with x264 for a streaming application. I do have some questions about latency and how to stream using a traditional socket.</div><div><br></div><div>The parameters I currently have setup for my x264 encoder are as follows:</div><div><br></div><div><div>x264_param_default_preset(&parameters, "veryfast", "zerolatency");</div><div>parameters.i_log_level = X264_LOG_INFO;</div><div>parameters.i_threads = 2;</div><div>parameters.i_width = 1600;</div><div>parameters.i_height = 900;</div><div>parameters.i_keyint_max = 60;</div><div>parameters.b_intra_refresh = 1;</div><div>parameters.rc.i_rc_method = X264_RC_CRF;</div><div>parameters.rc.f_rf_constant = 24;</div><div>parameters.rc.f_rf_constant_max = 35;</div><div>parameters.i_sps_id = 7;</div><div><br></div><div>parameters.b_repeat_headers = 1;    // to get header before every I-Frame</div><div>parameters.b_annexb = 1; // put start code in front of nal. we will remove start code later</div><div>x264_param_apply_profile(&parameters, "baseline");</div><div><br></div><div>encoder = x264_encoder_open(&parameters);</div><div>x264_picture_alloc(&picture_in, X264_CSP_I420, parameters.i_width, parameters.i_height);</div><div>picture_in.i_type = X264_TYPE_AUTO;</div><div>picture_in.img.i_csp = X264_CSP_I420;</div><div>picture_in.img.i_plane = 4;</div></div><div><br></div><div>Is there anything about these parameters that could be changed to help reduce latency? </div><div><br></div><div>Is it possible to stream nal units using traditional UDP sockets? I would assume it is just a matter of using the payload and length properties, granted there is a lot more to it. I am currently using Live555 to stream, but I am just curious if it is possible using other means.</div><div><br></div><div>I appreciate any help.</div></div>
<br>_______________________________________________<br>
x264-devel mailing list<br>
<a href="mailto:x264-devel@videolan.org">x264-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x264-devel" target="_blank">https://mailman.videolan.org/listinfo/x264-devel</a><br>
<br></blockquote></div><br></div>