Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out the best way to choose the video format on iOS #1

Open
kidzik opened this issue Apr 22, 2021 · 0 comments
Open

Figure out the best way to choose the video format on iOS #1

kidzik opened this issue Apr 22, 2021 · 0 comments

Comments

@kidzik
Copy link
Member

kidzik commented Apr 22, 2021

Here are some example formats available for my iPhone:

<AVCaptureDeviceFormat: 0x2800f13c0 'vide'/'420v'  192x 144, { 3- 60 fps}, HRSI:4032x3024, fov:63.173, max zoom:189.00 (upscales @21.00), AF System:2, ISO:22.0-1760.0, SS:0.000020-0.333333>
<AVCaptureDeviceFormat: 0x2800f13b0 'vide'/'420f'  192x 144, { 3- 60 fps}, HRSI:4032x3024, fov:63.173, max zoom:189.00 (upscales @21.00), AF System:2, ISO:22.0-1760.0, SS:0.000020-0.333333, supports wide color>
<AVCaptureDeviceFormat: 0x2800f13a0 'vide'/'420v'  352x 288, { 3- 60 fps}, HRSI:3696x3024, fov:57.909, max zoom:189.00 (upscales @10.50), AF System:2, ISO:22.0-1760.0, SS:0.000020-0.333333>
<AVCaptureDeviceFormat: 0x2800f1390 'vide'/'420f'  352x 288, { 3- 60 fps}, HRSI:3696x3024, fov:57.909, max zoom:189.00 (upscales @10.50), AF System:2, ISO:22.0-1760.0, SS:0.000020-0.333333, supports wide color>
<AVCaptureDeviceFormat: 0x2800f1380 'vide'/'420v'  480x 360, { 3- 60 fps}, HRSI:4032x3024, fov:63.173, max zoom:189.00 (upscales @8.40), AF System:2, ISO:22.0-1760.0, SS:0.000020-0.333333>
<AVCaptureDeviceFormat: 0x2800f1370 'vide'/'420f'  480x 360, { 3- 60 fps}, HRSI:4032x3024, fov:63.173, max zoom:189.00 (upscales @8.40), AF System:2, ISO:22.0-1760.0, SS:0.000020-0.333333, supports wide color>
<AVCaptureDeviceFormat: 0x2800f1360 'vide'/'420v'  640x 480, { 3- 60 fps}, HRSI:4032x3024, fov:63.173, max zoom:189.00 (upscales @6.30), AF System:2, ISO:22.0-1760.0, SS:0.000020-0.333333>
<AVCaptureDeviceFormat: 0x2800f1350 'vide'/'420f'  640x 480, { 3- 60 fps}, HRSI:4032x3024, fov:63.173, max zoom:189.00 (upscales @6.30), AF System:2, ISO:22.0-1760.0, SS:0.000020-0.333333, supports wide color>
<AVCaptureDeviceFormat: 0x2800f1340 'vide'/'420v'  640x 480, { 6- 60 fps}, HRSI:2016x1512, fov:60.302, binned, max zoom:94.50 (upscales @3.15), AF System:1, ISO:22.0-1760.0, SS:0.000011-0.166667>
<AVCaptureDeviceFormat: 0x2800f1330 'vide'/'420f'  640x 480, { 6- 60 fps}, HRSI:2016x1512, fov:60.302, binned, max zoom:94.50 (upscales @3.15), AF System:1, ISO:22.0-1760.0, SS:0.000011-0.166667, supports wide color>
<AVCaptureDeviceFormat: 0x2800f1320 'vide'/'420v'  960x 540, { 3- 60 fps}, HRSI:4224x2376, fov:65.576, supports vis, max zoom:135.00 (upscales @4.00), AF System:2, ISO:22.0-880.0, SS:0.000020-0.333333>
<AVCaptureDeviceFormat: 0x2800f1310 'vide'/'420f'  960x 540, { 3- 60 fps}, HRSI:4224x2376, fov:65.576, supports vis, max zoom:135.00 (upscales @4.00), AF System:2, ISO:22.0-880.0, SS:0.000020-0.333333, supports wide color>
<AVCaptureDeviceFormat: 0x2800f1300 'vide'/'420v' 1024x 768, { 3- 60 fps}, HRSI:4032x3024, fov:63.173, max zoom:189.00 (upscales @3.94), AF System:2, ISO:22.0-1760.0, SS:0.000020-0.333333>
<AVCaptureDeviceFormat: 0x2800f12f0 'vide'/'420f' 1024x 768, { 3- 60 fps}, HRSI:4032x3024, fov:63.173, max zoom:189.00 (upscales @3.94), AF System:2, ISO:22.0-1760.0, SS:0.000020-0.333333, supports wide color>
<AVCaptureDeviceFormat: 0x2800f12e0 'vide'/'420v' 1280x 720, { 3- 30 fps}, HRSI:4224x2376, fov:65.576, supports vis, max zoom:24.00 (upscales @3.00), AF System:2, ISO:22.0-880.0, SS:0.000020-0.333333>
<AVCaptureDeviceFormat: 0x2800f12d0 'vide'/'420f' 1280x 720, { 3- 30 fps}, HRSI:4224x2376, fov:65.576, supports vis, max zoom:24.00 (upscales @3.00), AF System:2, ISO:22.0-880.0, SS:0.000020-0.333333, supports wide color>
<AVCaptureDeviceFormat: 0x2800f12c0 'vide'/'420v' 1280x 720, { 3- 60 fps}, HRSI:4224x2376, fov:65.576, supports vis, max zoom:24.00 (upscales @3.00), AF System:2, ISO:22.0-880.0, SS:0.000020-0.333333>
<AVCaptureDeviceFormat: 0x2800f12b0 'vide'/'420f' 1280x 720, { 3- 60 fps}, HRSI:4224x2376, fov:65.576, supports vis, max zoom:24.00 (upscales @3.00), AF System:2, ISO:22.0-880.0, SS:0.000020-0.333333, supports wide color>
<AVCaptureDeviceFormat: 0x2800f12a0 'vide'/'420v' 1280x 720, { 6- 60 fps}, fov:65.576, binned, supports vis, max zoom:61.88 (upscales @1.50), AF System:1, ISO:22.0-880.0, SS:0.000011-0.166667>
<AVCaptureDeviceFormat: 0x2800f1290 'vide'/'420f' 1280x 720, { 6- 60 fps}, fov:65.576, binned, supports vis, max zoom:61.88 (upscales @1.50), AF System:1, ISO:22.0-880.0, SS:0.000011-0.166667, supports wide color>
<AVCaptureDeviceFormat: 0x2800f1280 'vide'/'420v' 1280x 720, { 6-240 fps}, fov:65.576, binned, supports vis, max zoom:67.50 (upscales @1.50), AF System:1, ISO:22.0-880.0, SS:0.000011-0.166667>
<AVCaptureDeviceFormat: 0x2800f1270 'vide'/'420f' 1280x 720, { 6-240 fps}, fov:65.576, binned, supports vis, max zoom:67.50 (upscales @1.50), AF System:1, ISO:22.0-880.0, SS:0.000011-0.166667, supports wide color>
<AVCaptureDeviceFormat: 0x2800f1260 'vide'/'420v' 1440x1080, { 6- 60 fps}, HRSI:2016x1512, fov:60.302, binned, max zoom:94.50 (upscales @1.40), AF System:1, ISO:22.0-1760.0, SS:0.000011-0.166667>
<AVCaptureDeviceFormat: 0x2800f1250 'vide'/'420f' 1440x1080, { 6- 60 fps}, HRSI:2016x1512, fov:60.302, binned, max zoom:94.50 (upscales @1.40), AF System:1, ISO:22.0-1760.0, SS:0.000011-0.166667, supports wide color>
<AVCaptureDeviceFormat: 0x2800f1240 'vide'/'420v' 1920x1080, { 3- 30 fps}, HRSI:4224x2376, fov:65.576, supports vis, max zoom:16.00 (upscales @2.00), AF System:2, ISO:22.0-880.0, SS:0.000020-0.333333>
<AVCaptureDeviceFormat: 0x2800f1230 'vide'/'420f' 1920x1080, { 3- 30 fps}, HRSI:4224x2376, fov:65.576, supports vis, max zoom:16.00 (upscales @2.00), AF System:2, ISO:22.0-880.0, SS:0.000020-0.333333, supports wide color>
<AVCaptureDeviceFormat: 0x2800f1220 'vide'/'420v' 1920x1080, { 3- 60 fps}, HRSI:4224x2376, fov:65.576, supports vis, max zoom:16.00 (upscales @2.00), AF System:2, ISO:22.0-880.0, SS:0.000020-0.333333>
<AVCaptureDeviceFormat: 0x2800f1210 'vide'/'420f' 1920x1080, { 3- 60 fps}, HRSI:4224x2376, fov:65.576, supports vis, max zoom:16.00 (upscales @2.00), AF System:2, ISO:22.0-880.0, SS:0.000020-0.333333, supports wide color>
<AVCaptureDeviceFormat: 0x2800f1200 'vide'/'420v' 1920x1080, { 6- 60 fps}, fov:65.576, binned, supports vis, max zoom:67.50 (upscales @1.00), AF System:1, ISO:22.0-880.0, SS:0.000011-0.166667>
<AVCaptureDeviceFormat: 0x2800f11f0 'vide'/'420f' 1920x1080, { 6- 60 fps}, fov:65.576, binned, supports vis, max zoom:67.50 (upscales @1.00), AF System:1, ISO:22.0-880.0, SS:0.000011-0.166667, supports wide color>
<AVCaptureDeviceFormat: 0x2800f11e0 'vide'/'420v' 1920x1080, { 5-120 fps}, fov:65.576, supports vis, max zoom:135.00 (upscales @2.00), AF System:2, ISO:22.0-880.0, SS:0.000012-0.200000>
<AVCaptureDeviceFormat: 0x2800f11d0 'vide'/'420f' 1920x1080, { 5-120 fps}, fov:65.576, supports vis, max zoom:135.00 (upscales @2.00), AF System:2, ISO:22.0-880.0, SS:0.000012-0.200000, supports wide color>
<AVCaptureDeviceFormat: 0x2800f11b0 'vide'/'420v' 1920x1080, { 6-240 fps}, fov:65.576, binned, supports vis, max zoom:67.50 (upscales @1.00), AF System:1, ISO:22.0-880.0, SS:0.000011-0.166667>
<AVCaptureDeviceFormat: 0x2800f1180 'vide'/'420f' 1920x1080, { 6-240 fps}, fov:65.576, binned, supports vis, max zoom:67.50 (upscales @1.00), AF System:1, ISO:22.0-880.0, SS:0.000011-0.166667, supports wide color>
<AVCaptureDeviceFormat: 0x2800f1190 'vide'/'420v' 1920x1440, { 6- 60 fps}, HRSI:2016x1512, fov:62.595, binned, max zoom:94.50 (upscales @1.05), AF System:1, ISO:22.0-1760.0, SS:0.000011-0.166667>
<AVCaptureDeviceFormat: 0x2800f1170 'vide'/'420f' 1920x1440, { 6- 60 fps}, HRSI:2016x1512, fov:62.595, binned, max zoom:94.50 (upscales @1.05), AF System:1, ISO:22.0-1760.0, SS:0.000011-0.166667, supports wide color>
<AVCaptureDeviceFormat: 0x2800f15d0 'vide'/'420v' 2592x1936, { 3- 30 fps}, HRSI:4032x3024, fov:63.173, max zoom:189.00 (upscales @1.56), AF System:2, ISO:22.0-2112.0, SS:0.000020-0.333333>
<AVCaptureDeviceFormat: 0x2800f15e0 'vide'/'420f' 2592x1936, { 3- 30 fps}, HRSI:4032x3024, fov:63.173, max zoom:189.00 (upscales @1.56), AF System:2, ISO:22.0-2112.0, SS:0.000020-0.333333, supports wide color>
<AVCaptureDeviceFormat: 0x2800f15f0 'vide'/'420v' 3264x2448, { 3- 30 fps}, HRSI:4032x3024, fov:63.173, max zoom:189.00 (upscales @1.24), AF System:2, ISO:22.0-2112.0, SS:0.000020-0.333333>
<AVCaptureDeviceFormat: 0x2800f1600 'vide'/'420f' 3264x2448, { 3- 30 fps}, HRSI:4032x3024, fov:63.173, max zoom:189.00 (upscales @1.24), AF System:2, ISO:22.0-2112.0, SS:0.000020-0.333333, supports wide color>
<AVCaptureDeviceFormat: 0x2800f1610 'vide'/'420v' 3840x2160, { 3- 30 fps}, fov:65.576, supports vis, max zoom:9.00 (upscales @1.00), AF System:2, ISO:22.0-880.0, SS:0.000020-0.333333>
<AVCaptureDeviceFormat: 0x2800f1620 'vide'/'420f' 3840x2160, { 3- 30 fps}, fov:65.576, supports vis, max zoom:9.00 (upscales @1.00), AF System:2, ISO:22.0-880.0, SS:0.000020-0.333333, supports wide color>
<AVCaptureDeviceFormat: 0x2800f1630 'vide'/'420v' 3840x2160, { 3- 60 fps}, fov:65.576, supports vis, max zoom:135.00 (upscales @1.00), AF System:2, ISO:22.0-880.0, SS:0.000020-0.333333>
<AVCaptureDeviceFormat: 0x2800f1640 'vide'/'420f' 3840x2160, { 3- 60 fps}, fov:65.576, supports vis, max zoom:135.00 (upscales @1.00), AF System:2, ISO:22.0-880.0, SS:0.000020-0.333333, supports wide color>
<AVCaptureDeviceFormat: 0x2800f1650 'vide'/'420v' 4032x3024, { 3- 30 fps}, HRSI:4032x3024, fov:63.173, max zoom:189.00 (upscales @1.00), AF System:2, ISO:22.0-2112.0, SS:0.000020-0.333333>
<AVCaptureDeviceFormat: 0x2800f1660 'vide'/'420f' 4032x3024, { 3- 30 fps}, HRSI:4032x3024, fov:63.173, max zoom:189.00 (upscales @1.00), AF System:2, ISO:22.0-2112.0, SS:0.000020-0.333333, supports wide color>

Right now I select the one with the highest possible frame rate and then set the frame rate to 60 FPS. That's probably suboptimal since we can select a format with up to 60 FPS and high ISO, or resolution.

Once we figure out which parameters we care about, we can design a basic algorithm. For example something like: "From formats allowing 60FPS and ISO > 1000 choose the one with the highest FOV".
@suhlrich @antoinefalisse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant