Before posting a lot of code, here is the script:
- Using the code based on AVEditDemo from WWDC, I take the movie using the standard control in the portrait.
- I am posting a video using a code identical to the one in AVEditDemo, which uses Core Animation.
When I play the resulting video using the Camera application, it rotates 90 degrees and is no longer a โportraitโ (now itโs in the landscape) and is crushed. (The aspect ratio seems to have been changed, width โ height and height โ width.
Spent many hours on it, and I'm at a loss.
The desired result is a film identical to the recorded original. (With animated overlay in the end).
To see this, just download and run Appleโs AVEditDemo, turn the โONโ heading on, and export the movie.
source share