[英]Retrieve iOS videocamera resolution
我需要检索由iPhone的iOS相机拍摄的电影的像素分辨率...是否有像UIDevice这样的库检查我正在使用哪种类型的设备,还有相机信息?
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 根据此链接: 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. 您可以尝试使用AVCaptureSessionPresetHigh
预设捕获视频,然后检查捕获图像的大小。
This should give you highest video resolution in recording mode. 这应该在录制模式下为您提供最高的视频分辨率。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.