title: Long conversion of ffmpeg 1080-240p
body: <p>I'm trying to convert video files from 1080p format to smaller 240p, 360p, and 720p formats. My current code works fine, but it does take a long time. I was looking for help at ffmpeg.org, but I can not rewrite my current code to work faster.</p>
  
  <p>I tried to add:</p>
  
  <pre><code>-preset fast
  </code></pre>
  
  <p>But this is not effective</p>
  
  <p>My code</p>
  
  <pre><code>exec('ffmpeg -i 1080p.mp4 -s 800x480 -c:v libx264 480p.mp4 -s 640x360 -c:v libx264 360p.mp4 -s 320x240 -c:v libx264  240p.mp4');
  </code></pre>