• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Working Gcam 6 with manual focus and long exposure!

Search This thread

xterminater07

Senior Member
Dec 4, 2010
1,576
476
Mar 12th, 2019

So it has been awhile since I tinker with Gcam, and now that I have finished the modding of it and no longer have my Mix 3, I will upload the final copy of Gcam. As usual thanks to everyone from defcomg, cstark27, san1tyy, xtreme, bsg, zoran.

https://drive.google.com/open?id=1rBUkxfz2IlG_0SGaTlJ2G6mL-16Bx8LY

Changelog:
-added corrected black level for most shots. Bl corrected for 1/30 shutter so you will have slight tint on slow shutter at extreme low light conditions.
-modified xlib2 to remove tint, and noise
-new menu and icons

Bugs:
-sometimes hdr+ enhanced at 40 frames or 36 frames will not save the first shot, but shot afterwards will save. Tried to find a fix but cannot so use lower frames for most stability, ie.. 25 or so.




Feb 7th, 2019

Update: https://drive.google.com/open?id=1IKGyubiBrdqWVp_gQfmTLaA8HErtoyk7
-added lens blur mode courtesy of san1tyy to take picture of objects and animals

Recommended settings:
-Rear camera set to Pixel 3 XL
-Processing set to 2018 zslr hdr+
-set frames to 40 for min and max for best low light shot (will take some time to process), or set to 20 for both for quick shots
-hdr+ enhance and night sight set min iso compensation to 1/3 or 1/4 s for best shot, but hands have to be still as possible
-exposure compensation to +0.6
-chose Xlib for lib choice


So several have stated that shutter isn't working on global rom, and some other Mix flagship such as Mix 2/2S doesn't work so with help from san1tyy, metadata was cleaned up and should be working now

https://drive.google.com/open?id=1hu9tm0ZSMI3F645rSr2wXq3HhMRP5DUp




Feb 4th, 2019

After bunch of trials and error, lib modding here and there, finally got a working stable version with some new changes with help from Zoran, Savitar, Xtreme, and San1tyy :p . Lib modding for awb using different calibrations from various devices would not play nice due to either unsaturated or nuclear saturation, especially from S9 series, so I just left it stock for now. Here's the new apk: https://drive.google.com/open?id=1scOaLD8_eeZEdlaR6q1lCXzUSLtb6miB

Changes:
-added compensation exposure
-new lib (Xlib) with sharpened decreased
-frames changed to 40 instead of 45 due to exif cache size error and won't save image
-qc color awb works finally without the yellow tint, thanks big time to Savitar
-UI changes

enjoy guys and donation are welcome so I can get more devices to work on. Paypal: [email protected]



The iso slider had an issue, and wouldn't capture. Also sabre and pixel 3 awb was not included so this version is updated to include it
https://drive.google.com/open?id=11ORyhdqIjFXNlZFsdfA0NDEW8auU3aNr

So sliders had some issue of not triggering for both iso and focus. After multiple test trials, san1tyy and defcomg pulled through again and got it working! APK is also cleaned up to only include Edzman v3, savitar v2, and stock google libs. Enjoy guys.

https://drive.google.com/open?id=1Mtr1GB2aGlBme42Fv82f9Co9Nyd20PXY


https://drive.google.com/open?id=1jfKHqHjahS-K8-GJz04BjxgphyTFmvmo

Make sure you are on the latest global beta from Xiaomi, or the latest beta from xiaomi.eu for camera not to lag in viewfinder and processing HDR+. This mod is based on BSG's latest version with working telephoto lens. Thanks to the great defcomg, xtreme and san1tyy over at telegram, here are the changes:

-added 45 frames, and 50 frames. The 50 frames will cause viewfinder to flicker like crazy but it does works.
-removed ISO limit of 9600 because stock camera can go up to 19000+ iso
-long exposure added for up to 32 seconds in hdr+ enhanced and night sight
-manual focus sliders and exposure sliders

Slo motion should work, motion photo do not work because of lib issue from xiaomi. For configs, use Pixel XL for rear camera, processing use 2018 zlsr+, front camera can use Pixel 3 XL. Using Pixel XL gives correct awb vs Pixel 3 XL which gives a true to life color at night time with low lighting (ie.. 5 to 10 lux).
 
Last edited:

Lautarojcb

Member
Apr 27, 2016
24
4
Hi xterminater07, Thanks for your work! Its impressive! I use this version of gcam for my LG G6 and works great but I have some doubts about the 32s long exposure. Could you tell me what file inside the gcam package can I modify to try other configurations? I decompile the apk but I cant find where the parameters are for the amount of seconds depending on the lux. Thanks!!!
PD: Sorry for my bad english
 

lv-88

Member
Apr 16, 2009
24
3
Stockholm
All the lags and slowness disappeared after the latest global update (received the ota and updated an hour ago), now when I tried night Sight, taking multiple shots in a row etc etc there are no lags whatsoever anymore for me!

I was just about to flash the EU rom to fix the lags but no need anymore!
 
  • Like
Reactions: reasonablebasis

faddys123

Senior Member
May 8, 2010
2,627
96
All the lags and slowness disappeared after the latest global update (received the ota and updated an hour ago), now when I tried night Sight, taking multiple shots in a row etc etc there are no lags whatsoever anymore for me!

I was just about to flash the EU rom to fix the lags but no need anymore!

Me too! I don't know what they did but its not lsggy anymore!

---------- Post added at 06:50 PM ---------- Previous post was at 06:48 PM ----------

Does any one find that you have to tap twice on the camera button to take a pic? Very annoying
 
  • Like
Reactions: reasonablebasis

kurdes

Member
May 16, 2016
39
12
Thanks for this great port! Is it possible to implement the option that the portrait photos wont be saved in a separate folder? In the port for Pocophone it is...
Thank you again!
 
Nov 20, 2016
36
26
Sorry, just figured it out. Enable Aux camera in BSG settings, then double tap change camera icon (the one to change to front camera). It changes from back normal > front > back telephoto.
 
  • Like
Reactions: ruubs

ruubs

Senior Member
Feb 14, 2009
312
18
Wierden
Sorry, just figured it out. Enable Aux camera in BSG settings, then double tap change camera icon (the one to change to front camera). It changes from back normal > front > back telephoto.

Thank you for this, i was just trying to figure this out haha.

Does portrait mode work on your Mix 3? When i select portrait it zooms-in and only makes one photo while it says 'burst images'. When i disable zoom on portrait the only thing that seems to change is the zoom, but no acutal portrait shot. Well.. it seems the same as a normal photo
 
Nov 20, 2016
36
26
How do I enable the telephoto lens?

Thank you for this, i was just trying to figure this out haha.

Does portrait mode work on your Mix 3? When i select portrait it zooms-in and only makes one photo while it says 'burst images'. When i disable zoom on portrait the only thing that seems to change is the zoom, but no acutal portrait shot. Well.. it seems the same as a normal photo

I noticed that it does not work for small objects, but works well with people. I guess the subject has to be far enough for portrait mode to actually work.
 
Nov 20, 2016
36
26
Regarding the telephoto lens, there seems to be no noise reduction applied to it, unlike the main lens. This results in very grainy photos especially during the night. Can you add noise reduction, or an option for it for both lenses in the settings? Thanks
 

Pantherx12

Senior Member
Jan 12, 2011
639
141
OnePlus 7 Pro
Thank you for this, i was just trying to figure this out haha.

Does portrait mode work on your Mix 3? When i select portrait it zooms-in and only makes one photo while it says 'burst images'. When i disable zoom on portrait the only thing that seems to change is the zoom, but no acutal portrait shot. Well.. it seems the same as a normal photo

Works fine for me, but only for actual portrait photography. It can't recognise objects.
 

bluviper

Senior Member
Oct 6, 2010
919
125
MKTICBD
Thank you for this, i was just trying to figure this out haha.

Does portrait mode work on your Mix 3? When i select portrait it zooms-in and only makes one photo while it says 'burst images'. When i disable zoom on portrait the only thing that seems to change is the zoom, but no acutal portrait shot. Well.. it seems the same as a normal photo

have you tried clicking on the resulting image, if you open it, you will see a blurred one and the non-blurred editions.
so the resulting image is like a folder that when you open, it will have the blurred edition inside it.
 

kurdes

Member
May 16, 2016
39
12
Ive discovered that the newest Gcam port from the Pocophone thread also works on our Mix 3! It has more options like save in camera folder when taking portrait shots and so on... Everything works, is there any downside using it?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 14
    Mar 12th, 2019

    So it has been awhile since I tinker with Gcam, and now that I have finished the modding of it and no longer have my Mix 3, I will upload the final copy of Gcam. As usual thanks to everyone from defcomg, cstark27, san1tyy, xtreme, bsg, zoran.

    https://drive.google.com/open?id=1rBUkxfz2IlG_0SGaTlJ2G6mL-16Bx8LY

    Changelog:
    -added corrected black level for most shots. Bl corrected for 1/30 shutter so you will have slight tint on slow shutter at extreme low light conditions.
    -modified xlib2 to remove tint, and noise
    -new menu and icons

    Bugs:
    -sometimes hdr+ enhanced at 40 frames or 36 frames will not save the first shot, but shot afterwards will save. Tried to find a fix but cannot so use lower frames for most stability, ie.. 25 or so.




    Feb 7th, 2019

    Update: https://drive.google.com/open?id=1IKGyubiBrdqWVp_gQfmTLaA8HErtoyk7
    -added lens blur mode courtesy of san1tyy to take picture of objects and animals

    Recommended settings:
    -Rear camera set to Pixel 3 XL
    -Processing set to 2018 zslr hdr+
    -set frames to 40 for min and max for best low light shot (will take some time to process), or set to 20 for both for quick shots
    -hdr+ enhance and night sight set min iso compensation to 1/3 or 1/4 s for best shot, but hands have to be still as possible
    -exposure compensation to +0.6
    -chose Xlib for lib choice


    So several have stated that shutter isn't working on global rom, and some other Mix flagship such as Mix 2/2S doesn't work so with help from san1tyy, metadata was cleaned up and should be working now

    https://drive.google.com/open?id=1hu9tm0ZSMI3F645rSr2wXq3HhMRP5DUp




    Feb 4th, 2019

    After bunch of trials and error, lib modding here and there, finally got a working stable version with some new changes with help from Zoran, Savitar, Xtreme, and San1tyy :p . Lib modding for awb using different calibrations from various devices would not play nice due to either unsaturated or nuclear saturation, especially from S9 series, so I just left it stock for now. Here's the new apk: https://drive.google.com/open?id=1scOaLD8_eeZEdlaR6q1lCXzUSLtb6miB

    Changes:
    -added compensation exposure
    -new lib (Xlib) with sharpened decreased
    -frames changed to 40 instead of 45 due to exif cache size error and won't save image
    -qc color awb works finally without the yellow tint, thanks big time to Savitar
    -UI changes

    enjoy guys and donation are welcome so I can get more devices to work on. Paypal: [email protected]



    The iso slider had an issue, and wouldn't capture. Also sabre and pixel 3 awb was not included so this version is updated to include it
    https://drive.google.com/open?id=11ORyhdqIjFXNlZFsdfA0NDEW8auU3aNr

    So sliders had some issue of not triggering for both iso and focus. After multiple test trials, san1tyy and defcomg pulled through again and got it working! APK is also cleaned up to only include Edzman v3, savitar v2, and stock google libs. Enjoy guys.

    https://drive.google.com/open?id=1Mtr1GB2aGlBme42Fv82f9Co9Nyd20PXY


    https://drive.google.com/open?id=1jfKHqHjahS-K8-GJz04BjxgphyTFmvmo

    Make sure you are on the latest global beta from Xiaomi, or the latest beta from xiaomi.eu for camera not to lag in viewfinder and processing HDR+. This mod is based on BSG's latest version with working telephoto lens. Thanks to the great defcomg, xtreme and san1tyy over at telegram, here are the changes:

    -added 45 frames, and 50 frames. The 50 frames will cause viewfinder to flicker like crazy but it does works.
    -removed ISO limit of 9600 because stock camera can go up to 19000+ iso
    -long exposure added for up to 32 seconds in hdr+ enhanced and night sight
    -manual focus sliders and exposure sliders

    Slo motion should work, motion photo do not work because of lib issue from xiaomi. For configs, use Pixel XL for rear camera, processing use 2018 zlsr+, front camera can use Pixel 3 XL. Using Pixel XL gives correct awb vs Pixel 3 XL which gives a true to life color at night time with low lighting (ie.. 5 to 10 lux).
    3
    No. Try downloading the newest version for mix 3 from here: https://www.celsoazevedo.com/files/android/google-camera/dev-san1ty/
    2
    Thanks for your effort. Is there a chance to get the front camera flash implemented? It's much more effective than the built in solution with the flashing display. Also, any chance of using the telephoto lens? Greetings from Germany.

    I don't think it's possible to get the front camera flash to work.
    As for the telephoto lens, it is possible. Follow these steps:

    1. Download GCam here https://f.celsoazevedo.com/file/gcamera/MGC_6.1.021_MI8_V2e.apk (it's the most stable one for our Mix 3) and install it.
    2. Open GCam app and go to "More" and "Settings"
    3. In settings open "BSG Settings".
    4. Make sure Input model is either Pixel 2 (Walleye) or Pixel 2 XL (Taimen) for BOTH Back camera and Front camera. This step is important because if the Input model is set to something else, you will have grainy photos with telephoto lens.
    5. Still in "BSG Settings", make sure the option "Add AUX to Camera Switch" is on! Otherwise you won't be able to use the telephoto lens.

    Now you can use the telephoto lens. In order to use it, switch to front camera, then to back camera again.
    1
    Any news on the global stable update?

    I find the Xiaomi forums a pain to navigate otherwise would check myself heh.
    1
    Portrait mode works only on human faces not for objetcs. On the last version, focus mode has bien added and now we can make portraits of objects.
    Otherwise, how to make motion photos working ? It's impossible for me to make this function working.
    I'm on a Mi Mix 3 Perseus with Pixel Experience Rom.
    Thanks on advance !