title: How to use libvlc for low-frame-rate rtsp stream decoding
body: <p>I am using libvlc for RTSP h.264 bitstream decoding and display in PC. For the best experience (i.e. low latency), I uses the following options</p>
  
  <pre><code>:file-caching=0
  :tcp-caching=0
  :rtsp-caching=0
  :network-caching=0
  :clock-jitter=0
  :avcodec-fast
  </code></pre>
  
  <p>With these parameters, the latency is acceptable in comparison to the open-source project "ONVIF device manager"(ODM) where FFMPEG is used for decoding.</p>
  
  <p>When RTSP server deliver low frame-rate RTSP stream, (1 frame/second). These configuration will freeze after displaying a few frames (3-5 frames). </p>
  
  <p>I have tried 2 different approaches</p>
  
  <ol>
  <li><p>Disable synchronization by</p>
  
  <p>:clock-synchro=0</p></li>
  </ol>
  
  <p>This will enable the decoding process to go on, however, an accumulated period of time lagging could be observed.</p>
  
  <ol start="2">
  <li>Use network-cache</li>
  </ol>
  
  <p>My experiments shows that</p>
  
  <pre><code>:network-caching=1200
  </code></pre>
  
  <p>Will make decoding go smoothly, however, the latency is over 1-2 second in comparison to ODM.</p>
  
  <p>Is there a way to handle the low frame rate issue in libvlc without providing such big latency? </p>