increase camera bitrate? - LG Optimus G Pro

In nearly every device I've owned, there's been a way to improve the image quality by increasing the bitrate and/or lowering compression, either in the stock camera app, or by a hack or mod.
Is there something similar for the LG OG Pro camera?
I'd like to see how much we could squeeze out of it by increasing the bitrate and reducing compression ratio, etc.

nevermind.

Here's the mod
40MP Panorama, No compression and I can't recall more. It's not my work, found it somewhere around xda but lost the link now.
Don't forgot to backup original media_profiles.xml before using rootexplorer(or adb push) to overwrite the file in /system/etc
**This is not a flashable zip**
Do post your result
Tested on SphinX v 2.0 and Stock KitKat
Device E980

Related

Tinkering with [ROM] Android Revolution HD 7.2.1 and HQ camera tweaks

I've just had a tinker with the ROM i'm settled with till JB is properly debugged. I checked the camera mods supplied in this thread
http://forum.xda-developers.com/showthread.php?t=1765416
In the zip he supplies I noticed the camera.apk files are way different to the ones supplied in the rom from
[ROM] Android Revolution HD 7.2.1 | AROMA | High Quality & Performance | 2.05.401.2
I guess he must be using the old camera.apk file
so I held back from flashing it. So I just copied the
various profiles and tested them
the following was the best settings to make everything reliably work consistently and at a high quality level. I also tried changing all the incorrect 1088p values to what they should be 1080p made no difference to the output videos.
from the zip he supplies
OneXed-Cam-Mod-v2.1.zip
cameraMod\bitRate-30-bigImg\system\etc\media_profiles.xml
just copy that file to
your roms zip
system\etc\media_profiles.xml
The detail in the image of the pics will also increase using this file from about 2Mb to over 7Mb there is definately greatly reduced jpg artifacts and more visible detail so for me as a photographer a big plus!
The video also is outputed at 30fps files are much bigger but worth it nice and fluid no jerkyness. What I was impressed most of all was that I could still capture pics also no change to the way the program functions as standard.
I've also edited the two
files
system\usr\keylayout\Generic.kl
system\usr\keylayout\qwerty.kl
for key 115
as the following
key 115 CAMERA WAKE_DROPPED
This gave me the volume up button as a switch for shutter press which improves my photography experience with the phone.
The system\etc\media_profiles.xml file is well worth experimenting with I did try some other bitrates. But to make it an easy upgrade just try using the file media_profiles.xml I mentioned above placed in your ROM zip file before you flash.
back to tinkering

[MOD][PORT] Jishnu's Camera™ V3.5B | F50 [4K Ultra - Chroma Flash]

Now Featured on XDA Portal Here. Thanks a Lot to our own Moderator "eagleeyetom"
Jishnu's Camera 4K UHD Sample. Click Here to have a look.
Disclaimer: I"m not responsible if you brick your Device though its tested. Please Don't spam the thread saying I bricked my device and what now?! If you read carefully, you will find a solution and there is always a life line, the "SEARCH" bar.
Changelog for JB Firmware
Code:
[B][I][COLOR="Red"]V1 Details[/COLOR][/I][/B]
1) Modified Camera.msm8970 for the Bettery Video Quality.
2) The Camera Now Shoots up faster than compared to Stock.
3) Increased the Image quality to 99 from 95 in Camera.msm8970
4) Increase The Video Bitrate of the Videos.
[B][I]1080P[/I][/B] Videos are now shot @ [B][I]30MB/s[/I][/B].
[B][I]720P[/I][/B] Videos are now shot @ [B][I]20MB/s[/I][/B].
5) Better Focusing as changes made in camera.msm8970.
[COLOR="red"][B][I]V2 Details [/I][/B][/COLOR]
- Decreased the Max ISO to 1200 from 1600 (The More the ISO the more the noise in the pic)
- Decreased the ISO levels as such-
Note: It may show the Values of the ISO n settings as Such
[B][I]ISO in Settings - ISO In Actual
1600 - 1200
800 - 650
400 - 310
200 - 200
100 - 100
Auto - Max in Auto (1200)[/I][/B]
- Increased the sharpness from 90 to 95.
- Increased the JPEG Preview Quality to 99 from 90.
- Adjusted ISO to[B][I] Max 200[/I][/B] For face Detection.
- Increased the[B][I] Minimum FPS[/I][/B] of the [B]1080P[/B] Video to [B][I]25[/I][/B] & Max to [B][I]40[/I][/B] FPS.
- Increased the [B]Minimum FPS[/B] for[B][I]60[/I][/B] FPS Video to[B][I] 25[/I][/B].
- Many More Adjustments.
[COLOR="Red"][B][I]V2.5 Details [/I][/B][/COLOR]
[B][I]AntiBanding[/I][/B] default set to]50Hz
- [B][I]Exposure Compensation[/I][/B] Decresed to [B][I]-1[/I][/B]
- [B][I]Exposure Compensation[/I][/B] Step Decresed to 0.1 from 1.24
- Focus Range adjusted.
- [STRIKE]Tried to Fix Video FPS at night to atleast 25FPS.[/STRIKE] [COLOR="Red"][B][U]Failed[/U][/B][/COLOR]
- [B][I]Picture Sharpness[/I][/B] Decreased to 85
[B][I][COLOR="Red"]V2.5.1 Details[/COLOR][/I][/B]
- Set FPS at 30 to 60 FPS Range.
- Set [B][I]Exif [/I][/B]Info details.
- Changed the [B][I]YUV420[/I][/B] formats to [B][I]YUV422[/I][/B]. [U]YUV420 are old formats[/U].
- Decreased[B] Maximum Exposure[/B] compensation to 15.
- Increased [B]Minimum Exposure[/B] compensation to -15.
- Enhanced [B][I]Smooth zoom.[/I][/B]
[B][I][COLOR="Red"]V2.5.2 Details[/COLOR][/I][/B]
- Turned [B][I]Edge Enhancement[/I][/B] On.
- Turned [B][I]Edge Enhance[/I][/B] off. (Makes the night pics blurry)
- Changed Pic Decoder quality to 99.
- Changed Pic Encoder quality to 99.
- Decreased the Bit rates of the Videos as Follows:
[B][I][email protected] FPS : 20MB/s
[email protected] FPS : 15MB/s
[email protected] FPS : 10MB/s[/I][/B]
- Reason, No use of Increasing Bit Rate to Max because of -
1) Increased Size of the Video.
2) Cache Will Fill up so fast that Video wont be able to write on the Memory.
- Fixed the Low Light Video Lag.
- Changed the [B][I]Default FPS[/I][/B] to [B][I]30[/I][/B].
[B][I][COLOR="Red"]V2.5.3 Details[/COLOR][/I][/B]
1) Video Preview rate set to 30.
2) Video Sharpness increased to 22 from 20.
3) JPEG quality improvements for grains in low light, though should be very marginal.
4) I really forgot, it was long back though! :P (SORRY)
[B][I][COLOR="Red"]V2.5.4 Details[/COLOR][/I][/B]
1) Set [B][I]JPEG Quality to 100%[/I][/B]. (Maximum Available Value)
2) Set [B][I]JPEG Compression to NIL[/I][/B] (Zero Compression, should come out almost RAW [Though processed] ).
3) Set Medium Quality JPEG's to 100.
4) Set Low Quality JPEG's to 100.
5) Set [B][I]Picture sharpness[/I][/B] back to 97 from xx in the previous MODs.
6) Set Back [B][I]Noise Reduction[/I][/B] to [B][I]ON[/I][/B].
7) Set The [B][I][U]Secondary MIC OFF[/U][/I][/B] (Noise Cancellation MIC) for less watery sounds.
8) Set Sound Bitrate to [B][I]256Kbit/s[/I][/B] like Nokia Lumia 1020.
9) Self enhancing Skin Tone Colors If you notice.
[B][I][COLOR="Red"]V2.5.5 Details[/COLOR][/I][/B]
1) [B][I]Sharpness[/I][/B] bumped to [B][I]99[/I][/B].
2)[B][I] 60 FPS[/I][/B] Videos should be working now.
3) Low light videos should have a [B][I]stable 30 FPS[/I][/B] constant.
4) ISO tables used by LG were mine!
[B][I][COLOR="Red"]V2.5.6 Details[/COLOR][/I][/B]
1) Max FPS range is 60.
2) Min FPS range is 30 (Any Light)
3) Sharpness of the pics are 99 (again)
4) Bitrate of 1080P 25Mbps and 720P is 20Mbps.
[B][I][COLOR="Red"]V_2.5.6 EXPT_2 Details[/COLOR][/I][/B]
1) FPS range is max is 90.
2) 1080P & 720P Videos has HFR options.
3) JPEG Compression s "0" or AKA "RAW"
4) Fixed ISO 400.
[B][I][COLOR="Red"]V_2.5.6 EXPT_3 Details[/COLOR][/I][/B]
1) Back Camera Records 720P Videos @ 90 FPS. [Broken- Max FPS limited by LG is 60]
2) Front camera records 1080P Videos @ 60 FPS.
3) Image quality increased more than EXPT_2.
4) Sharper pictures in both cameras.
5) HFR Bitrate is now 25Mbps.
[B][I][COLOR="Red"]V_2.5.6 EXPT_4 Details[/COLOR][/I][/B]
1) Fixed Back Camera 720P Video. Records at 60 FPS.
2) JPEG quality increased to Max for this Device. [Cant go Higher]
3) HFR FPS tried to stable at 30 FPS at low light
4) Sharpness Increased for Front camera.
5) The Pictures taken can be as big as 11MB's. Don't complain! :D
Changelog for KK Firmware
Code:
[B][I]Version 3.1 For KK Stock ROMs[/I][/B]
1) Now 4K recording should work.
2) Now 120 FPS Videos should also work.
3) JPEG Compression is zero.
[B][I]Version 3.2 For KK Stock ROMs -[/I][/B]
1) 4K video Recording.
2) 120fps Slow-Mo Video Recording.
3) Magic Focus Mode from LG G Pro 2. [B][I][COLOR="Red"][NEW][/COLOR][/I][/B] Not Completely working but NO FC's or bootloops as well.
[B][I]Version 3.3 For KK Stock ROMs -[/I][/B]
1) 4K and 120 FPS Recording.
2) [B][I][COLOR="Red"]New[/COLOR][/I][/B] Chroma Flash Technology. Just as the sensor, this flash is also the same as of the G pro 2 and LG G2 has the chroma flash tech which can enabled. Read more [URL="http://www.gsmarena.com/lg_g_pro_2-review-1056p8.php"]Here[/URL].
3) [B][I][COLOR="Red"]New[/COLOR][/I][/B] Low light Viewfinder framerate is now stable at a particular framerate and almost lag-less. smoother Viewfinder = less shaky images & Faster capture.
4) Low light Video framerate is stable at 30 fps.
5) Better Image metering as compared to the V3.2 apk which produces much over exposed shots.
6) [B][I][COLOR="Red"]New[/COLOR][/I][/B] Intelligent Auto mode gets much more attention this time. It has much faster shutter speeds as compared to the V3.2.
7) [B][I][COLOR="Red"]New[/COLOR][/I][/B] ClearShot should have much better focusing while the pic is taken.
8) Low light Photo sharpness has been increased as any of you had complaints about it.
9) Camera switching and start up should be much much faster as well if compared to V3.2.
10) The apk is from the G pro 2 just like the V3.2 . So the apk [ONLY] can be used with the Ported G Pro 2 ROM of [user=4947573]@OptimusRs[/user].
[B][I]Version 3.4 For KK Stock ROMs[/I][/B]
1) Removed Magic Focus. It really annoyed me a lot.
2) Fixed the darkness Issue.
3) Fixed Low Light Framerate.
4) New Apk based on the Leaked firmware of a newer LG Device.
5) Faster HDR Processing.
6) Panorama Size at 10Mp each shot.
7) New Separate HFR Mode added for Front Camera.
8) Fixed lag for front camera. Better Quality.
NEW APK For 3.3 & Above
What it does?
1) It lets you backup of main files like the Original LGCameraApp.apk and .odex, media_profiles.xml and few other things.
2) It lets you restore your backup app in case you don't want it.
3) It lets you Install the mod as a system app on just a Tap.
How is it helpful?
1) No chmodding issues.
2) Easy to use.
3) Easy to restore stock.
Changelog For CM | OMNI | AOSP based
Code:
[B][I][COLOR="Red"][SIZE="3"]Beta Release E90[/SIZE][/COLOR][/I][/B]
[B][I][U][COLOR="DarkOrchid"]Things working:[/COLOR][/U][/I][/B]
1) Camera
2) Video Camera - 1080P Bitrate set at 20MB/s constant for now.
3) HDR
4) Cheeze shutter.
5) Pics while Video
6) ISO Modes
7) Video Brightness - SOLVED!
8) And everything else.
9) Video recording audio is awesome in this no disturbance for me!
[B][I]Not working:[/I][/B]
1) Time Machine shot.
2) Front Facing camera - For Pics only it FC's.
[B][I][COLOR="Red"][SIZE="3"]Stable Release F10[/SIZE][/COLOR][/I][/B]
[B][I][U][COLOR="DarkOrchid"]Things working:[/COLOR][/U][/I][/B]
1) Camera.
2) Video Camera -
1080P Bitrate set at 24MB/s constant for now.
720P Bitrate is 20Mb/s constant.
3) [B][I]Fixed the Camera Viewfinder alignment and size.[/I][/B]
4) [B][I]Fixed the Video Viewfinder alignment and size.[/I][/B]
3) HDR
4) Cheeze shutter.
5) Pics while Video
6) ISO Modes
7) Video Brightness adjustment.
9) [B][I]Video recording Audiobitrate to stable 200Kbps and 2 channel dual audio with voice cancellation.[/I][/B]
10) [B][I]Added Continuous Auto Focus for the Camera.[/I][/B]
11) Shutter Sound Off Option.
12) Widescreen Screen Preview when taking [B][I]HD or FHD[/I][/B] Videos.
13) Widescreen Screen Preview when taking[B][I] 8MP or 5MP[/I][/B] Photos.
14) [B][I]Added 13Mp resolution now.[/I][/B]
[B][I]Not working:[/I][/B]
1) Time Machine shot.
2) Front Facing camera - For Pics only it FC's.
3) Continuous shots.
4) Face Tracking.
[B][I][COLOR="Red"][SIZE="3"]Stable Release F32[/SIZE][/COLOR][/I][/B]
[B][I][COLOR="Purple"]What's new?[/COLOR] [/I][/B]
1) Totally New Camera UI.
2) Fixed the Layout colors. Now visible just fine.
3) Now Auto Focus has been Improved a lot.
4) Increased ISO for default. ISO Can go upto 9452 ! (Yes This camera is that good)
[B][I]What's not new?[/I][/B]
1) Everything else from the previous stable version.
[B][I][COLOR="Red"][SIZE="3"]Stable Release F40[/SIZE][/COLOR][/I][/B]
[B][I][COLOR="Purple"]What's new?[/COLOR] [/I][/B]
1) Added 12M Photo option.
2) Added Wide 10M Photo Option.
3) Slight Adjustment for Luminescence Value.
4) Retweaked for better stability.
5) Camera Opens in Landscape mode instead of Portrait.
[B][I]What's not new?[/I][/B]
Everything good and bugs from the Previous Versions.
[B][I][COLOR="Red"][SIZE="3"]Stable Release F50[/SIZE][/COLOR][/I][/B]
[B][I][COLOR="Purple"]What's new?[/COLOR] [/I][/B]
1) Pictures
2) Videos
3) HDR
4) Continuous Shot
5) Panorama Shot
6) Face Detection Mode
7) Continuous Focus mode
8) Front Facing camera
9) Beauty Shot
10) Cheese Shutter with 5 New Voice Capture tones
11) Smart Shutter Mode
12) Pictures while Videos.
13) Fixed Focus Issue
14) Fixed Orientation Issue
15) And Everything else.
[B][I]What's Not New? [/I][/B]
1) Time Capture Doesn't work.
[B][I][U]Note[/U]:[/I][/B]
For Better auto Focus adjustment, please make sure when you open the camera you toggle between Auto-Focus and Continuous shots twice. This makes the Autofocus even better. And Use the Continuous focus option for zero lag pictures.
And Use camera mode as "SMART SHUTTER"
[/HIDE]
Download for JB
Code:
[B][I][COLOR="Black"] [SIZE="3"]Stock Based[/SIZE][/COLOR][/I][/B]
[B][COLOR="Red"]Mod edit - links removed[/COLOR][/B]
Installation of JB
Code:
[B][I]Stock Based[/I][/B]
1) Download Root Explorer app from Play Store.
2) Navigate to System/app.
3) Look for these two files
- CameraApp.apk
- CameraApp.odex.
4) Rename them both to
- CameraApp.bak
- CameraApp.doex.
4) Download the MOD.
5) Place it on your sd card and flash it though recovery.
6) Dont complain if you fail to follow these steps.
Installation of KK
Code:
[B][I]Stock Based[/I][/B]
1) Download Root Explorer app from Play Store.
2) Navigate to System/Priv-app.
3) Look for these two files
- CameraApp.apk
- CameraApp.odex.
4) Rename them both to
- CameraApp.bak
- CameraApp.doex.
OR
move them both to sd card of the phone.
- CameraApp.apk
- CameraApp.odex.
4) Download the MOD.
5) Extract it through winrar.
6) Place Lgcamera.apk in System/Priv-app and set permissions rw-r--r--.
7) Navigate to system/etc and find media_profiles.xml and make a backup of it on your sd card.
8) Place the media_profiles.xml in system/etc and overwrite the existing one and set permissions rw-r--r--.
9) Reboot.
Installation of KK Version 3.3 & Above
Code:
1) Download and run the apk you have downloaded.
Installation of CM Based
Code:
1) Download the MOD.
2) Flash it through Recovery.
[B][I][SIZE="3"]Installation of F50[/SIZE][/I][/B]
1) Install as normal app
Donators
Code:
[B][I][SIZE="2"]eitama[/SIZE][/I][/B]
[B][I][SIZE="2"]Ainvar[/SIZE][/I][/B]
[B][I][SIZE="2"]tgabaree[/SIZE][/I][/B]
[B][I][SIZE="2"]somemadcaaant[/SIZE][/I][/B]
[B][I][SIZE="2"]markus4000[/SIZE][/I][/B]
[B][I][SIZE="2"]Melodycd[/SIZE][/I][/B]
[B][I][SIZE="2"]rubino25[/SIZE][/I][/B]
[B][I][SIZE="2"]Allesandro[/SIZE][/I][/B]
[B][I][SIZE="2"]Heatshiver[/SIZE][/I][/B]
[B][I][SIZE="2"]Adam1203[/SIZE][/I][/B]
[B][I][SIZE="2"]viking37[/SIZE][/I][/B]
[B][I][SIZE="2"]JackDupp[/SIZE][/I][/B]
[B][I][SIZE="2"]jpdidde13[/SIZE][/I][/B]
[B][I][SIZE="2"]podagee[/SIZE][/I][/B]
[B][I][SIZE="2"]Slinkynose[/SIZE][/I][/B]
[B][I][SIZE="2"]ManuelMagic[/SIZE][/I][/B]
[B][I][SIZE="2"]Skinydude[/SIZE][/I][/B]
[B][I][SIZE="2"]M Jathu[/SIZE][/I][/B]
[B][I][SIZE="2"]KTMrider (Guest)[/SIZE][/I][/B]
Credits :
@decomfg For Technical Help
@garyd9 For the kitkat files & the things he deserves thanks for
@bender_007 For the awesome auto Installer and the help & testing he does. Awesome man! Cheers!
@OptimusRs My younger brother who always helps me with the files.
@SREEPRAJAY My Elder Brother who always supports me to go in the right path.
Please tell me if I forgot you.
@xdabbeb For the Idea of faster shutter speed.
This MOD is a work of hours of hardwork. If you feel like buying me a Beer or a G2 for even better Stuff, you can donate to me.
Want to Implement 4K yourself? Remember its real fun. Click here!
Sounds nice. I assume root is needed. I'll have to root soon.
Does this work with t-mobile?
Sent from my LG-D801 using Tapatalk 2
Can I flash it through cwm recovery in D802 device?
Interested seeing low light video
Sent from my C6603 using XDA Premium 4 mobile app
moteb said:
Can I flash it through cwm recovery in D802 device?
Click to expand...
Click to collapse
Yes u can. I did it thru cwm on d802.
thanks man, i will give it a try.
edit:
photo quality seems to be a little bit better compared to the stock cam. camera response / auto fokus also seems to be improved.
stock:
modded cam:
Just finished rooting and flashing custom recovery. Will give this a try soon.
Sent from my LG-D801 using Tapatalk 2
Thanks , flash it a minit.... You want too share your cirkel battery icon ???
Can I flash it on my d803?
Sent from my LG-D803 using XDA Premium 4 mobile app
I hope so..
Should work if you have a 13MP OIS cam..
Said this coz Optimus G had different cams for various models..
Sent from my LG-P990 using xda app-developers app
Why does everyone leave out the T-Mobile variant?
Sent from my LG-D801 using Tapatalk 4
dw9906 said:
Why does everyone leave out the T-Mobile variant?
Sent from my LG-D801 using Tapatalk 4
Click to expand...
Click to collapse
It will work,,. I will update the OP..
Sent from my LG-P990 using xda app-developers app
awesome! thanks man!!
Does this just affect the stock camera app? I am using focal, would I see any benefit to this?
just curious, what do you mean by less juddering at night? like, a higher framerate when in low light situations when taking pics? bc mine's just as slow as before.
or did you mean videos? it's still shooting lower than 30fps..i'm getting around 17 or so. i wish there was a way to force FPS in all lighting
question, is there a way for you to up the quality of pics taken during recording? they're only like 500kb and i remember reading like 1mp somewhere. they're really bad.
also, how about panorama mode? is there a way for you to up that quality? panorama is really low stock as well.
jayochs said:
just curious, what do you mean by less juddering at night? like, a higher framerate when in low light situations when taking pics? bc mine's just as slow as before.
or did you mean videos? it's still shooting lower than 30fps..i'm getting around 17 or so. i wish there was a way to force FPS in all lighting
question, is there a way for you to up the quality of pics taken during recording? they're only like 500kb and i remember reading like 1mp somewhere. they're really bad.
also, how about panorama mode? is there a way for you to up that quality? panorama is really low stock as well.
Click to expand...
Click to collapse
Thanks for the Info! Now I have something which is at point and will help me do the things needed. I Will try my best!
The Problem is its compiled with Unstable toolchain!
Jishnu Sur said:
Thanks for the Info! Now I have something which is at point and will help me do the things needed. I Will try my best!
The Problem is its compiled with Unstable toolchain!
Click to expand...
Click to collapse
your work is greatly appreciated..i was waitin for this mod! just did another video, when i had flash on, i got about 19fps...so it's getting better. stock, i used to get like 14fps.
last week i tried to decompile the apk and look at it, then i remembered i'm not a dev and i have no idea wtf i'm looking at.....haahaha
Jishnu Sur said:
Thanks for the Info! Now I have something which is at point and will help me do the things needed. I Will try my best!
The Problem is its compiled with Unstable toolchain!
Click to expand...
Click to collapse
Which toolchain are you using?
@op - does the flashable zip file intentionally place camera.msm8974.so in the /system/hw folder (as structured in the zip file)? i ask because on on my att G2, the file camera.msm8974.so is located in the /system/lib/hw folder. (i typically create backups of files replaced by custom mods). thanks!
Test ISO image
This is a test image one could print out to compare before and after changes.
Without having a setup that we can really 'pixel peep' accurately it's hard to determine if what we are doing is improving or worth improving.
Anyway, hopefully we can set up some tests to compare the different improvements and get this camera performing decently. My feeling at this point is that LG needed to rush the G2 to market to beat the iPhone 5s/5c and Note 3 so there are some rough spots on an otherwise nice gem of a camera. Until LG devotes some time to improving the issues let's keep up the good work!

[MOD] Camera - Image/Video/Audio Bitrate Increases for Best Quality [NEW PROFILES!]

I AM NOT RESPONSIBLE FOR ANY NEGATIVE IMPACTS OR CONSEQUENCES ON YOUR PHONE IF YOU SO CHOOSE TO USE THIS GUIDE.
It had come to my attention that recording for long periods of time will result in large file sizes when using my mod. For this reason, I have now created different profiles to increase quality in either images or video/audio, including a new experimental version!
It has been stated that stock 1080P video runs around 20Mbps on the G2 (I consistently have 30Mbps). These mods can increase 1080P video to approximately 40-50Mbps. 720P, images, and audio Kbps can also be increased to max potential. The following steps help you unleash the best quality on the G2 camera!
WARNING: INCREASED BITRATES MEANS MORE STORAGE SPACE IS TAKEN UP.
PREREQUISITES
1) You MUST be rooted.
2) You MUST have recovery installed.
3) Download 1 of 6 media profiles:
media_profiles.xml (Increases to Image/Video/Audio)
media_profiles.xml (Increases only to Image)
media_profiles.xml (Increases only to Video/Audio)
media_profiles.xml (Stock)
media_profiles.xml (Experimental - Further Increases to Image/Video/Audio)
media_profiles.xml (Experimental - Further Increases solely to Image)
NOTE: I have tested the experimental Image/Video/Audio version. The image is a tad bit better. The video seems more stabilized and averages around 45Mbps. Audio stays about the same.
4) Download either Jishnu Sur's version 1 or version 2 mod (I prefer version 1). He now has version 2.5, 2.5.1, and 2.5.2, but only 2.5.2 has been successfully tested with my mod.
5) Download the stock file to revert from Jishnu Sur's versions.
MOD METHOD #1 (RECOMMENDED) - Requires most files from above.
1) Place all the downloaded files somewhere in the phone.
2) Boot into recovery.
3) Flash the stock zip.
4) Reboot system.
5) Boot back into recovery.
6) Flash the Jishnu Sur mod downloaded.
7) Reboot system.
8) Use a file explorer (like Root Explorer) app to open the folder where the downloaded media profiles file is.
9) Rename the media profiles file to be "media_profiles.xml".
10) Copy the media_profiles.xml file.
11) Navigate up to the root folder and go the "etc" folder.
12) Paste the media_profiles.xml file.
13a) A message may appear asking for rewrite (R/W) capability. Select "yes".
13b) A message will appear asking to confirm overwriting the current version. Select "yes".
14) Reboot the phone 1-4 times.
INSTALLATION METHOD #2 - Requires only the media_profile.xml and Stock file from above.
1) Place all the downloaded files somewhere in the phone.
2) Boot into recovery.
3) Flash the stock zip.
4) Reboot system.
5) Use a file explorer (like Root Explorer) app to open the folder where the downloaded media profiles file is.
6) Rename the media profiles file to be "media_profiles.xml".
7) Copy the media_profiles.xml file.
8) Navigate up to the root folder and go the "etc" folder.
9) Paste the media_profiles.xml file.
10a) A message may appear asking for rewrite (R/W) capability. Select "yes".
10b) A message will appear asking to confirm overwriting the current version. Select "yes".
11) Reboot the phone 1-4 times.
REBOOTS: The reason for the last step is that it needs at least one reboot (but probably two) to increase the quality of video. The images should already be at their highest quality.
AUDIO ISSUES: If the issue where audio can no longer be heard occurs, it has been confirmed that going back to stock and repeating the steps fixes this.
QUALITY INCREASES: I found that after at least one (as many as four) reboot I was getting extremely high video bitrates; between 38Mbps and 50Mbps! The image quality should increase above stock as well as above Jishnu Sur's mods. Audio increases between 190-210Kbps.
MOD DIFFERENCES: I found a few differences in these mods. Jishnu Sur's version 1 seems to help with focus and a few other things. His version 2 adds to his first by restricting high ISO or low FPS in low-lit areas. His newer versions decrease bitrates. My mod increases the quality of images and videos above Jishnu Sur's, but does not have the other features.
PREVIEW OF IMAGES AND VIDEO: Here is a large zip file of images I took while testing. There were an abundance from my reboots, but I only chose one set per folder since the file is almost 70MB!
HOW TO CHECK QUALITY:
Images - Check the storage sizes of two or more images. Open an image in Preview or any viewer that can zoom. Zoom in on the curtains. Open the other image(s) for comparison and perform the same amount of zoom. Compare the clarity (sharpness) of the images.
Video - Check the storage sizes of two or more videos. Right-click on a video and click Properties. Click the Details tab. Check the bitrate of the video. Right-click on the other video(s) and perform the same actions. Compare the difference in bitrates.
A quick lesson on Lighting (ISO, FPS, Exposure): The higher the ISO the more light for the camera, but with more noise in the image. The lower the frame rate (FPS) the more light for the camera, but less smoothness for video. Exposure can help you compensate for images (or parts of images) that come out too bright or dark. Exposure should be used when optimal ISO or FPS settings have been found and changing them will alter quality in some manner.
Credits: Jishnu Sur for his mods.
nice man. just flashing his mod now and your media profiles..i'm excited!
Can you post some examples of before and after the mod?
Sent from my VZW LG G2
Any way to download without signing up for a sky drive account?
Sent from my Nexus 10 using XDA Premium HD app
idk if its this or his camera mod, but audio doesn't work anymore.
---------- Post added at 02:13 PM ---------- Previous post was at 02:10 PM ----------
yes it's this mod.
flashing this for me took away audio during video recording. i went back to the old media profiles and audio is back.
jayochs said:
idk if its this or his camera mod, but audio doesn't work anymore.
---------- Post added at 02:13 PM ---------- Previous post was at 02:10 PM ----------
yes it's this mod.
flashing this for me took away audio during video recording. i went back to the old media profiles and audio is back.
Click to expand...
Click to collapse
Sorry to hear that. Just went back through my test files of video and each one I created had audio (The Simpsons were playing in the background). I am not sure why this is not working for you, anyone else with this issue?
Heatshiver said:
Sorry to hear that. Just went back through my test files of video and each one I created had audio (The Simpsons were playing in the background). I am not sure why this is not working for you, anyone else with this issue?
Click to expand...
Click to collapse
really weird. yeah, i made a backup of the stock media profiles after flashing his mod, and audio is back now...weird.
trickster2369 said:
Any way to download without signing up for a sky drive account?
Click to expand...
Click to collapse
You should not have to create a SkyDrive account as I have it open for public download. I logged out of my account, tested it, and I had no problem accessing it. Please check again and reply if the problem persists for you.
"NOTE: Flashing other Media Profiles may loose the quality as the camera.msm8970 is synced with the Media Profile."
i wonder if flashing this mod would've actually made it worse bc of that?
jayochs said:
really weird. yeah, i made a backup of the stock media profiles after flashing his mod, and audio is back now...weird.
Click to expand...
Click to collapse
I'm a bit confused, his mod, or mine? If the audio occurs after his (it doesn't for me), you can try my mod without his. My mod is purely for quality increases. I have done this for other phones before and never lost audio.
I have no audio either...
Kenchi* said:
I have no audio either...
Click to expand...
Click to collapse
Can you confirm if this is after flashing the other mod, or did you just try mine?
Heatshiver said:
You should not have to create a SkyDrive account as I have it open for public download. I logged out of my account, tested it, and I had no problem accessing it. Please check again and reply if the problem persists for you.
Click to expand...
Click to collapse
All good. I downloaded in browser mode. And, apparently, I have an account, just haven't used it in forever.?
Thanks Devs. From my VZW G2.
jayochs said:
"NOTE: Flashing other Media Profiles may loose the quality as the camera.msm8970 is synced with the Media Profile."
i wonder if flashing this mod would've actually made it worse bc of that?
Click to expand...
Click to collapse
I would have to say no just from the test files I have. I think the statement refers to media profiles that have yet to be altered (stock settings), which would definitely bring down your bitrates (back to stock).
Heatshiver said:
I would have to say no just from the test files I have. I think the statement refers to media profiles that have yet to be altered (stock settings), which would definitely bring down your bitrates (back to stock).
Click to expand...
Click to collapse
ah. what i did was flashed his mod, then pushed your media profiles and lost all audio.
also, the videos that were recorded with your media profiles didn't work correctly on my PC. they would freeze up and wouldn't play right...then i went back to his media profiles and it worked fine. weird.
jayochs said:
ah. what i did was flashed his mod, then pushed your media profiles and lost all audio.
also, the videos that were recorded with your media profiles didn't work correctly on my PC. they would freeze up and wouldn't play right...then i went back to his media profiles and it worked fine. weird.
Click to expand...
Click to collapse
Okay, now were getting somewhere. It is odd this works for me without issues, but not for you. One thing I can think of is I flashed another zip at the same time when flashing his.
Maybe you can help diagnose this issue with me. First, what variant of G2 do you have (I assume an American carrier)? Second, would you be willing to undue his mod and try just my mod to see the results? These two things would tell me a lot about what is happening...
Heatshiver said:
Okay, now were getting somewhere. It is odd this works for me without issues, but not for you. One thing I can think of is I flashed another zip at the same time when flashing his.
Maybe you can help diagnose this issue with me. First, what variant of G2 do you have (I assume an American carrier)? Second, would you be willing to undue his mod and try just my mod to see the results? These two things would tell me a lot about what is happening...
Click to expand...
Click to collapse
hey..actually out right now so i won't be flashin stuff or playin around, but i can say that i'm running the Verizon version of the G2.
From another thread a user modding the media_profiles didnt see any changes to vids and images r u sure it works for anything except for codec checks? Make sure the modded apk, libs and media_profile all match with the same bitrate and settings perhaps.
somemadcaaant said:
From another thread a user modding the media_profiles didnt see any changes to vids and images r u sure it works for anything except for codec checks? Make sure the modded apk, libs and media_profile all match with the same bitrate and settings perhaps.
Click to expand...
Click to collapse
These can be hit or miss on different phones. On my S4 changes to the media profile would not take if replaced. I could change the values in-file and they would stay, but the quality would not change at all. On my ZTE U950, the file would indeed change and improve.
This mod works with more than just the codec checks, here are a few simple reasons why:
1) You can check the audio in the my media profile. The audio in the file is at 320Kbps, however, the video file for preview is a bit above 192Kbps. So this should disprove that only codec checks are being done since the audio is not being pumped up as high as I would like (yet).
2) The video storage sizes are also different, and if they were at the same bitrates (even if the codec read differently) the sizes should be similar since they are of similar length and content.
3) I performed some basic math to determine what percentage of my Jishnu Sur preview video is compared to my preview video. How does this help? If the storage size and bitrate percentages come out about the same, then the codec should be displaying the correct information since the storage sizes can't be incorrect. Both came out to about 83%. I can provide this simple equation if people wish to check for themselves.
I do welcome the question and any others people may have. People should make informed decisions before using mods.
Hello,first i want to thank you for your work.I have the Korean F320S model and i have the same problem with audio too.I dont think its model dependent as it seems.I did the same as the other guy,flashed the other mod and after that pushed your profile in.Im willing to help with the issue if you have something i can try.

XCam LG v6.2.4 [G2]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
!!! PLEASE READ THIS ENTIRE POST BEFORE PROCEEDING !!!
My goal for this application was to create a more flexible camera solution for LG phones. The camera hardware itself is very capable, but LG didn't necessarily take full advantage of it with their software. This app extends the capabilities of the camera and offers increased control/quality.
This is ONLY for stock or stock-based firmware (the version of Android that LG provides)...not AOSP/CM/etc.
If you are looking for instructions on using the XCam LG Settings donation app, see the 2nd post.
If you are a developer or have a rooted device and are interested in the advanced camera driver/binaries I have created, see the 3rd post.
This is for Android 4.4.x and higher. If you are looking for older 4.2.x versions of my camera mod see the 4th post.
Installation:
Make sure you have turned on the option for "Unknown Sources" under Settings > General > Security.
First you need to decide which version of the apk to download onto your phone. If you are using a 100% stock unrooted G2 you will choose the appropriate G2 Stock version. If you are currently using a rom that has the advanced driver (ask in your rom's thread, not here) you will choose the appropriate G2 Advanced version. If you are rooted, are running KitKat and ONLY and wish to add the 4kUHD video mode you can flash (via twrp) a modified media_profiles.xml file and install the G2 UHD KitKat version.
XCam LG - for G2 Stock KK
XCam LG - for G2 Stock LP
XCam LG - for G2 Advanced KK
XCam LG - for G2 Advanced LP
XCam LG - for G2 UHD KK
When the download has finished, pull down your notification tray and select the file. If you can't find it, go to "Downloads" listed in your app drawer and select the file from there. This will start the install process.
If you wish to support development and gain additional functionality, please consider purchasing the XCam LG Settings app from the play store HERE. For details on the options within this companion app, see the 2nd post.
Due to changes Google made starting with Android 4.4.x, if you want to save photos to your external SD Card you will need to install and run NextApp's SDFix (requires root access). After you restart your phone the external option should work without issue.
Due to limitations of the stock LG G2 camera driver, the 120fps (slow-motion) video is VERY dark. If your device is rooted you can install the advanced driver packge (3rd post) that I put together which has a higher iso ceiling for this mode and adds other enhancements/features.
Click to expand...
Click to collapse
FAQ:
Why won't XCam 6.x install on my device?
If you're running ART on Android 4.4.x, XCam 6.x won't work. In order to make XCam compatible with the official ART included with Android 5.0.x, changes were needed that make it incompatible with the unofficial/beta implementation included with KitKat. XCam 6.x will work perfectly with the official KitKat runtime (dalvik), however. If you want to run ART on KitKat, you can still use the latest 5.x branch apk.
Will this work on AOSP?
No. This camera requires framework/driver support that is only in the stock LG firmware.
Will you ever make it work on AOSP?
Though I won't say "never", I will say it's highly unlikely. Asking this question repeatedly makes it less likely.
Why doesn't my screen turn on with the Vol- longpress when this is the default camera app?
This is due to LG hard-coding the package reference in their framework. XCam LG itself has the capability but your firmware will need to be modified to point to the new package. I have given some of the details on what to look for HERE.
Why are the 60 and 120 fps video modes progressively darker?
This is due to the nature of light & photography. An increase in frame rate means a faster effective shutter speed...which also means less light getting to the sensor per frame.
Why doesn't the 60 fps video mode always shoot at 60 fps?
LG's camera driver decides when the ambient lighting is high enough to allow 60fps. All the camera app can do is request it, so it's out of my control.
Why isn't the 120fps mode in slow-motion and why does it look pixelated?
All "slow-motion" modes do is record video at a much higher framerate (in this case 120fps) so that when you play it back at a more standard 30fps everything appears to move slowly while still maintaining a smooth framerate. It is up to your video playback app whether or not it supports this. If you want to permanently alter the video to play back at a slower framerate, it will need to be re-encoded at that speed. As for the pixelization/lower-res quality of this mode, that is because LG's (and other OEM's) implementation of these higher-framerate videos entails upscaling from a lower-resolution to 720p.
Why don't I have a saturation slider in the settings app?
As mentioned in the settings app's play store description, this isn't available on all devices/drivers. LG removed this capability from the G Pro 2 (which the G2 Advanced KitKat driver is based on) and the G3.
Why are the icons overlapping/misaligned and why is the preview not filling the whole screen?
This is because you changed the default screen density/dpi for your device, which throws off the UI layout. To resolve this, you can either use the freely available App Settings xposed module to force XCam to stock (480) or modify the apk yourself using the files I have posted here as a guide. I will not be supporting these mods, however, so do not ask questions about how to make the changes or use apktool in the thread.
Click to expand...
Click to collapse
Problems/bugs/errors:
Gather as much information as possible on how to reproduce the issue.
If the application is force closing, get a full logcat that shows the error/problem. Here is an excellent tutorial on how to get one. There are also apps such as SysLog available in the play store that allow you to capture this on your device.
Post very clear/exact steps to reproduce the problem along with logs here. If you don't have either, post in the Q & A thread.
Click to expand...
Click to collapse
Changelog:
Version 6.2.4:
fix DualCam FC on KK
fix DNG conv for GPro2/LGL22
fix GPro2 LED FC
fix G2 LP AutoFlash FC
add Rule of 3rds grid toggle
add Max Screen Lux toggle
add Touch Shutter toggle (like tap-to-focus/shoot in stock G3 camera)
low batt check off
G3 front camera Beauty
NR on/off for more modes (device-dependent)
Auto HDR/Night in IA shot mode for G3 series
Version 6.0.0:
Official LG Android L compatibility
UI refresh and new icons (thanks @60nine !!!)
Gesture selfie for front camera
Version 5.2.4:
revert :: bump 60fps min rate higher in low-light (caused problems in certain luminance conditions)
fix UHD mode missing from stock g2 + 4kUHD version
Version 5.2.3:
NEW:: w10m video snapshot in 1080p/720p 30fps modes (advanced driver only)
NEW:: manual focus in HDR, Burst, Panorama, Shot/Clear modes
NEW:: bump 60fps min rate higher in low-light
removed unused code/permissions (fix vs98511c & L crashes)
fix HDR edge glitch for G3
Version 5.1.2:
BugFix: FC in Shot and Clear photo mode
Slightly improved quality in a few shot modes
Version 5.1.1:
BugFix: FC when selecting Help in Photo mode
Bypass Video mode popup for Sprint users
Version 5.1.0:
Support for XCam LG Settings donation app (available in Play Store)
Control Jpeg Compression Level (Quality), Contrast, Saturation (stock G2 camera driver only) and Sharpness.
Control minimum shutter speed for Burst Shot, Intelligent Auto, Night, Normal and Sports photo modes.
Control other camera features such as the audio noise Gate, automatic night mode, focus Lock/video recording sounds, etc.
Redesigned icon
Sports mode now set at min 1/30 shutter speed
Version 5.0.0:
Initial release of completely new app
NEW Lightframe/flash mode for front camera
NEW Sports mode revamped
Set at min 1/24 shutter speed
For now, if you don't open the camera in Sports mode, you will need to toggle between IA mode and back to Sports to enable this faster shutter (you can also toggle between video and back)
Normal mode now bypasses the automatic switch to night mode in low light (and the corresponding multi-frame smoothed/nr photo).
Improved image quality across the board
Click to expand...
Click to collapse
Special Thanks To:
Brut.all & iBotPeaches - apktool
JesusFreke - smali/baksmali
60nine - for the excellent icons and banner
troopii - for the color matrices and commiseration
Please provide any feedback pertaining to bugs or feature requests as I'll be actively working on this project.
Devs: Due to the fact that this mod is available as a normal apk install, there is no need for and I do not authorize it to be included in ANY roms/firmware. It creates confusion for people installing it and fragments any reporting of problems. You can direct them to this thread to install the latest version. Please feel free to use the binaries/driver packages I have created, however. If you do so, you must put a credit in your OP. Though it should go without saying, I do not approve of any use/copying of the code/methods contained herein for your own app/mod.
XDA:DevDB Information
XCam LG, App for the LG G2
Contributors
xdabbeb
Version Information
Status: Stable
Current Stable Version: 6.2.4
Stable Release Date: 2013-11-29
Created 2014-06-20
Last Updated 2016-02-13
XCam LG Settings Donation App
!!! PLEASE READ THIS ENTIRE POST BEFORE PROCEEDING !!!
The XCam LG Settings app provides something extra for those who choose to donate and support development. It allows on-the-fly configuration for many aspects of the camera that were previously unavailable.
This is ONLY for stock or stock-based firmware (the version of Android that LG provides)...not AOSP/CM/etc.
Installation:
Download the latest version of XCam LG Settings from the Google Play Store HERE. This will start the install process.
If you want to test early releases, join the XCam LG Settings Google+ community and then follow the link found there to become a tester.
If your phone/model shows as currently unsupported, please get in touch with me.
Click to expand...
Click to collapse
Usage:
Image Control:
Quality: Change the jpeg compression level from 0 (high compression/small file size) to 100 (lowest compression/largest file size)
Contrast: Change the pre-processing contrast level from 0 (lowest) to 10 (highest)
Saturation: Change the pre-processing saturation level from 0 (greyscale) to 10 (highly saturated). This option is not available on all devices/drivers.
Sharpness: Change the pre-processing sharpness level from 0 (lowest) to 36 (highest)
Shutter Control:
Burst/IA/Night/Normal/Sports: Change the minimum shutter speed for the corresponding shotmode. This is useful if you want to capture faster-moving subjects in lower light situations and don't want the camera to automatically shift to it's slowest possible shutter speed (~ 1/7 sec). Keep in mind that increasing this speed obviously means darker photos. Some interesting results can be achieved by leaving "Auto Night Mode" (described in next section) enabled while setting the minimum shutter speed of Normal mode to 1/30. The multiple exposures of night mode and the corresponding noise reduction still kick in, but the focus time is improved. Due to edge issues these photos are best if cropped.
Bitrate Control:
Change the bitrate for UHD (if supported by your device), FHD60fps, FHD30fps, HD120fps (slo-mo), HD60fps, and HD30fps modes. NOTE :: You can only go as high as your firmware/rom allows for. NO app can override this. To change this, you'll have to edit the maxBitRate for the h264 encoder in your media_profiles.xml.
Photo options:
Auto Night Mode: Toggle the automatic drop into Night for the Normal shotmode ON/OFF.
Noise Reduction: Toggle photo wavelet noise reduction ON/OFF. This will work on many (but not all shotmodes)...Normal, Panorama, HDR (for LP), Night, and IA (for LP). NOTE :: Turning this off bypasses all post-processing. This includes sharpness, contrast, zoom, etc.
Normal Mode Raw: Toggle raw bayer mode ON/OFF for Normal shotmode. They will NOT have a preview image as your gallery app can't read them. The resulting files will have a .dng extension and will be in the /sdcard/DCIM/Camera/dng/ directory. You can use your file manager of choice to browse to this directory and open them with the free version of PhotoShop Express from the Play Store or view/edit them on your computer. The library I wrote to convert our camera's mipi raw to dng is based on ille's raspiraw binary, which in turn is based on sample code by Dave Coffin (creator of dcraw).
Chroma Flash: Toggle chroma flash ON/OFF (G2 Advanced KK driver and GPro2 KK only)
Focus Lock Sound: Toggle the sound heard when touch focus locks ON/OFF
Night Mode: Toggle the night shotmode availability under the mode button ON/OFF
Sports Mode: Toggle the sports shotmode availability under the mode button ON/OFF
Video options:
Continuous Focus: This is the default focus mode for video that adjusts continually based on both your and your subjects' movement. Turn it off to access the following mode
Fixed Focus: When continuous focus is OFF and this is ON, video mode will be set at a fixed/infinity focal point. When both continuous AND this is turned OFF, the focal point can be set while in photo mode and when you switch to video it will hold that focal point.
Audio Source: Select any of the available audio sources listed HERE. If you're looking for the equivalent of the previous Noise Gate Toggle, select Mic. This allows control over the sometimes objectionable "underwater audio" effect.
Stereo Mics: Toggle between stereo (ON) and mono (OFF) if supported by your device.
Audio Rec Check: Toggle the check for another app using the microphone ON/OFF. This can alleviate the "Cannot start recording while another application is using audio" message encountered when the "OK Google" Detection from any screen option is enabled under Google Now. Keep in mind that this is enabled for a reason, and that videos recorded while this check is bypassed may stutter slightly.
Recording Sound: Toggle the sound heard when starting/stopping video recording ON/OFF
Click to expand...
Click to collapse
Problems:
Gather as much information as possible on how to reproduce the issue.
If the application is force closing, get a full logcat that shows the error/problem. Here is an excellent tutorial on how to make one. There are also apps such as CatLog available in the play store that allow you to capture this on your device.
Post very clear/exact steps to reproduce the problem here along with any pertinent log files or email them to [email protected].
Click to expand...
Click to collapse
Changelog:
Version 1.6.5:
G2 Advanced LP support
One-time reset of prefs
Remove G2 LP raw (LG broke it). I will keep working on it.
NEW:: Audio Source toggle (device-dependent)
NEW:: UHD 5min limit toggle
Version 1.5.2:
Save raw in dng format
Version 1.4.0:
XCam LG 6.0.0 push
Version 1.3.5:
NEW:: save raw in Normal ShotMode
NEW:: disable photo NR
NEW:: adjust video bitrate
NEW:: video focus: toggle continuous, fixed/infinity and lock from photo mode.
improved update/model checks
layout change/cleanup
Version 1.2.0:
Add automatic update check for XCam LG app
Adjusted min shutter speeds for stock G2 camera driver
Fix camera driver quirk that could cause "cannot connect" error after first run of settings app on certain devices.
Detailed licensing errors with links to contact Google directly in the event of a problem.
Version 1.1.0:
Add stereo/mono microphone option for video
Version 1.0.1:
Add support for LG G3
Thank you toast only on first run
Fix links in Menu > About
Version 1.0.0:
Initial release
Click to expand...
Click to collapse
LG G2 Advanced Camera Driver/Binary Package
!!! PLEASE READ THIS ENTIRE POST BEFORE PROCEEDING !!!
!!! I AM NOT RESPONSIBLE FOR ANY PROBLEMS THAT OCCUR WHILE INSTALLING/USING THESE DRIVER/BINARY PACKAGES!!!
These are modified driver/binary packages for the LG G2. They provide performance and quality improvements as well as support for additional shot modes/features that were originally found in the LG G Pro 2.
This is ONLY for LG's stock or stock-based firmware (the version of Android that LG provides)...not AOSP/CM/etc.
Installation:
Peform a full nandroid backup.
If you haven't done step 1, you're on your own! Please don't post here asking what to do if something has gone wrong. If you have a backup, then you're safe.
Download and flash the appropriate package below. If you don't know what your rom/firmware is based on or if they have already included this driver, please contact the maintainer/dev before flashing.
Click to expand...
Click to collapse
Problems:
Get a full logcat that shows the error/problem. Here is an excellent tutorial on how to make one.
Post the logcat along with your full model name and rom version in the Q&A thread.
Restore your backup to get back to stock.
If you didn't make a backup, then unfortunately there's not much I can do to help. There are countless hw/sw combinations out there, and given the constantly changing number of files included in this mod it's not feasible for me to keep a catalog of them all.
Click to expand...
Click to collapse
Downloads:
Camera Driver/Binary Package Downloads:
v1.0.0 - Advanced Driver for G2/GPro2-based 4.4.x firmware
v1.0.1 - Advanced Driver for G3-based 4.4.x firmware*
v2.0.0 - Advanced Driver for G2 5.0.2 firmware
* Due to the constantly changing nature of the G3 KK ported roms, you should check with your rom maintainer first to determine if they have already included the advanced driver. Certain files may need to be omitted/added/swapped depending on the rom. For instance, you should NOT this on CloudyG3 v2.x. as a variant of this driver is already included and installing this one will cause problems.
Stock G2 Driver from VS98026A w/4kUHD profile support - may not work on all G2 variants
Stock G2 5.0.2 files from D80230B - This only reverts the changes included in the 2.0.0 Advanced driver.
VideoPlayer Downloads:
xdabbeb's videoplayer v1.0.0 - only for stock G2 KK ROMs
Click to expand...
Click to collapse
Changelog:
Version 2.0.0:
Support for G2 stock 5.0.2 firmware
Version 1.0.0/1:
Random HDR FC fixed from previous GPro2 binaries
LG's blue-shift/blanching in photos has been corrected
Improved image quality
Improved noise reduction algorithm
Iso 50 enabled in high luminance environments
Improved auto white-balance decisions
Click to expand...
Click to collapse
Please provide any feedback pertaining to bugs or feature requests as I'll be actively working on this project.
Devs: Feel free to use the driver/binary packages I have created. You do not need to ask for permission, but if you use them, you must put a credit in your OP. Though it should go without saying, I do not approve of any use/copying of the code/methods contained herein for your own app/mod.
Previous Versions
PREVIOUS VERSIONS
Changelog:
Version 1.0.0:
Based on Stock LG 4.3.1 Camera apk and stock libraries
Will not interfere with other Camera apps performance
Improved low-light photo performance/flexibility
Night mode slowest shutter speed of 1/6
Normal mode slowest shutter speed of 1/10
IA mode slowest shutter speed of 1/15
Improved low-light photo focus speed
Increased low-light video framerates
lowest rate of 24fps (movie quality) when 30fps target rate is selected
lowest rate of 15fps when 60fps target rate is selected so user still has option of capturing video in very low-light
Disabled regional checks so shutter sound "off" option is available to everyone.
JPEG compression/quality at 97
Version 1.1.0:
NEW HDR Video Mode
Select it from the MODE menu while in video recorder
Doesn't do the over-saturated thing the HDR photo mode does, but does increase micro contrast in uneven lighting environments.
Will only work in 30fps target mode. If you are in 60fps mode it will kick you down when you select HDR Recording.
NEW 1600 ISO Mode
Now you can set an ISO of 1600 manually, giving the Normal mode even more flexibility
Combining these settings with the brightness slider you can achieve even more variety, and the shutter speed still won't drop below 1/10.
I may bump the shutter speed of Normal mode further in the next version due to the expanded range it now has to take photos in low-light.
NEW 60fps 720p Mode
Just select it from the size dropdown list in Video Recorder
You still have the option of 720p @ 24-30fps as well.
File names should now be the date stamp for everyone.
I'm still looking into IA mode saving on exit. The other method posted in this thread doesn't work.
There may have been some other things, but those are the big ones for now
There's also an alternate version available that silences the record start/stop and focus sounds
Version 1.1.1:
Normal mode photos taken at lowest shutter speed (1/10) slightly improved quality due to bypassed (and unnecessary) processing
EXIF info now present on Normal photos taken in all environments
Version 1.2.0:
If your stock ROM has a codebase of 10 (i.e. D80210B), use the CB10 version
CAF pumping/breathing significantly reduced for stable frames.
Minor image quality improvements across the board.
Version 1.3.0:
NEW Anti-shaking Video setting
Turn it on/off from the settings menu while in video recorder
This is just EIS that can be added to the existing OIS
I'm not sure how effective it is as I haven't played with it much yet, but it's there if you want to
Videos have been brightened up across the board, and the minimum fps went to 30 from 24...including 60fps target mode.
Noise reduction has been toned down for videos and in normal photo mode. Less blur, more noise. It's a tradeoff.
Other minor things I have forgotten about
Version 1.3.1:
Fix for graphics glitches in v1.3.0
New version of Gallery app included (nothing much new that I can see though)
Sprint users should now be able to use the volume key to take a photo. LG had yet another weird check.
Version 1.4.0:
Make sure you are starting from your rom's stock files before installing this one.
If you didn't make a backup, you'll have to find your rom's source files on your own.
Back to xxhdpi apk base
New version of Gallery app included
Should be no more instances of media scanning error
Should be more compatible across variants, but if you are having an issue with yours, please see the section below for steps to follow if you have a problem.
There is no "alt" version for this release.
Version 1.5.0:
NEW Camera will save last photo/video mode you were in (IA, HDR, Night, etc.)
See the section below for steps to follow if you have a problem before posting in the thread.
Version 1.6.0:
Slight bump in sharpness (most noticeable in low-light fine detail)
For those that have been asking for larger photo file sizes, I succumbed and put jpeg comp at its lowest level. Not sure how much of a difference it makes in image quality, however.
Further reduced post-proc in Normal photo mode
NR limited to chroma channel only now. This obviously means you will notice more luma noise at higher iso.
Photo pixel format changed to YUV422. In theory this means better quality photos, but I don't think it makes a huge difference. Can't hurt though!
Forced storage menu in settings
Version 1.6.1:
NEW Video Player Modified to extend slowest and fastest playback speeds (x0.125 - x1.875)
Reverted YUV422 Setting. A bug in HDR pixel mapping math caused occasional glitches in post-proc
Version 2.0.6:
NEW 4kUHD and 120fps video recording modes
NEW Video Player Modified to extend slowest and fastest playback speeds (x0.125 - x1.875)
Version 2.1.0/2.1.1:
NEW Magic Focus Mode (for G Pro 2 Ported ROMs only)
Based on 4.6.16 G Pro 2 Camera apk
Version 2.2.0:
NEW Increased Panorama resolution (up to ~20K x 3K & 20MB)
Reduced post-proc for Normal mode photos
Removed HDR Video until I have more time to get it working on KK
Version 2.2.1:
NEW ART Support
Version 3.0.0:
NEW Full port of ALL G Pro 2 Features & Improvements for stock G2 KK
If you are running CloudyStock or CloudyFlex, you must flash the separate patch below after flashing the mod.
Version 3.1.0:
Improved slow-motion playback on G2 Stock ROMs (flash separate videoplayer zip)
All stock Rom-bases supported by single mod (G2, Flex, GPro)
Version 3.2.0:
Updated driver/libs
NOTE: If you are running CloudyFlex do not flash this version as one (or more) of the updated driver/lib files apparently are not compatible. I have spoken with Cloudy and when he has time we will look into it. Stick with v3.1.0 in the meantime.
Version 4.0.0:
Initial G3 Camera version...for G3 Ported roms ONLY
HDR mode fix
Added back 1080p @ 60fps video mode
Slightly bumped video bitrates
Updated driver/libs
Click to expand...
Click to collapse
Downloads:
Camera Downloads:
xdabbeb's camera v1.5.0
xdabbeb's camera v1.5.0 - quiet
xdabbeb's camera v1.6.0
xdabbeb's camera v1.6.0 - quiet
xdabbeb's camera v1.6.1
xdabbeb's camera v2.0.6 - for stock LG G2 4.4.2 roms
xdabbeb's camera v2.2.1 - for stock G2 KK roms
xdabbeb's camera v3.1.0 - for all stock KK ROMs
xdabbeb's camera v3.1.0 - quiet
xdabbeb's camera v3.2.0 - for all stock KK ROMs ***NOT CLOUDYFLEX
xdabbeb's camera v4.0.0 - for G3 Ported ROMs ONLY
VideoPlayer Downloads:
xdabbeb's videoplayer v1.0.0 - only needed for stock G2 KK ROMs
APK installer for users w/o custom recovery ONLY:
xdabbeb's camera v2.2.0 - for stock G2 KK ROMs
xdabbeb's camera v2.2.0 - for ported GPro2 & GFlex KK ROMs
xdabbeb's camera/video v3.1.0 - for all stock KK ROMs
xdabbeb's camera v3.2.0 - for all stock KK ROMs
Big thanks to @bender_007 for the excellent installer app
Click to expand...
Click to collapse
Here's a sample of a few 120fps videos shot with this mod
*courtesy of @HenrikSwe
Thanks to the following people for their generosity:
matthewtyson x2!!
nic85
markus4000
bahrosuz
RPAusCan
spiralsnake
peter_dk
le_lutin
tpozek
danatiel
dawabz94
Peter M
lemach
fezantamburlano
homeedog
mgolder
Jonatan E
Maybelle
deathshead
BrianTDI
ozzyager
Darkestred
Francisco R
Jose P
Aloys G
Boobook
totize
Joseph C
platiNa
Henry W
guyladouche
Justin W
jetnag
Winston C
60nine
Ygrec
Markus R
UndecipheredPixels
martindar
Click to expand...
Click to collapse
awesome man, giving a shot now.
Sent from my Verizon LG G2 using Tapatalk Pro
---------- Post added at 10:15 PM ---------- Previous post was at 10:09 PM ----------
question.. can you put the regional check back? I assume that's what makes the app look like each versions different one.. for example, I absolutely hate this ui compared to the Verizon ui. it's the reason I never used jishnus new experimental apk because the Black ui version blows. lol
Sent from my Verizon LG G2 using Tapatalk Pro
---------- Post added at 10:22 PM ---------- Previous post was at 10:15 PM ----------
WOW dude your intelligent auto is amazing. holy hell. it focuses SO FAST! howcome the regular mode doesn't, because of the higher iso? my god. it focuses so fast in low light, then when the flash comes in its super fast, and it takes pictures so much quicker. IA mode rocks now. wow.
Sent from my Verizon LG G2 using Tapatalk Pro
I should be able to do that, but I think most people preferred the new UI, so I'll just do a one-off for you. I'll send you a pm when I have it ready.
THAT VIEWFINDER. in IA, there's no lag. it's amazing. is there a way you can do that with normal mode?
Sent from my Verizon LG G2 using Tapatalk Pro
---------- Post added at 10:25 PM ---------- Previous post was at 10:24 PM ----------
xdabbeb said:
I should be able to do that, but I think most people preferred the new UI, so I'll just do a one-off for you. I'll send you a pm when I have it ready.
Click to expand...
Click to collapse
thanks! hey I'll get used to it though dude, it's ok. I just liked how the white version had customizable side buttons but I'll always be using ia mode on this now.. damn.
Sent from my Verizon LG G2 using Tapatalk Pro
I could, but then you'd have slightly darker photos in normal mode. I tried to space things out so people had variety, but if you want that for your version let me know. If it turns out everyone prefers that I can make it the norm
xdabbeb said:
I could, but then you'd have slightly darker photos in normal mode. I tried to space things out so people had variety, but if you want that for your version let me know. If it turns out everyone prefers that I can make it the norm
Click to expand...
Click to collapse
all I've gotta say is you're kickin ass so far here lol. I love ia mode because of that super super fast zoom. good thinking on having that variety.
when it comes to suggestion, I think you're rocking the camera portion. I did have one, but then I forgot what it was. oops lol.
for the video camera, the only suggestions are what I'm sure you're already looking at... the crappy auto focus issue and perhaps creating a "set focus" method so we can tap to focus on a spot and it holds that focus area and doesn't continually auto focus.
the other for video is the audio from recording.. as I'm sure you're aware, the g2 suffers from the fate the old htc rezound did, in that the audio has that horrible underwater sound to it. the s3 and s4 and even dna overcame these crappy audio issues, but the g2 is still pretty bad.
Sent from my Verizon LG G2 using Tapatalk Pro
---------- Post added at 10:40 PM ---------- Previous post was at 10:35 PM ----------
here's one.. is there a way to default it to starting in IA mode? it always goes back to normal.
Sent from my Verizon LG G2 using Tapatalk Pro
can this default the IA mode?
Thanks for the feedback! I am working on the focus (breathing) issue for the video. My first task is to make it less sensitive to changes, then I'll see about enabling an auto focus lock. It should be possible. The camera api allows for it, at least.
I'll take a look at the audio as well. My guess is an overactive noise reduction.
emprize said:
can this default the IA mode?
Click to expand...
Click to collapse
It can be done. I may enable saving of many settings after exiting the app besides size if enough people are interested.
How can I set the IA mode is the default when starting Camera app?
xdabbeb said:
It can be done. I may enable saving of many settings after exiting the app besides size if enough people are interested.
Click to expand...
Click to collapse
Yes please! most of us are liking your IA changes here! haha.
I noticed the framerate of the IA mode changes... sometimes in the dark it's really fast, but in good lighting is slower. kinda odd lol.
and yeah I agree about the overactive noise reduction for the crappy audio. and awesome to hear you're working on the video focus!!
Sent from my Verizon LG G2 using Tapatalk Pro
xdabbeb said:
It can be done. I may enable saving of many settings after exiting the app besides size if enough people are interested.
Click to expand...
Click to collapse
and please add the filename structure, not just increment number for filename, can you make the file name create by the date and time?
Sprint Version
Awesome work!
I'm enjoying your tweak of the camera.
Just a few minor things I noticed while using it on the Sprint variant.
1. The capture option using the volume down is broken.
One has to select the zoom out - / zoom in + on the volume.
I like using the volume down as a the shutter key.
Also, like someone else requested. Is there a way to automatically have IA be the default mode.
The same as editing out the video RECORDING Mode
Long Video / MMS video.
I think most of us who use the video feature will be to use the full frame capabilities.
so xdabbeb, I presume you set a super long exposure for low light on ia mode right? noticed the shutter stays open for a really long time with the flash on in ia. not a problem really, but ya just have to stand still in lower light and hope your subjects do too.
Sent from my Verizon LG G2 using Tapatalk Pro
I guess that depends on your definition of long. It's actually a faster shutter speed than stock. I set IA mode so that it couldn't go any slower than 1/15. If you take a photo with flash, it should lower the iso, but it won't go any slower with the shutter. Check the exif details on the image and you'll see what I mean. I can always make it even faster if that's what people want, but the images will be darker.
@robfactory can you tell me what model and Rom you're using. The volume button works as a shutter for mine, but there may be a problem on other variants.
@emprize I thought it always used the date. Mine are, at least. What are your file names?
It would be nice if you could work with Jishnu and make a mod that combines both the benefit. Then the G2's camera will really be kick-ass. Good job by the way!

[Q] How to modify media_profiles.xml to increase camera quality?

I've been trying to increase my camera's quality by editing the "media_profiles.xml" file, without luck. It seems like it's been ignoring my changes to the file. The first thing I've tried to do was simply to increase the fps from 30 to 60, to see what happens. There are many different encoder profiles for 1080p video, so I've edited them all, without luck.
I know that you can already record in 60 fps by selecting the different mode i the camera app, but I'd also like to increase the bitrate of both the video and the audio, and also the resolution (if possible) to the camera sensor's maximum of 2688х1520 pixels. (120 fps possible, for ultra slowmotion?)
I'm s-off with the newest firmware for 4.4.3 and running Android Revolution 9.1 (wiped this morning, so fresh installation).
I know about this thread: http://forum.xda-developers.com/showthread.php?t=2743174&page=52
But unfortunately it doesn't work for my phone since the 4.4.3 update (even though there's a person saying that it does work for him/her) I also want to learn how to edit the settings so I can customize it so it suits me.
Thanks for reading
Bump!
I'd really appreciate some help!
Help will be greatly appreciated!
KKLD said:
I've been trying to increase my camera's quality by editing the "media_profiles.xml" file, without luck. It seems like it's been ignoring my changes to the file. The first thing I've tried to do was simply to increase the fps from 30 to 60, to see what happens. There are many different encoder profiles for 1080p video, so I've edited them all, without luck.
I know that you can already record in 60 fps by selecting the different mode i the camera app, but I'd also like to increase the bitrate of both the video and the audio, and also the resolution (if possible) to the camera sensor's maximum of 2688х1520 pixels. (120 fps possible, for ultra slowmotion?)
I'm s-off with the newest firmware for 4.4.3 and running Android Revolution 9.1 (wiped this morning, so fresh installation).
I know about this thread: http://forum.xda-developers.com/showthread.php?t=2743174&page=52
But unfortunately it doesn't work for my phone since the 4.4.3 update (even though there's a person saying that it does work for him/her) I also want to learn how to edit the settings so I can customize it so it suits me.
Thanks for reading
Click to expand...
Click to collapse
I can't help with this, but have you tried asking in the picture thread? There are a couple of guys in there that might help.
Pictures Taken With M8
Alright, in the thread I linked in OP, I followed the instructions some users suggested and made the mod work again
It works flawlessly for me and many others.
Unfortunately OP is banned, so I've attached the file that's I've edited to work (per the instructions) with Sense 4.4.3 ROMS, happy flashing!

Categories

Resources