Cameras supporting more than 30 fps #1388
Replies: 5 comments 3 replies
-
I just checked my Galaxy S10 (Samsung SM-G973F), and it has at least some formats with minFrameDutation of 16665880 ns (including for size 1920x1080), corresponding to 60 fps. Also my Galaxy S21 has formats and sizes with minFrameDuration of 16665880 ns. |
Beta Was this translation helpful? Give feedback.
-
Hello, First of all, keep in mind that no matter if your device support record with 60fps using default camera app or not because not all camera features are exposed to camera2 API As you said the fps supported by your device using camera2 is managed here: I think that it is the only way to get the fps supported by your device using camera2. If you can find other way to get the fps supported by the device and set it correctly, let me know it and I will implement it. |
Beta Was this translation helpful? Give feedback.
-
Hello, The fps also depend of the resolution. For example with my Pixel 6a using 1280x720 I have this fps supported:
But using 640x480 I have this result:
I used this code to check it: for (Range r: rtmpCamera2.getSupportedFps(new Size(1280, 720), CameraHelper.Facing.BACK)) {
Log.e("Pedro", r.getLower() + " - " + r.getUpper());
} Using a resolution that support 60fps and set 60 fps in preparevideo is working for me using pixel 6a. It is working with 720p, 1080p and 4k resolutions with my Pixel 6a. About the reason because 640x480 doesn't support 60fps. I think that this resolution is not supported by the camera hardware directly so the camera is configured to open other resolution and crop image so the camera is capped to this frame rate for this case. |
Beta Was this translation helpful? Give feedback.
-
Hi @pedroSG94 I am using Samsung S10 device supports 60fps in UHD,FHD frame rates in the built-in camera app.When i i want to implement camera application using camera2 api it doesn't support 60fps .Can you tell me the reason? |
Beta Was this translation helpful? Give feedback.
-
@pedroSG94 Thank for the reply |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I am using this fantastic library for a video streaming app. I stream video to Facebook or Youtube, after I put an overlay on the video. I use this on a Galaxy S23 Ultra (Samsung SM-S918B).
When I set the frame rate to more than 30 fps, the frame rate is still 30 fps. It appears that my phone does not support more than 30 fps.
I got the characteristics of the different cameras returned by CameraManager.getCameraIdList(). Then I got the StreamConfigurationMap for each camera. These maps for each camera all have a duration of 33333333 ns for each size and format, corresponding to 30 fps. I find this disappointing, since a Galaxy S23 Ultra supports much higher frame rates in the built-in camera app.
Is there way to get more than 30 fps with this phone? Are there other phones that support higher frame rates, also for 3840x2160?
Regards,
*Erik.
Beta Was this translation helpful? Give feedback.
All reactions