title: How to implement fast encoding with ffmpeg?
body: <p>I want to know that how can I  implement fast encoding with ffmpeg. 
  I used this code: </p>
  
  <pre><code>vcodec libx264 -pix_fmt yuv420p -r 30 -g 60 -b:v 1000k -shortest -acodec libmp3lame -b:a 128k -ar 44100 -threads 0 -preset veryfast
  </code></pre>
  
  <p>But it only uses 50% CPU(dual xeon 2.3 ghz) and 2% (15gb) Ram.</p>
  
  <p>Now I want it to use a lot of cpu and ram for fast encoding, how to do? Thanks everyone</p>