Export Captured Movie Only plays in Landscape Mode, and is Rotated
<p>Before I post a lot of code here is the scenario:</p>

<ol>
<li>Using code based on AVEditDemo from WWDC, I capture a movie using the standard control in portrait.</li>
<li>I post process the video using code identical to that in AVEditDemo which uses Core Animation.</li>
</ol>

<p>When I play the resultant video using the Camera App, it is rotated 90 degrees and is not longer "portrait" (it is now in landscape) and squashed. (The aspect ratio seems to have been swapped, width -> height &amp; height -> width.</p>

<p>Have spent many hours on this and am at a loss.</p>

<p>The desired result is a movie identical to the captured original. (With an animated overlay eventually).</p>

<p>To see this in action just download and run the AVEditDemo from Apple, turn Title "ON" and export the movie.</p>
