title: Reducing FFMPEG h264 video stream latency
body: <p>I'm using FFMPEG(h264) and I want to reduce latency as much as possible. Now it's about 700 ms and I can't really make it lower. I tried almost all, so maybe anyone has idea how to help me? </p>
  
  <pre><code>ffmpeg -f dshow -i video="screen-capture-recorder" -pix_fmt yuv420p -probesize 32 -r 100 -an -vcodec libx264 -crf 40 -preset ultrafast -tune zerolatency -threads 8 -thread_type slice -f mpegts udp://192.168.88.228:1234
  </code></pre>
  
  <p>The weird thing is I got this latency even on 127.0.0.1....
  (on the other side I use just ffplay udp:// .......)</p>