<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:13px"><div id="yui_3_16_0_1_1438784113797_24910"><span id="yui_3_16_0_1_1438784113797_25250">Hi all,</span></div><div id="yui_3_16_0_1_1438784113797_24861"><span><br></span></div><div dir="ltr" id="yui_3_16_0_1_1438784113797_24863"><span id="yui_3_16_0_1_1438784113797_24862">I am developing an rtsp/rtp streaming server for which I am using x264 with the ffmpeg codec libraries for real time encoding of HD video. I had tuned the encoder for zero latency, however the 'sliced-threads' option that this applies was causing an issue for the client consuming the stream. This option appears to reduce the memory usage significantly in the region of 50%, any ideas why this should be the case?.</span> </div><div dir="ltr" id="yui_3_16_0_1_1438784113797_24863"><span id="yui_3_16_0_1_1438784113797_25089">The memory overhead is causing issues for my server especially when encoding multiple streams and I need to try and reduce this. </span>Are there any additional tricks that I might be able to employ to reduce the memory overhead of the x264 encoder?</div><div dir="ltr" id="yui_3_16_0_1_1438784113797_24863"><span id="yui_3_16_0_1_1438784113797_25285"><br id="yui_3_16_0_1_1438784113797_25284"></span></div><div dir="ltr" id="yui_3_16_0_1_1438784113797_24863"><span id="yui_3_16_0_1_1438784113797_25246">The following shows my current codec settings</span></div><div dir="ltr" id="yui_3_16_0_1_1438784113797_24863"><span><br></span></div><div dir="ltr" id="yui_3_16_0_1_1438784113797_24863"><font face="Courier New, courier, monaco, monospace, sans-serif" id="yui_3_16_0_1_1438784113797_25213" class="">x264 - core 140 - H.264/MPEG-4 AVC codec - Copyright 2003-2013 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=0 rc=cbr mbtree=0 bitrate=1024 ratetol=1.0 qcomp=0.60 qpmin=1 qpmax=31 qpstep=4 vbv_maxrate=1024 vbv_bufsize=1280 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00.</font><br></div><div dir="ltr" id="yui_3_16_0_1_1438784113797_24863"><font face="Courier New, courier, monaco, monospace, sans-serif" class=""><br></font></div><div dir="ltr" id="yui_3_16_0_1_1438784113797_24863"><font face="Courier New, courier, monaco, monospace, sans-serif" class=""><span style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;" class="">Many thanks,</span><br></font></div><div dir="ltr" id="yui_3_16_0_1_1438784113797_24863"><font face="Courier New, courier, monaco, monospace, sans-serif" class=""><span style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;" class=""><br></span></font></div><div dir="ltr" id="yui_3_16_0_1_1438784113797_24863"><font face="Courier New, courier, monaco, monospace, sans-serif" class=""><span style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;" class="">mike</span></font></div></div></body></html>