title: Rotating videos with FFmpeg
body: <p>I have been trying to figure out how to rotate videos with FFmpeg. I am working with iPhone videos taken in portrait mode. I know how to determine the current degrees of rotation using <a href="http://mediainfo.sourceforge.net/en">MediaInfo</a> (excellent library, btw) but I'm stuck on FFmpeg now.</p>
  
  <p>From what I've read, what you need to use is a <strong>vfilter</strong> option. According to what I see, it should look like this:</p>
  
  <pre><code>ffmpeg -vfilters "rotate=90" -i input.mp4 output.mp4
  </code></pre>
  
  <p>However, I can't get this to work. First, <strong>-vfilters</strong> doesn't exist anymore, it's now just <strong>-vf</strong>. Second, I get this error:</p>
  
  <pre><code>No such filter: 'rotate'
  Error opening filters!
  </code></pre>
  
  <p>As far as I know, I have an all-options-on build of FFmpeg. Running <strong><em>ffmpeg -filters</em></strong> shows this:</p>
  
  <pre><code>Filters:
  anull            Pass the source unchanged to the output.
  aspect           Set the frame aspect ratio.
  crop             Crop the input video to x:y:width:height.
  fifo             Buffer input images and send them when they are requested.
  format           Convert the input video to one of the specified pixel formats.
  hflip            Horizontally flip the input video.
  noformat         Force libavfilter not to use any of the specified pixel formats
   for the input to the next filter.
  null             Pass the source unchanged to the output.
  pad              Pad input image to width:height[:x:y[:color]] (default x and y:
   0, default color: black).
  pixdesctest      Test pixel format definitions.
  pixelaspect      Set the pixel aspect ratio.
  scale            Scale the input video to width:height size and/or convert the i
  mage format.
  slicify          Pass the images of input video on to next video filter as multi
  ple slices.
  unsharp          Sharpen or blur the input video.
  vflip            Flip the input video vertically.
  buffer           Buffer video frames, and make them accessible to the filterchai
  n.
  color            Provide an uniformly colored input, syntax is: [color[:size[:ra
  te]]]
  nullsrc          Null video source, never return images.
  nullsink         Do absolutely nothing with the input video.
  </code></pre>
  
  <p>Having the options for <strong>vflip</strong> and <strong>hflip</strong> are great and all, but they just won't get me where I need to go. I need to the ability to rotate videos 90 degrees at the very least. 270 degrees would be an excellent option to have as well. Where have the rotate options gone?</p>