What would be the best way to resize a user recorded video on the iphone?
I currently have the ability to get video data in two ways:
1) Get the file URL from
Alternative 2 is not going to work in real-time.
For alternative 1, use
AVAssetExportSession initialized with one of the desired presets - for example
AVAssetExportPresetHighestQuality for additional resolutions.
Note that video files usually have 16:9 (or 4:3) aspect ratios, so 320x320 is not a valid option. There are no good reasons for resizing to other than the supported resolutions, unless you plan on distribute to other phones, in which case server-side transcoding is available.