Attached below is a zip containing two folders AFG and BFG each contains a modded libmmcamera_imx179.so each modified to increase maximum exposure time to 64secs test each see which one increases max expo time
Some instructions and results would be awesome.
Kindly explain the mod in detail and how to use it.
Tagtag123 said:
Some instructions and results would be awesome.
Kindly explain the mod in detail and how to use it.
Click to expand...
Click to collapse
Copy the lib to /system/vendor/lib/ set rw-r-r permission
Open some camera 2 app check if max exposure time is now 64sec
As I said there are two libs see which one works I do not have a nexus 5 so I did not test it
None work.
I copied and set the permissions rw-r-r
Tried L camera and camera fv5, max exposure is still 0.8s.
Would be super cool, if you could make it work.
Hmmm need to find the line count value.
The Maximum Exposure Times is Calculated (Frame Length * 1000000000 / pixel Clock) * Maximum Line Count .
The Maximum Line Count value is what they limit when searching for this value its supposed to be after the maximum analog iso value . I tested this on the nexus 6p LG G4 and one plus 2.
So in Nexus 5 Case it's 3440 x 1000000000 / 260000000 resulting in 13230.76923076923 this number is rounded up to 13231 giving the minimum exposure time
Given we know the Max Exposure time is 866975130 we div it with 13231 it gives us 65526.04716196811 so round down the value to just 65526 so the value range we looking for is between 65525 and 65535 its a 32 bit int hex value .
The two libs I had modified where values just after max analog gain and before . Attached 200mhz zip with pixel clock clocked down from 260 MHz to 200mhz to make sure there are no decimals to see what value.
You can run dumpsys media.camera > /sdcard/dump.text after typing su command in terminal to see if max exposure changed as well as min
defcomg said:
Copy the lib to /system/vendor/lib/ set rw-r-r permission
Open some camera 2 app check if max exposure time is now 64sec
As I said there are two libs see which one works I do not have a nexus 5 so I did not test it
Click to expand...
Click to collapse
defcomg said:
Hmmm need to find the line count value.
The Maximum Exposure Times is Calculated (Frame Length * 1000000000 / pixel Clock) * Maximum Line Count .
The Maximum Line Count value is what they limit when searching for this value its supposed to be after the maximum analog iso value . I tested this on the nexus 6p LG G4 and one plus 2.
So in Nexus 5 Case it's 3440 x 1000000000 / 260000000 resulting in 13230.76923076923 this number is rounded up to 13231 giving the minimum exposure time
Given we know the Max Exposure time is 866975130 we div it with 13231 it gives us 65526.04716196811 so round down the value to just 65526 so the value range we looking for is between 65525 and 65535 its a 32 bit int hex value .
The two libs I had modified where values just after max analog gain and before . Attached 200mhz zip with pixel clock clocked down from 260 MHz to 200mhz to make sure there are no decimals to see what value.
You can run dumpsys media.camera > /sdcard/dump.text after typing su command in terminal to see if max exposure changed as well as min
Click to expand...
Click to collapse
None of the camera apps work with the 200mhz lib.
Tagtag123 said:
None of the camera apps work with the 200mhz lib.
Click to expand...
Click to collapse
Try this one
defcomg said:
Try this one
Click to expand...
Click to collapse
Doesn't work, I get a green line on the bottom of the viewfinder. The viewfinder preview moves from left to right in the form of two images. Images clicked are bands of what seems to be corrupted data.
The exposure is still 0.8s in l camera and camera fv5
Tagtag123 said:
Doesn't work, I get a green line on the bottom of the viewfinder. The viewfinder preview moves from left to right in the form of two images. Images clicked are bands of what seems to be corrupted data.
The exposure is still 0.8s in l camera and camera fv5
Click to expand...
Click to collapse
Screenshot also make a dumpsys it could be that the 0.8s is hardcoded in the apps
defcomg said:
Screenshot also make a dumpsys it could be that the 0.8s is hardcoded in the apps
Click to expand...
Click to collapse
Clicked Pic:
https://goo.gl/photos/Zxuio384yRr2sV5HA
Screen record:
https://www.youtube.com/watch?v=zGfkE85WU2A
Lcamera source:
https://github.com/PkmX/lcamera
Dumpsys:
https://gist.github.com/utkarshns/9bab3dbed3c6b461f641d4a6f900c5af
Open to any testing, or even a live hangouts testing session.
Waiting for good news,. i think 4sec is good enough,...
There are two res arrays in the preview res I set the clock to 50mhz and the other folder two both res if max expo is still 0.8 its hardcoded in libmmcamera_sensor_modules.so I will need that lib
defcomg said:
There are two res arrays in the preview res I set the clock to 50mhz and the other folder two both res if max expo is still 0.8 its hardcoded in libmmcamera_sensor_modules.so I will need that lib
Click to expand...
Click to collapse
Trying both libs, will revert asap.
utkarshnarain at gmail dot com, for live testing
PFA: stock libs
Tried both . so files and got moving bands in viewfinder and a completely banded image on clicking the picture.
Tagtag123 said:
Tried both . so files and got moving bands in viewfinder and a completely banded image on clicking the picture.
Click to expand...
Click to collapse
And still capped to 0.8s? On both
defcomg said:
And still capped to 0.8s? On both
Click to expand...
Click to collapse
Yes, both Lcamera and Camera FV5 say the same thing.
Tagtag123 said:
Yes, both Lcamera and Camera FV5 say the same thing.
Click to expand...
Click to collapse
Check dumpsys if its 866975130 also I said copy to /system/vendor/lib make sure there isn't another libmmcamera_imx179.so in system/lib/
defcomg said:
Try this one
Click to expand...
Click to collapse
defcomg said:
Check dumpsys if its 866975130 also I said copy to /system/vendor/lib make sure there isn't another libmmcamera_imx179.so in system/lib/
Click to expand...
Click to collapse
Libs found in system.
Dumpsys coming
defcomg said:
Check dumpsys if its 866975130 also I said copy to /system/vendor/lib make sure there isn't another libmmcamera_imx179.so in system/lib/
Click to expand...
Click to collapse
dumpsys: bothres
https://gist.github.com/utkarshns/8060a25c3b545b6ea88dce442c30a721
Related
After the N1 and Arc mods for better camera, here's my first release for DHD under the RCMixHD rom, tried it with V6.1.0.0
Mainly it's just a tweaked camera jpeg compression and buffer memory not a difficult work
Advantages:
Lowering jpeg compression means larger sized photos reaching up to 3.5mb each bringing up more details and less noises!
Be aware:
There is probably no difference when shooting in dark conditions, the size of the photos are the same BUT when shooting in daylight the difference is huge!
Install:
1 -You need root
2 -For Kingdom and RCMix roms: Download the file media_profiles.zip and rename zip to xml
For TB Fusion roms: Download the file media_profiles.cab and rename cab to xml
3 -You can use Rootexplorer to copy paste the file into /system/etc or push it via ADB:
-adb devices
-adb remount
-adb push media_profiles.xml system/etc
-adb reboot
4 -REBOOT
how about some screenshots? if the app is the same would love some sample before/after pictures..
and what about other roms?
maybe changing the values in another ginger rom(media_profile) the result is the same , no?????
it is for gingerbread base rom 2.36.405.8 , put it in system/etc
rename .txt in .xml
I has found it long time ago!! Thanks! it's so great!!!!!!!!!!!
Anyway to increase camcorder bitrate? I've tried in media_profiles but with no luck..,.
There are numerous video profiles in this xml, perhaps we should tweak them all!
There are minimum and max in each like for jpeg,so if you don't have a ''rich'' scene to record (good light and lot of colors) the video bitrate will not use the max settings
tested and aprouved on Coredroid ROM v6
vegetaleb said:
There are numerous video profiles in this xml, perhaps we should tweak them all!
There are minimum and max in each like for jpeg,so if you don't have a ''rich'' scene to record (good light and lot of colors) the video bitrate will not use the max settings
Click to expand...
Click to collapse
But after I changed minimum value, bitrate shouldn't drop below this. It stays at ~10mbits. I'm pretty sure that video recording bitrate can be only tweaked in kernel.
krogoth said:
But after I changed minimum value, bitrate shouldn't drop below this. It stays at ~10mbits. I'm pretty sure that video recording bitrate can be only tweaked in kernel.
Click to expand...
Click to collapse
i think so
Thanks very much..It works fine on LeeDroid 3.0.2
Thanks, will try it out!
Anyone tried my MOD with the new Kingdom rom?
vegetaleb said:
Anyone tried my MOD with the new Kingdom rom?
Click to expand...
Click to collapse
yes i did and ........... OK !!!
Good I will change the title
good job vegetaleb, ill try it out and add it to my camera guide if you don't mind, can you please explain the tweaked memory buffer, does it improve 720p recording?
forum.xda-developers.com/showthread.php?t=875230&styleid=16
alla ye7me lebnen
LOL am having a blonde moment lol, i downloaded the file and renamed it . xml but now its called media_profiles.xml.zip i can't get rid of the .zip file assosiation lol anyone fancy giving me a hand lol
hamdir said:
good job vegetaleb, ill try it out and add it to my camera guide if you don't mind, can you please explain the tweaked memory buffer, does it improve 720p recording?
forum.xda-developers.com/showthread.php?t=875230&styleid=16
alla ye7me lebnen
Click to expand...
Click to collapse
Sorry, 720p is adjustable only on kernel side.
Sent from my Desire HD using Tapatalk
Works fine on AR HD 5.1.3... Thx!
Working on Android Revolution HD, but I don't really see any differences
Edit : too slow lol
Sent from my Desire HD
goofylad said:
LOL am having a blonde moment lol, i downloaded the file and renamed it . xml but now its called media_profiles.xml.zip i can't get rid of the .zip file assosiation lol anyone fancy giving me a hand lol
Click to expand...
Click to collapse
if you use windows 7 this is what you should do
Control Panel - Folder Options - View - Hide extensions for known file types (uncheck this)
Then rename your file
Hello, some one please guide me so i can reduce the min brightness in lollipop, even the lowest is too bright and hurts my eyes at night,
I want to change settings in the rom and dont want to use apps
Take a look at this thread: http://forum.xda-developers.com/showthread.php?t=2893061 is for KK but I think is almost the same for LP
DorianX said:
Take a look at this thread: http://forum.xda-developers.com/showthread.php?t=2893061 is for KK but I think is almost the same for LP
Click to expand...
Click to collapse
Thabks, i tried it already and searched all what i could get from google, still nothing works and most mods need custum kernel or patching service jar which is a bit of a head ache of steps
If i could mod build prop or a sys file
My other phones where already dim at low or i could mod their brightness throu build prop or lcd min value but none is possible on this phone
Gamer4Life said:
Hello, some one please guide me so i can reduce the min brightness in lollipop, even the lowest is too bright and hurts my eyes at night,
I want to change settings in the rom and dont want to use apps
Click to expand...
Click to collapse
#!/system/bin/sh
#night mode
echo 1 > /sys/class/leds/wled:backlight/max_current
Can be used as script or via terminal emulator
If you need more brightness change value after echo
My value>
1 for lowest
3 for normal
25 for max
Yenkazu said:
#!/system/bin/sh
#night mode
echo 1 > /sys/class/leds/wled:backlight/max_current
Can be used as script or via terminal emulator
If you need more brightness change value after echo
My value>
1 for lowest
3 for normal
25 for max
Click to expand...
Click to collapse
Explain little more please?
Okay, fir now i lowered the max current, now the display is really nice and dim how just how i like it
But max brightness is very low now, only if i could only changr thr min value
You can use apktool to decompile framework-res.apk and change the lcd backlight related numbers in /res/values/ files. The lowest setting that I can still see my screen was 2. The lowest manual setting changes but the adaptive brightness doesn't go to the new minimum. But sometimes the framework-res.apk doesn't rebuild properly and you need to restore with recovery and ADB.
Gamer4Life said:
Okay, fir now i lowered the max current, now the display is really nice and dim how just how i like it
But max brightness is very low now, only if i could only changr thr min value
Click to expand...
Click to collapse
Just change value to 25
But you need change this value every time each reboot.
Not a permanent, but a handy solution :3
For me, I made 3 script as widget (in small app), so I can change brightness value as I like.
Yenkazu said:
Just change value to 25
But you need change this value every time each reboot.
Not a permanent, but a handy solution :3
For me, I made 3 script as widget (in small app), so I can change brightness value as I like.
Click to expand...
Click to collapse
I will be grateful if you share with us how to make these shortcuts in small app menu.
Also which setting do you use for night?
For me i tried 3 and i like it. My eyes are very sensitive to light and will make them dry and bit sore
I've modified the calibration on the g5+ I've reduced noise reduction strength by using the calibration from the Google pixel also disabled luminance noise reduction left only color so image maybe a lil grainy.
In the chromatix libs I've disabled
Adaptive Bayer Filter - Blurs the image
ASF 5*5 7*7 9*9 - Sharpness the image
Chroma Suppression
CAC
To copy libs use Solid Explorer to copy the libchromatix to /system/vendor/lib/
The libmm lib also goes in the same vendor lib folder
Use Case Test it in low light it Bins the sensor in sum mode to collect more light by merging pixel charges but because binned the image res is reduced to to 2016 x 1512
I would backup your stock files before copying new ones happy testing
IMG_20170510_075835401_HDR by defcomk, on Flickr
IMG_20170510_075756537_HDR by defcomk, on Flickr
any before/after photos?
ckret said:
any before/after photos?
Click to expand...
Click to collapse
I'm on a limited mobile connection I have after photos tho if on telegram I can forward them to you.
But you can test the libs and see solid explorer works best as it auto changes permissions so you don't need to
Sent from my NX503A using XDA Free mobile app
should this work on stock?
dhk.- said:
should this work on stock?
Click to expand...
Click to collapse
should work on all roms
defcomg said:
should work on all roms
Click to expand...
Click to collapse
OK, so, in DU and stock, moto camera get a max image size of 2 mpx... Google camera works ok in resolution terms.
dhk.- said:
OK, so, in DU and stock, moto camera get a max image size of 2 mpx... Google camera works ok in resolution terms.
Click to expand...
Click to collapse
you probably did
The libmm lib also goes in the same vendor lib folder
Use Case Test it in low light it Bins the sensor in sum mode to collect more light by merging pixel charges but because binned the image res is reduced to to 2016 x 1512
Click to expand...
Click to collapse
this is to be used in low light it increases sensor sensitivity by binning
only chromatix file are needed to fix sharpness and nr
defcomg said:
you probably did
this is to be used in low light it increases sensor sensitivity by binning
only chromatix file are needed to fix sharpness and nr
Click to expand...
Click to collapse
You were right... Fixed it and works as expected
Also, here you have a flashable zip if you don't care... This one is without libmm.
dhk.- said:
Also, here you have a flashable zip if you don't care... This one is without libmm.
Click to expand...
Click to collapse
Awesome you can post sample shots in this thread too:good:
Please someone post before and after images
Made a few scripts to inject these files without rebooting.
I don't know why but it returns a lot of errors messages but it works nonetheless
I have added shortcuts of these scripts using FX file manager. So I can enable and disable these mods from a tap.
You think this could be done even on other devices?
sharan.nyn said:
Made a few scripts to inject these files without rebooting.
I don't know why but it returns a lot of errors messages but it works nonetheless
I have added shortcuts of these scripts using FX file manager. So I can enable and disable these mods from a tap.
Click to expand...
Click to collapse
Can you please post comparison photos with mod applied and without mod
defcomg said:
I've modified the calibration on the g5+ I've reduced noise reduction strength by using the calibration from the Google pixel also disabled luminance noise reduction left only color so image maybe a lil grainy.
In the chromatix libs I've disabled
Adaptive Bayer Filter - Blurs the image
ASF 5*5 7*7 9*9 - Sharpness the image
Chroma Suppression
CAC
To copy libs use Solid Explorer to copy the libchromatix to /system/vendor/lib/
The libmm lib also goes in the same vendor lib folder
Use Case Test it in low light it Bins the sensor in sum mode to collect more light by merging pixel charges but because binned the image res is reduced to to 2016 x 1512
I would backup your stock files before copying new ones happy testing
IMG_20170510_075835401_HDR by defcomk, on Flickr
IMG_20170510_075756537_HDR by defcomk, on Flickr
Click to expand...
Click to collapse
Sound interesting. Can u show how do calibrate that, or maybe edit?
X-Tsubasa said:
Sound interesting. Can u show how do calibrate that, or maybe edit?
Click to expand...
Click to collapse
Maybe in the weekend I will post a how to. I use Hex Workshop and manually map all the values I've mapped CPP fully 3A Partially ISP only important bits related to sharpening and blurring from there I can disable PR adjust strength I usually just disable them as the images work better for post processing applying filters etc
defcomg said:
Maybe in the weekend I will post a how to. I use Hex Workshop and manually map all the values I've mapped CPP fully 3A Partially ISP only important bits related to sharpening and blurring from there I can disable PR adjust strength I usually just disable them as the images work better for post processing applying filters etc
Click to expand...
Click to collapse
Definitely post a How-To - those photos look superb!
p.s. Does this require a ROM? Or would rooted Stock do? Thanks!
srb- said:
Definitely post a How-To - those photos look superb!
p.s. Does this require a ROM? Or would rooted Stock do? Thanks!
Click to expand...
Click to collapse
Should work in any ROM as there is nothing special done that would require a specific ROM. In fact you could duplicate these changes on another device with same chromatix version ie op3t pixel mi5 v20 mi5s etc
Can I use this mod on Moto Z Play?
This should work on Moto Z Play, right ?
Low light photography for higher resolution than the default.
vthnhon said:
Low light photography for higher resolution than the default.
Click to expand...
Click to collapse
Newbie questions:
-What Gcam is this for?
-If I import this, will it only add the changes for low light or will it overwrite all settings?
conbak49 said:
Newbie questions:
-What Gcam is this for?
-If I import this, will it only add the changes for low light or will it overwrite all settings?
Click to expand...
Click to collapse
Take photos when the light is low, the default camera will give low resolution. And this will give higher image resolution should look clearer.
vthnhon said:
Take photos when the light is low, the default camera will give low resolution. And this will give higher image resolution should look clearer.
Click to expand...
Click to collapse
So what Gcam version will this work with?
conbak49 said:
So what Gcam version will this work with?
Click to expand...
Click to collapse
My experience is the Gcam apps don't use the camera config xml, only the oem camera app that comes with the lgv30. The Gcam ports, some of them, have 'night vision', which work very well in low light shots.
How would one even apply this to the default camera?
Radicalcokemonkey23 said:
How would one even apply this to the default camera?
Click to expand...
Click to collapse
That would depend on your phones setup, but, most have rooted devices with magisk installed. If that's the case for you, then you'd have to have a magisk module that would 'seamlessly' make the changes in your root directory.
In this link I created a module for the 4k video 60fps change. It would be pretty easy for someone to modify the config xml in that module and apply this change.
cheers
Would it be as simple as deleting the folders containing media details XML and replacing the camera config with this one?
Radicalcokemonkey23 said:
Would it be as simple as deleting the folders containing media details XML and replacing the camera config with this one?
Click to expand...
Click to collapse
Yes
I have downloaded an app called touch sampling rate checker and my Moto Edge 20 only shows a rate of 90-117hz regardless of screen refresh rate setting, however when using the same app on my mi11 it shows a constant 250hz and the mi 11 seems smoother in Twitter and Facebook etc am I missing something here?
Touch sampling rate and refresh rate are two different things. If you want a refresh rate checker, you can find it in developer options.
PhotonIce said:
Touch sampling rate and refresh rate are two different things. If you want a refresh rate checker, you can find it in developer options.
Click to expand...
Click to collapse
Yeah I get that but I thought this phone has a 576hz touch sample rate? Unless the app is inaccurate ?
Not sure about the app, maybe try a different one.
nealyblue said:
Yeah I get that but I thought this phone has a 576hz touch sample rate? Unless the app is inaccurate ?
Click to expand...
Click to collapse
You have to enable game mode for individual apps for max touch sampling rate to be enabled.
dannejanne said:
You have to enable game mode for individual apps for max touch sampling rate to be enabled.
Click to expand...
Click to collapse
Unfortunately I already did that and the maximum I see is 250hz. Where have the 576hz they said gone?
fulltronservice said:
Unfortunately I already did that and the maximum I see is 250hz. Where have the 576hz they said gone?
Click to expand...
Click to collapse
Yeah the highest I've seen is 400hz with game mode
nealyblue said:
Yeah the highest I've seen is 400hz with game mode
Click to expand...
Click to collapse
So that means that the value is dynamic up to 576hz. nothing to worry about then
Android apps dont usually report the correct sampling rate. Connect the phone through USB to a PC and run through ADB run the commands: "Adb shell getevent -r -t -l" and then start swiping on the display. It should report the correct sampling rate.
Username: Required said:
Android apps dont usually report the correct sampling rate. Connect the phone through USB to a PC and run through ADB run the commands: "Adb shell getevent -r -t -l" and then start swiping on the display. It should report the correct sampling rate.
Click to expand...
Click to collapse
That ADB thing really helped. Now I can see the real use of touch sensitivity. From the huge list that came out I could see a maximum of 473hz. So the capability that Motorola offers is installed.
Thanks
fulltronservice said:
That ADB thing really helped. Now I can see the real use of touch sensitivity. From the huge list that came out I could see a maximum of 473hz. So the capability that Motorola offers is installed.
Thanks
Click to expand...
Click to collapse
It varies on how fast you can drag your finger across the screen. I'm sure that if you drag it fast enough you'll hit 576Hz.
Username: Required said:
It varies on how fast you can drag your finger across the screen. I'm sure that if you drag it fast enough you'll hit 576Hz.
Click to expand...
Click to collapse
Yes, I was able to notice that. When I made a simple contact, the response barely reached 100hz, but if I made aggressive contacts, the response was quite high.
fulltronservice said:
Unfortunately I already did that and the maximum I see is 250hz. Where have the 576hz they said gone?
Click to expand...
Click to collapse
I just found out by experimenting Game Turbo:
1. Add your Game App/ Touch Tester App to game mode/turbo
2. Enable Auto Rotation mode (Portrait / Landscape mode)
3. Rotate ur Phone to Landscape even if the app doesnt support it
4. Touch the Screen while in Landscape and see the result Increases to Max Touch Rate
Follow what i said. I want to see the result.
Ty
cjlaysico said:
I just found out by experimenting Game Turbo:
1. Add your Game App/ Touch Tester App to game mode/turbo
2. Enable Auto Rotation mode (Portrait / Landscape mode)
3. Rotate ur Phone to Landscape even if the app doesnt support it
4. Touch the Screen while in Landscape and see the result Increases to Max Touch Rate
Follow what i said. I want to see the result.
Ty
Click to expand...
Click to collapse
Thanks for the tip man I was freaking out with my Xiaomi 11T Pro who supposedly have 480hz sampling rate screen and was just getting 250hz tops within checker apps, until I run them through Gaming Mode as you suggested with Pro mode enabled and YES the sampling rate wen above 500hz tops.
So the range is dynamic? Supposedly to save battery I guess?
Regardless thanks!