What is the default video pixel resolution for the IPhone 5? - ios

I am using UIImagePickerController to load the video camera but I would like the resolution to match the default camera app resolution on the IPhone.
I know the default for the 4S is
UIImagePickerControllerQualityTypeIFrame1280x720
Does anyone have the info for the other models?
Thanks

Related

iOS UIImagePickerController & Camera Stabilization

I'm trying to ascertain whether camera stabilization will be used in a UIImagePickerController video record session. I've seen code for this in AVCaptureSession, but nothing shows up in the same way for UIImagePickerController.
If my device has camera stabilization capability (iPad Air 2, for example), will it be applied by default if I use the UIImagePickerController to record video? And if not, is there a way I can specify that it does? I don't want to have to switch to AVCaptureSession and lose the image picker, just to enable the stabilization.
Thanks

iOs: Low frame per second(fps) for VGA resolution

I'm facing an issue in broadcasting video from one iPhone to another iPhone.
The issue is when I view the friend's live video in my iPhone, the frame per second(fps) is very low(it is 12fps). Video quality and audio is looking fine but the only problem is fps.
I don't know where I need to config/change the code to convert from variable fps to constant fps. Also to increase the fps as **24/30**.
The resolution I used for broadcasting
RESOLUTION_VGA, // 480x640px (landscape) & 640x480px (portrait)
I'm using following libraries for streaming
MediaLibiOS - link
Ffmpeg-2.2.1
CommLibiOS
libx264-r2409
Wowza is a Media Server and iOS target version is 7.0
Please help !
Thanks in advance.

Retrieve iOS videocamera resolution

I need to retrieve the resolution in pixels of a movie captured by iOS camera of the iPhone...
Is there a library like UIDevice that check which type of device I'm using, also for the camera information?
Everything depends in which mode you'll start capturing video.
According to this link: https://developer.apple.com/library/mac/documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/04_MediaCapture.html#//apple_ref/doc/uid/TP40010188-CH5-SW30
You can try to capture video with AVCaptureSessionPresetHigh preset, and than check what's the size of captured image.
This should give you highest video resolution in recording mode.

Maximum video out resolution of iPad Mini?

I'm developing an iPad app that can employ an external monitor. When I plug my iPad 3 into my external monitor, I get back a list of resolutions from the external UIScreen object that includes 1920x1080.
When I do the same with my iPad mini, the max resolution I get back is 1600x900.
This would make me think the iPad mini doesn't support full HD external video, but the Apple specs say this:
Video mirroring and video out support: Up to 1080p through Lightning
Digital AV Adapter and Lightning to VGA Adapter (adapters sold
separately)
...which seems pretty unambiguous that it should support full HD.
Does anyone know what's going on here?
Thanks!
The iPad mini does not HAVE the resolution for 1080p (it has 1024x768 screen resolution while 1080p is 1920x1080 as you mentioned), hence, mirroring does not make sense.
Video playback, on the other hand, should work.
TV resolution can be set in Settings>General>TV Out.
The max resolution shown in that menu is your iPhone or iPad's screen resolution.

iOS FullScreen AVCaptureSession

I am developing a realtime video processing app for iOS 5. The video stream dimensions need to match the screen size of the device. I currently only have a iPhone 4 to develop against. For the iPhone 4 I set the AVCaptureSession preset to AVCaptureSessionPresetMedium:
AVCaptureSession *session = [AVCaptureSession new];
[session setSessionPreset:AVCaptureSessionPresetMedium];
The captured images (via CMSampleBufferRef) have the size of the screen.
My question: Is the assumption correct that the images captured with a session preset of AVCaptureSessionPresetMedium have the full screen device dimensions on iPhone 4s and iPad2 as well? I unfortunately cannot verify that myself.
I looked at the apple documentation:
http://developer.apple.com/library/mac/#documentation/AVFoundation/Reference/AVCaptureSession_Class/Reference/Reference.html#//apple_ref/doc/constant_group/Video_Input_Presets
but I cannot find a ipad2 dimension preset of 1024/768 and would like to save me the performance penalty of resizing images in real time.
Whats the recommended path to go?
The resolution of the camera and the resolution of the screen aren't really related anymore. You say
The captured images (via CMSampleBufferRef) have the size of the
screen
but I don't think this is actually true (and it may vary by device). A medium capture on an iPad 2 and an iPhone 4s is 480x360. Note this isn't even the same aspect ratio as the screen on a phone or iPod: the camera is 4x3 but the screen is 3x2.

Resources