Camera mod? - Xiaomi Redmi Pro Questions & Answers

Hello
I was wondering can we improve camera quality on our Redmi Pro, especialy video recording. I am very pleased with this device, except camera quality. This is not bad hardware or sensor, this is just bad software implementation and optimization. I hope that Xiaomi will improve something in future updates.
I have tried to change some settings in camera app. For best still picture quality you can set saturation and cotrast to high, and sharpness leave at medium. With this settings pictures will look more punchy and vibrant. When you put sharpnes also to high, picture look to much artificial with some artifacts.
For Video we do not have similar settings like sharpnes, saturation and contrast. It is shame that with Sony IMX258 we have such soft video recording.
I have tried to use some other camera apps, and no camera app can improve video recording quality. With Cinema FV5 you can change bittrate to 30Mbps but quality stays the same.
I noticed that in low light conditions video recording drops to 15FPS and a bitrate around 10-12Mbps with stock camera. This is awfull image quality. With google camera, recording video in low light is better, bittrate is 17Mbps and FPS is 30. Image is a little bit darker, but much much smoother than stock camera.
I have question now. What libs and settings google camera is using for video recording? It is for sure something different from stock camera.
I Have tried to edit omega.xml in system/etc/device_features. I have copied gemini.xml, edited vendor string from qcom to mediatek, set permisions like the original file. Then I renamed original to omega.xml.old and gemini.xml to omega.xml. Rebooted and camera app worked just fine. In video modes I got audio zoom feature, and in manual picture mode unlocked everything. But there is no 4K recording, regerdless that in xml file 4k was set to 'true'.
So where are the others settings stored?
I have read something about editing lib files, shared objects *.SO files. And this is very hard to edit or do somekind of reverse enginering. Maybe someone have knowlege to do this? Or we do not need to edit lib files at all?
I am ready to test everything on my phone, so if someone have idea how can we edit camera app, google camera app, or something else to enable 4k, to improve qulity of 1080p recording, or even enable 1080p 60FPS mode.
Also I have tried to edit build.prop and add line persist.camera.HAL3.enable=1 and this will do nothing. In system lib and lib64 folder I have found files with names HAL3a.V3. I dont know is this mean something.
I am just thinking that is a shame to have very capable helio x25 and a solid sony sensor and such a mediocre image quality.
Thanks everyone in advance, and I hope that we will find some good ideas for improving our Redmi Pro

You have unlocked manual camera mode including long exposure/shuttertine and manual focus? Have you tried these two features? For me just the buttons are unlocked, but no changes if you shoot a photo or used the manual zoom has no effect. Could you explain "edited vendor string from qcom to mediatek"

You are wright, I forgot to mention that those two functions do not work. I have decompiled stock camera app from system to see xml and smali files. I dont have enough knowlege to do some mods and recompile it. Maybe someone can help. So far, i have seen in those file that camera app recognize if your vendor is mtk or qcom and base on that unlock 4K video recording and other functions. We need help from someone to look at that app and try to modify it, to change some values etc.

Mr.Nice.ba said:
Hello
I was wondering can we improve camera quality on our Redmi Pro, especialy video recording. I am very pleased with this device, except camera quality. This is not bad hardware or sensor, this is just bad software implementation and optimization. I hope that Xiaomi will improve something in future updates.
I have tried to change some settings in camera app. For best still picture quality you can set saturation and cotrast to high, and sharpness leave at medium. With this settings pictures will look more punchy and vibrant. When you put sharpnes also to high, picture look to much artificial with some artifacts.
For Video we do not have similar settings like sharpnes, saturation and contrast. It is shame that with Sony IMX258 we have such soft video recording.
I have tried to use some other camera apps, and no camera app can improve video recording quality. With Cinema FV5 you can change bittrate to 30Mbps but quality stays the same.
I noticed that in low light conditions video recording drops to 15FPS and a bitrate around 10-12Mbps with stock camera. This is awfull image quality. With google camera, recording video in low light is better, bittrate is 17Mbps and FPS is 30. Image is a little bit darker, but much much smoother than stock camera.
I have question now. What libs and settings google camera is using for video recording? It is for sure something different from stock camera.
I Have tried to edit omega.xml in system/etc/device_features. I have copied gemini.xml, edited vendor string from qcom to mediatek, set permisions like the original file. Then I renamed original to omega.xml.old and gemini.xml to omega.xml. Rebooted and camera app worked just fine. In video modes I got audio zoom feature, and in manual picture mode unlocked everything. But there is no 4K recording, regerdless that in xml file 4k was set to 'true'.
So where are the others settings stored?
I have read something about editing lib files, shared objects *.SO files. And this is very hard to edit or do somekind of reverse enginering. Maybe someone have knowlege to do this? Or we do not need to edit lib files at all?
I am ready to test everything on my phone, so if someone have idea how can we edit camera app, google camera app, or something else to enable 4k, to improve qulity of 1080p recording, or even enable 1080p 60FPS mode.
Also I have tried to edit build.prop and add line persist.camera.HAL3.enable=1 and this will do nothing. In system lib and lib64 folder I have found files with names HAL3a.V3. I dont know is this mean something.
I am just thinking that is a shame to have very capable helio x25 and a solid sony sensor and such a mediocre image quality.
Thanks everyone in advance, and I hope that we will find some good ideas for improving our Redmi Pro
Click to expand...
Click to collapse
Hey I think you get de wrong command on build.pro, the right one in "persist.camera.HAL3.enabled=1"...
And about 4k video... I don't think it's gonna work cause the processor maybe can't handle this. And 1080 at 60fps maybe it's possible.

MathePro said:
Hey I think you get de wrong command on build.pro, the right one in "persist.camera.HAL3.enabled=1"...
And about 4k video... I don't think it's gonna work cause the processor maybe can't handle this. And 1080 at 60fps maybe it's possible.
Click to expand...
Click to collapse
1080 at 60 fps maybe work

So, any one knows what exactly on Android system handle all this?. It's on encoder? It's on camera driver? I don't think of just a "app" will change anything. It's has something like a encode line or a lib. Any modder? I had looking for a mod for that sensor but until now, the only thing what works is about Hal3 on build.prop.

Anyone know how to get 60 fps 1080?

Related

Can we Reduce Photo Compression?

I've been wondering if there's an easy mod to reduce the compression used in photos taken on the Nexus One. I haven't been able to find anything using search, so I apologise if this has come up before.
It seems the files produced by the camera are too small, restricting the potential quality the camera can produce.
We can edit the profiles_media.xml file to increase camcorder resolution and bitrate, so there should be something similar for still photos, right?
hi, where is this file?
profiles_media.xml
what did you actually mod in it for vidéo?
thxx
nocomp
Found it.. I think !
Was in /system/etc and its name is media_profiles.xml
But I still can not see how to change the compression of the photo on my Xperia Arc

Camera <-> Camcorder Zoom Weirdness

Going to try to explain this... When I'm using the stock Camera app, the picture is normal. But when I switch to Camcorder, it seems to be automatically zoomed in quite a bit. And when I try to zoom out, it says that since I'm recording in HD, zoom functions are not available.
This is kind of annoying because now I have to step back probably 5 feet to fill the same frame of when I was taking photos.
Is this normal for everyone else too? Or do I have some weird glitch on my unrooted and pure stock ROM?
Yep, mine does it too (stock rom). It only does that in FullHD resolution. I guess the only use middle part of the sensor to read the data to achieve greater speeds, and thus it's gonna be a hardware limitation.
Who need HD anyway ? The lens hardly catch with it. I record 720x480 and I'm very pleased with teh quality.
Change the video recording resolution in the settings pane to 1280x720 and that should fix your problem.
hank00k said:
Change the video recording resolution in the settings pane to 1280x720 and that should fix your problem.
Click to expand...
Click to collapse
Yeah I noticed that.
But that doesn't make sense. In photo mode, same resolution as video mode but in video mode it's zoomed in. Like Dr. Sid said, it seems that it uses a smaller section of the image sensor to capture video. Which again doesn't make sense. Weird.
This is definetly a speed optimization - scaling down the whole resolution of camera sensor from 3264*2448 -> 1080p is much more expensive operation than just cropping the central pixels, i assume someone at samsung was VERY lazy to have done the camcorder mode in such a lame way, it's still ok for recording outside scenes but useless for in-room recording.
I find this quite annoying also. At first I was wondering if it is a ROM glitch or something, since some of the people here stated that even in stock ROM it is present also.
I hope there is some kind of patch to this, full HD recording is really awesome and I hate to see the 'zoomed' effect.
Yeah noticed the same thing just last night.. Seems to also affect the camera's ability to focus properly in video capture mode as well... Shame on them, I wish I had noticed this sooner.

Media_profile.xml modifications

I was looking at the media_profile.xml file from the Xoom forums (posted and edited by bracken21, Thanks for the work) and noticed that the file was different than the Asus TF one. Instead of trying that file on my TF I modified the TF profile.
I have experienced no problems so far with this modified file but try at your own risk, replacing the file with the original should resolve any issues you might experiences, but no promises. I highly recommend backing up your own media_profile.xml instead of using my backed up original.
A few questions for anyone that knows.
For the camera app what is 'high' quality? I assume it is the 720p profile do to the outcome I had. I ask because in the media profile there is no youtube video quality but is on the app. other video quality names aren't listed in the app either.
What do the video decoder and audio decoder caps do exactly? I turned them off only because they where turned off on the Xoom, and I wanted to see if it prevented video from playing or caused glitch's (I saw no issues in the video I played)
I set the camera to the rear and "high" for quality then recorded a video before the changes and one after then transferred them to my desktop. The details in properties shows both at 37 seconds long and a frame rate of 1280x720. the data rate for the 3gp was 7478kbps while the mp4 was 20350kbps. Total bitrate increased from 7574kbps to 20446kbps. Frame rate dropped from 28fps to 24fps. file size increased to 93MB from 33.7MB. I noticed a small improvement in quality at full screen on my monitor, it was a slow video so I couldn't tell if it had more or less tearing.
more info: You will need to reboot to see any chances. setting any setting the camera can't use will result in the camera app force closing. I tried setting the frame rate to 40 in one profile and the camera app crashed every time I tried to access the rear camera (that profile was already selected so was auto loading). placing the xml with the correct framerate back into the /system/etc folder and rebooting fixed the issue.
Since it is a busy day today for me I just did some quick modifications. If anyone else wants to make a modified file with better changes (specially someone who knows audio/video better) it would probably be appreciated by all.
Placing this file where it needs to go requires root and a file browser that can mount the system folder in read/write.
The XML file should be placed in /system/etc. the full path is /system/etc/media_profiles.xml
changed:
All 3gp encoding to mp4 encoding
Rear Camera 720p quality bitrate from 8,000,000 to 25,000,000
Front Camera high quality bitrate from 4,000,000 to 8,000,000
Changed both "imageencoding quality from 90/80/70/20,000,000 to 100/99/95/250,000,000
Turned off videodecodercap and audiodecodercap
Again thank you to bracken21 for doing the Xoom's profile, which provided a base to go off of.

Q: Camera features and modifications

Hi! I just got my P10+ (6gb + 128gb) and one of my main reasons for purchase was the improved camera. Manual photography settings and RAW support are fine. But when getting to the video mode, damn I wish there were more controls.
So my question is; are there any software or modifications that would allow me to use fixed shutter speed and ISO settings or at least, get me flat color and sharpness adjustments? Secondly, I've learned that there's HEVC (h.265) compression used in 4K material, which is good by itself, but the amount of compression/lack of bits is too much so, is there any modifications to set bitrate? Video, also in 4K, gets "muddy" and over sharpened. Ofc RAW input would be awesome but I'm not waiting for such feature to reach this device.
Thanks in advance.

Gcam slow motion

Installed gcam. But when trying to take slow-motion video the image become darker and the video is unstable (bad fps than normal video). Need to know if it is my problem or a general issue. Is there any fix? Also cannot change fps from 120.
Raku10 said:
Installed gcam. But when trying to take slow-motion video the image become darker and the video is unstable (bad fps than normal video). Need to know if it is my problem or a general issue. Is there any fix? Also cannot change fps from 120.
Click to expand...
Click to collapse
Our device doesn't supports slo mo videos. So even if the camera has the option to shoot it, it won't give the satisfactory result.

Categories

Resources