title: Video rotation with FFmpeg
body: <p>I'm developing a PHP web service for my iPhone app in order for the users to upload videos. When users want to see a video on the site they get a horizontal video,  so I need rotate the video using FFmpeg commands. Can someone help me?</p>
  
  <pre><code>function make_rotation($input, $output, $transpose="1") {
      $ffmpegpath = "ffmpeg";
      if(!file_exists($input)) return false;  
      //$command = "$ffmpegpath -i $input -vf 'transpose=$transpose' $output";
      //$command = "ffmpeg -vfilters 'rotate=270' -i $input $output";
      $command ="ffmpeg -i $input -vf 'transpose=$transpose'  $output";
      exec($command);
      return true;
  }
  </code></pre>
  
  <p>Thanks All</p>