I would like, depending on the device and settings in my application, transcode the video into a specific video format. For example, if a user has an iPhone 4S and you choose the average settings in my application, I would like to convert the video to 540p before starting processing. If he chooses high, then I would like to transcode to 720p.
I could read the video frame by frame, resize and save to disk, but this does not seem very efficient. What would be the easiest and fastest way to transcode a video that I can submit to my video processing libraries?
I tried using the videoQuality settings on my UIImagePickerController, but it doesn't seem to work even when I set it to UIImagePickerControllerQualityTypeIFrame960x540, my video comes out as 720p (640x480 works, but I need to be more granular).
source share