2012-09-02 3 views
9

私のアプリは動画を録画し、私は設定を使って録画する画質を設定します。 誰かがそれぞれの決意を知っているのかどうか疑問に思っていましたか?AVCaptureSessionの設定を[低]、[中]、[高]に設定した場合、それぞれの意味は?

低額でかなり価値のないようです。

高音質は本当に高いと思われますが、これらのレコーディングのファイルサイズはかなり高いです。

if (appDelegate.vidRes == 1) 
{ 
    NSLog(@"****** >>>>> SETTING VIDEO RES TO LOW <<<<< *******"); 
    [session setSessionPreset: AVCaptureSessionPresetLow]; 
} 
else if (appDelegate.vidRes == 2) 
{ 
    NSLog(@"****** >>>>> SETTING VIDEO RES TO MED <<<<< *******"); 
    [session setSessionPreset: AVCaptureSessionPresetMedium]; 
} 
else 
{ 
    NSLog(@"****** >>>>> SETTING VIDEO RES TO HIGH <<<<< *******"); 
    [session setSessionPreset: AVCaptureSessionPresetHigh]; 
} 

私は、低すぎる低レベルのいくつかの素晴らしい代替案を見つけたいと思います。そして高すぎる高品質です。

答えて

21
Preset       3G  3GS 4 back  4 front 

AVCaptureSessionPresetHigh 400x304 640x480 1280x720 640x480 
AVCaptureSessionPresetMedium 400x304 480x360 480x360  480x360 
AVCaptureSessionPresetLow  400x306 192x144 192x144  192x144 
AVCaptureSessionPreset640x480 NA  640x480 640x480  640x480 
AVCaptureSessionPreset1280x720 NA  NA  1280x720 NA 
AVCaptureSessionPresetPhoto  NA  NA  NA   NA 

出典:http://cmgresearch.blogspot.com/2010/10/augmented-reality-on-iphone-with-ios40.html

次の表は、新しいデバイスが含まれ、ソースは、独自の解像度を設定するにはMethod to find device's camera resolution iOS

+-----------------------+--------------+---------------------------------+---------------+ 
|  Device   | Camera |  AVCaptureSessionPreset  | Resolution | 
+-----------------------+--------------+---------------------------------+---------------+ 
| iPhone 4S    | FRONT  |         |    | 
|      |    | AVCaptureSessionPresetPhoto  | 640x480  | 
|      |    | AVCaptureSessionPresetHigh  | 640x480  | 
|      |    | AVCaptureSessionPresetMedium | 480x360  | 
|      |    | AVCaptureSessionPresetLow  | 192x144  | 
|      |    | AVCaptureSessionPreset640x480 | 640x480  | 
|      |    | AVCaptureSessionPreset1280x720 | not supported | 
|      |    | AVCaptureSessionPreset1920x1080 | not supported | 
|      | BACK   |         |    | 
|      |    | AVCaptureSessionPresetPhoto  | 3264x2448  | 
|      |    | AVCaptureSessionPresetHigh  | 1920x1080  | 
|      |    | AVCaptureSessionPresetMedium | 480x360  | 
|      |    | AVCaptureSessionPresetLow  | 192x144  | 
|      |    | AVCaptureSessionPreset640x480 | 640x480  | 
|      |    | AVCaptureSessionPreset1280x720 | 1280x720  | 
|      |    | AVCaptureSessionPreset1920x1080 | 1920x1080  | 
+-----------------------+--------------+---------------------------------+---------------+ 
| iPhone 5/5C/5S/6/6+ |    |         |    | 
|      | FRONT  |         |    | 
|      |    | AVCaptureSessionPresetPhoto  | 1280x960  | 
|      |    | AVCaptureSessionPresetHigh  | 1280x720  | 
|      |    | AVCaptureSessionPresetMedium | 480x360  | 
|      |    | AVCaptureSessionPresetLow  | 192x144  | 
|      |    | AVCaptureSessionPreset640x480 | 640x480  | 
|      |    | AVCaptureSessionPreset1280x720 | 1280x720  | 
|      |    | AVCaptureSessionPreset1920x1080 | not supported | 
|      | BACK   |         |    | 
|      |    | AVCaptureSessionPresetPhoto  | 3264x2448  | 
|      |    | AVCaptureSessionPresetHigh  | 1920x1080  | 
|      |    | AVCaptureSessionPresetMedium | 480x360  | 
|      |    | AVCaptureSessionPresetLow  | 192x144  | 
|      |    | AVCaptureSessionPreset640x480 | 640x480  | 
|      |    | AVCaptureSessionPreset1280x720 | 1280x720  | 
|      |    | AVCaptureSessionPreset1920x1080 | 1920x1080  | 
+-----------------------+--------------+---------------------------------+---------------+ 
| iPhone 6S/6S   |    |         |    | 
|      | FRONT camera |         |    | 
|      |    | AVCaptureSessionPresetPhoto  | 1280x960  | 
|      |    | AVCaptureSessionPresetHigh  | 1280x720  | 
|      |    | AVCaptureSessionPresetMedium | 480x360  | 
|      |    | AVCaptureSessionPresetLow  | 192x144  | 
|      |    | AVCaptureSessionPreset640x480 | 640x480  | 
|      |    | AVCaptureSessionPreset1280x720 | 1280x720  | 
|      |    | AVCaptureSessionPreset1920x1080 | not supported | 
|      | BACK camera |         |    | 
|      |    | AVCaptureSessionPresetPhoto  | 4032x3024  | 
|      |    | AVCaptureSessionPresetHigh  | 1920x1080  | 
|      |    | AVCaptureSessionPresetMedium | 480x360  | 
|      |    | AVCaptureSessionPresetLow  | 192x144  | 
|      |    | AVCaptureSessionPreset640x480 | 640x480  | 
|      |    | AVCaptureSessionPreset1280x720 | 1280x720  | 
|      |    | AVCaptureSessionPreset1920x1080 | 1920x1080  | 
+-----------------------+--------------+---------------------------------+---------------+ 
| iPad 2    |    |         |    | 
|      | FRONT  |         |    | 
|      |    | AVCaptureSessionPresetPhoto  | 640x480  | 
|      |    | AVCaptureSessionPresetHigh  | 640x480  | 
|      |    | AVCaptureSessionPresetMedium | 480x360  | 
|      |    | AVCaptureSessionPresetLow  | 192x144  | 
|      |    | AVCaptureSessionPreset640x480 | 640x480  | 
|      |    | AVCaptureSessionPreset1280x720 | not supported | 
|      |    | AVCaptureSessionPreset1920x1080 | not supported | 
|      | BACK   |         |    | 
|      |    | AVCaptureSessionPresetPhoto  | 960x720  | 
|      |    | AVCaptureSessionPresetHigh  | 1280x720  | 
|      |    | AVCaptureSessionPresetMedium | 480x360  | 
|      |    | AVCaptureSessionPresetLow  | 192x144  | 
|      |    | AVCaptureSessionPreset640x480 | 640x480  | 
|      |    | AVCaptureSessionPreset1280x720 | 1280x720  | 
|      |    | AVCaptureSessionPreset1920x1080 | not supported | 
+-----------------------+--------------+---------------------------------+---------------+ 
| iPad 3    |    |         |    | 
|      | FRONT  |         |    | 
|      |    | AVCaptureSessionPresetPhoto  | 640x480  | 
|      |    | AVCaptureSessionPresetHigh  | 640x480  | 
|      |    | AVCaptureSessionPresetMedium | 480x360  | 
|      |    | AVCaptureSessionPresetLow  | 192x144  | 
|      |    | AVCaptureSessionPreset640x480 | 640x480  | 
|      |    | AVCaptureSessionPreset1280x720 | not supported | 
|      |    | AVCaptureSessionPreset1920x1080 | not supported | 
|      | BACK   |         |    | 
|      |    | AVCaptureSessionPresetPhoto  | 2592x1936  | 
|      |    | AVCaptureSessionPresetHigh  | 1920x1080  | 
|      |    | AVCaptureSessionPresetMedium | 480x360  | 
|      |    | AVCaptureSessionPresetLow  | 192x144  | 
|      |    | AVCaptureSessionPreset640x480 | 640x480  | 
|      |    | AVCaptureSessionPreset1280x720 | 1280x720  | 
|      |    | AVCaptureSessionPreset1920x1080 | 1920x1080  | 
+-----------------------+--------------+---------------------------------+---------------+ 
| iPad 4/Air   |    |         |    | 
| iPad Mini 1/2/3  |    |         |    | 
| iPod 5G    |    |         |    | 
|      | FRONT  |         |    | 
|      |    | AVCaptureSessionPresetPhoto  | 1280x960  | 
|      |    | AVCaptureSessionPresetHigh  | 1280x720  | 
|      |    | AVCaptureSessionPresetMedium | 480x360  | 
|      |    | AVCaptureSessionPresetLow  | 192x144  | 
|      |    | AVCaptureSessionPreset640x480 | 640x480  | 
|      |    | AVCaptureSessionPreset1280x720 | 1280x720  | 
|      |    | AVCaptureSessionPreset1920x1080 | not supported | 
|      | BACK   |         |    | 
|      |    | AVCaptureSessionPresetPhoto  | 2592x1936  | 
|      |    | AVCaptureSessionPresetHigh  | 1920x1080  | 
|      |    | AVCaptureSessionPresetMedium | 480x360  | 
|      |    | AVCaptureSessionPresetLow  | 192x144  | 
|      |    | AVCaptureSessionPreset640x480 | 640x480  | 
|      |    | AVCaptureSessionPreset1280x720 | 1280x720  | 
|      |    | AVCaptureSessionPreset1920x1080 | 1920x1080  | 
+-----------------------+--------------+---------------------------------+---------------+ 
| iPad Air 2   |    |         |    | 
| iPad Mini 4   |    |         |    | 
| iPad Pro    |    |         |    | 
|      | FRONT  |         |    | 
|      |    | AVCaptureSessionPresetPhoto  | 1280x960  | 
|      |    | AVCaptureSessionPresetHigh  | 1280x720  | 
|      |    | AVCaptureSessionPresetMedium | 480x360  | 
|      |    | AVCaptureSessionPresetLow  | 192x144  | 
|      |    | AVCaptureSessionPreset640x480 | 640x480  | 
|      |    | AVCaptureSessionPreset1280x720 | 1280x720  | 
|      |    | AVCaptureSessionPreset1920x1080 | not supported | 
|      | BACK   |         |    | 
|      |    | AVCaptureSessionPresetPhoto  | 3264x2448  | 
|      |    | AVCaptureSessionPresetHigh  | 1920x1080  | 
|      |    | AVCaptureSessionPresetMedium | 480x360  | 
|      |    | AVCaptureSessionPresetLow  | 192x144  | 
|      |    | AVCaptureSessionPreset640x480 | 640x480  | 
|      |    | AVCaptureSessionPreset1280x720 | 1280x720  | 
|      |    | AVCaptureSessionPreset1920x1080 | 1920x1080  | 
+-----------------------+--------------+---------------------------------+---------------+ 
| iPod Touch 5   |    |         |    | 
|      | FRONT  |         |    | 
|      |    | AVCaptureSessionPresetPhoto  | 1280x960  | 
|      |    | AVCaptureSessionPresetHigh  | 1280x720  | 
|      |    | AVCaptureSessionPresetMedium | 480x360  | 
|      |    | AVCaptureSessionPresetLow  | 192x144  | 
|      |    | AVCaptureSessionPreset640x480 | 640x480  | 
|      |    | AVCaptureSessionPreset1280x720 | 1280x720  | 
|      |    | AVCaptureSessionPreset1920x1080 | not supported | 
|      | BACK   |         |    | 
|      |    | AVCaptureSessionPresetPhoto  | 2592x1936  | 
|      |    | AVCaptureSessionPresetHigh  | 1920x1080  | 
|      |    | AVCaptureSessionPresetMedium | 480x360  | 
|      |    | AVCaptureSessionPresetLow  | 192x144  | 
|      |    | AVCaptureSessionPreset640x480 | 640x480  | 
|      |    | AVCaptureSessionPreset1280x720 | 1280x720  | 
|      |    | AVCaptureSessionPreset1920x1080 | 1920x1080  | 
+-----------------------+--------------+---------------------------------+---------------+ 
| iPod Touch 6   |    |         |    | 
|      | FRONT  |         |    | 
|      |    | AVCaptureSessionPresetPhoto  | 1280x960  | 
|      |    | AVCaptureSessionPresetHigh  | 1280x720  | 
|      |    | AVCaptureSessionPresetMedium | 480x360  | 
|      |    | AVCaptureSessionPresetLow  | 192x144  | 
|      |    | AVCaptureSessionPreset640x480 | 640x480  | 
|      |    | AVCaptureSessionPreset1280x720 | 1280x720  | 
|      |    | AVCaptureSessionPreset1920x1080 | not supported | 
|      | BACK   |         |    | 
|      |    | AVCaptureSessionPresetPhoto  | 3264x2448  | 
|      |    | AVCaptureSessionPresetHigh  | 1920x1080  | 
|      |    | AVCaptureSessionPresetMedium | 480x360  | 
|      |    | AVCaptureSessionPresetLow  | 192x144  | 
|      |    | AVCaptureSessionPreset640x480 | 640x480  | 
|      |    | AVCaptureSessionPreset1280x720 | 1280x720  | 
|      |    | AVCaptureSessionPreset1920x1080 | 1920x1080  | 
+-----------------------+--------------+---------------------------------+---------------+ 

で、あなたは何をチェックし、AVCaptureSessionPreset内のデータをログに記録する必要がありますそのようなデータをシミュレートする方法を教えてください。データを自分で入力してください。

関連する問題