title: how to use ffmpeg in laravel to compress video file size
body: <p>This is my first time using ffmpeg. I don't know if there is a tutorial on how to use ffmpeg in laravel to compress videos. Can someone please help me please?</p>
  
  <pre><code>   $pro=new User;
      $pro-&gt;company_name=$request-&gt;Business_name;
      $pro-&gt;cityandstate=$request-&gt;city;
      $pro-&gt;zipcode=$request-&gt;zip_code;
      $pro-&gt;phonenumber=$request-&gt;Phone_Number;
      $pro-&gt;website=$request-&gt;Website;
  
      $pro-&gt;tags=$request-&gt;tags;
      $pro-&gt;category=$request-&gt;categories;
      $pro-&gt;other=$request-&gt;other;
  
      $vid = $request-&gt;file('video');
        $filename = uniqid().$vid-&gt;getClientOriginalName();
        $path = $vid-&gt;storeAs(
  'introvideo',
  $filename);
        $location = public_path('/vids',$filename);
        $vid-&gt;move($location);
        $pro-&gt;intro_video= $filename;
  
  
  
  
  
  
  
      $pro-&gt;save();
  </code></pre>