Bram Sinke
Bram Sinke
Thanks for your reply @mrousavy! Hopefully, the Android team will pick this up somewhere in the near future. I misunderstood some things on how this works and have since thought...
Hey, thanks again for you effort! I just tested it on my device, and indeed the preview confirms to the format's video resolution and aspect ratio. The issue with the...
The code from the sample project boils down to this: ```kotlin val rotation = fragmentCameraBinding.viewFinder.display.rotation // CameraProvider val cameraProvider = cameraProvider ?: throw IllegalStateException("Camera initialization failed.") // CameraSelector val cameraSelector...
Alright @mrousavy, I think I found the culprit! I was playing around with the configuration of the `Preview` in the CameraXBasic sample project using `Preview.Builder` and that's when I noticed...
Thanks! Good question, well to set it to a min of 20 seems like a simple solution, so i like it 😁😂 . I don't know if there are any...
I can also confirm that lowering the `fps` also fixes the format on these devices (prob the rest mentioned early too): Pixel 7a ``` LOG Camera: 0 (BACK) androidx.camera.camera2 |...
@mrousavy Nice! 🔥 I think this is intended behaviour, looking at the description of [`setTargetFrameRate`](https://developer.android.com/reference/androidx/camera/core/Preview.Builder#setTargetFrameRate(android.util.Range%3Cjava.lang.Integer%3E)) it says the following: > Sets the target frame rate range in frames per second...
Yes, I think that could be nice! I do wonder how that affects the device, for example that high resolution format for my Galaxy A53 has a min fps of...
It seems that it choses the highest value possible ([link](https://groups.google.com/a/android.com/g/camerax-developers/c/n_6b8pDBgHA))
Sure thing @mrousavy, here you go! ``` 2024-07-11 14:03:25.544 1257-1583 BRAM com.mrousavy.camera.example I --- START CAMERA: 0 --- 2024-07-11 14:03:25.544 1257-1583 BRAM com.mrousavy.camera.example I [20, 20] 2024-07-11 14:03:25.544 1257-1583 BRAM...