almalence / OpenCamera

Open camera project - multi-functional camera application for android.
Other
1.11k stars 417 forks source link

Video resolution problems on Xiaomi Redmi note 5 after installing custom ROM #105

Open ZugDragon opened 2 years ago

ZugDragon commented 2 years ago

Before installing the custom ROM I had very little options, but I did have the ability to record in 3840x2160. My device doesn't have this in specifications but both the camera and the CPU are capable of it, and it worked with hedgecam and Opencamera (there was only a short period 2 years ago where I had issues with it). After installing Pixel Experience, while I got a lot of options with camera2api, video resolutions seem to be incorrect. On MIUI the only resolution above 1080p was UHD, while now I have a lot of options, but no UHD/the closest option brings up "bitrate/framerate not supported on your device" (even when set to 15fps) The device now also appears to have 4 cameras (while it has 2 hind, 1 front), ID3 is a copy of ID0 which didn't work any better, and was prone to failing after stopping recording.

Resolutions above 1080p: 1680x1256 - works 2048x1536 - works 2592x1296 - works 2592x1940 - works 2592x1944 - works 2752x2064 - works 4000x2000 - does not work (force UHD option - does not work) (4:3 and similar resolutions appear slightly zoomed in, as if the camera is cropped to 16:9 and then to 4:3 again)

Hedgecam seemed to have behaved slightly differently, if that would be relevant I could describe that too. I'm not sure if this is an issue with the ROM or camera, if it is with the ROM, could I at least get advice on what to test and what to provide the ROM maintainer with?