Samsung Galaxy S8 supports video resolutions up to 4032x3024, but open camera discards resolutions larger than 4096x2160 due to a limitation in Nexus 6 (acording to the comment in the code here:)
File: CameraController2.java
for(android.util.Size camera_size : camera_video_sizes) {
if( MyDebug.LOG )
Log.d(TAG, "video size: " + camera_size.getWidth() + " x " + camera_size.getHeight());
if( camera_size.getWidth() > 4096 || camera_size.getHeight() > 2160 )
continue; // Nexus 6 returns these, even though not supported?!
camera_features.video_sizes.add(new CameraController.Size(camera_size.getWidth(), camera_size.getHeight()));
}
When I remove this validation, I'm able to select and record in better resolutions. Would it be possible to remove the validation or add a configuration to allow the selection of resolutions higher than 2160p?
Anonymous
Thanks, I'll take a look at removing this.