title: iOS AVFoundation: Setting Orientation of Video
body: <p>I've been struggling with several dimensions to the problem of controlling video orientation during and after capture on an iOS device. Thanks to previous answers and documentation from Apple I've been able to figure it out. However, now that I want to push some video to a web site, I'm running into particular problems. I've outlined this problem in particular <a href="https://stackoverflow.com/questions/12486870/chrome-html5-video-flipping-portrait-sideways">in this question</a>, and <a href="http://help.videojs.com/discussions/problems/1508-video-orientation-for-iphone-wrong" rel="nofollow noreferrer">the proposed solution</a> turns out to require orientation options to be set during video encoding.</p>
  
  <p>That may be, but I have no clue how to go about doing this. The documentation around setting orientation is in respect to setting it correctly for display on the device, and I've implemented the advice <a href="http://developer.apple.com/library/ios/#qa/qa1744/_index.html%23//apple_ref/doc/uid/DTS40011134" rel="nofollow noreferrer">found here.</a> However, this advice does not address setting the orientation properly for non-Apple software, such as VLC or the Chrome browser.</p>
  
  <p>Can anyone provide insight into how to set orientation properly on the device such that it displays correctly for all viewing software?</p>