how to export video asset via AVAssetExportSession in portrait mode
问题 when i export a video asset via AVAssetExportSession the result file is in landspace mode. (file grabbed via itune->apps->file sharing->my app). how can i export the video asset in portrait mode (rotate it)? 回答1: The video coming from the iPhone capture device are always landscape orientated whatever the device orientation is when capturing. If you want to rotate your video, the 'simple' solution is to assign a transform to the video track of the exported session. Create 2 mutable tracks in