title: Why is ffmpeg processing time so slow?
body: <p>I am using ffmpeg to convert and compress videos. When I upload my video file it takes a long time to process. The video can be 1.2mb or even 5.8mb or even 10mb and its still slow, I am just there staring at the screen waiting for 20 minutes or even more. What can I do to speed up the process? If you need me to provide you with my code here it is </p>
  
  <pre><code>    $viddy=new Video;   
    $file = $request-&gt;file('file');   
   $fileName =uniqid().$file-&gt;getClientOriginalName();
  
   $request-&gt;file-&gt;move(public_path('/app'), $fileName);
              $name_file=uniqid().'video.mp4';
           $ffp=FFMpeg::fromDisk('local')
           -&gt;open($fileName)
      -&gt;addFilter(function ($filters) {
          $filters-&gt;resize(new \FFMpeg\Coordinate\Dimension(640, 480));
      })
      -&gt;export()
      -&gt;toDisk('s3')
      -&gt;inFormat(new \FFMpeg\Format\Video\X264('libmp3lame'))
  
      -&gt;save($name_file);
  
                 $imageName = Storage::disk('s3')-&gt;url($name_file);
  
  
      $viddy-&gt;title=$imageName;
      $viddy-&gt;save();
  </code></pre>
  
  <p>Thanks in advance</p>