Hi all,
I'm using Paul's great Gr1 (GB 2.3.4) from almost day one and even as my "daily driver" .
I tried the usual camera mods and found none of them working (just experienced boot loops).
So, I was longing for a respective camera mod - similar to somemadcaaant's mod but for GB/ Gr1. As no mod for Gr1 surfaced until now, I decided to rip apart the app by myself.
After some googling and a time intensive code analysis, I figured out how to accomplish what I was looking for (no shutter sounds, quality improvements).
I finally decided to share my mod with the community.
You can flash it with the update zip in CWM or just copy the apk to \system\app using a root file explorer.
NB: Unfortunately I was not able to make most of the Full-HD video mods work. After some testing I came to the conclusion, it must be some kernel bug because there are no hints in the logcat, that something is going wrong. And even the stock app behaves in the same way!
Maybe it's just happening to me, so provide some feedback/ hints here please!
I'm sharing it anyway, because maybe somebody finds it useful like it is.
Please find the resulting apk (plus update script) attached to this post. Enjoy!
Installation:
Flash the attached zip with CWM ("install zip from sd-card") or copy the apk to your \system\app folder manually.
I modded the following (please note the current restrictions!):
Disabled shutter & AF sounds (still & video) - timer sounds are still enabled (on purpose --> no change!)
Increased preview fps to 40 (--> reduced page tearing)
Changed default to show video after capture to false
Picture quality:
Set normal picture quality to 80
Set fine picture quality to 95
Set superfine picture quality to 100
1080p:
*Set FPS to 30
*Set normal video quality to 7Mbs (=fine in LG app)
*Set fine video quality to 12Mbs
*Set superfine video quality to 17Mbs
Set audio bitrate to 128Kbs
*not working due to buggy kernel (Gr1)? --> reverts to default 15fps & 9Mbs
720p:
Set normal video quality to 4Mbs (=superfine in LG app)
Set fine video quality to 9Mbs
Set superfine video quality to 14Mbs
Set audio bitrate to 128Kbs
PS:
1. Zoom is working now (no crash on Paul's Gr1) !!
2. If you have a darker icon for your camera app, then update script worked like it should!
3. Please be polite, as a) this is my first mod b) operation iron fist
4. If this is useful for you, hit the "Thanks" button on the lower right!
This mod is valid for stock roms?
Enviado desde mi LG-P990 usando Tapatalk
@Lo_RaT_PeNaT
I don't think so , this mod is for Modaco GR1 (Gingerbread)
the ROM Stock are Froyo
AndiCP said:
Hi all,
I'm using Paul's great Gr1 from almost day one and even as my "daily driver" .
I tried the usual camera mods and found none of them working (just experienced boot loops).
....
3. Please be polite, as a) this is my first mod b) operation iron fist
4. If this is useful for you, hit the "Thanks" button on the lower right!
Click to expand...
Click to collapse
Thanks for your efforts. Going to try this out.
Anyway you can make widescreen photos option available? Don't like 4:3 ratio.
how did you disable shutter sound ?
in cm, focus sound is played by camera app, so it is easy to reduce, while shutter sound is hard-coded in libcameraservice.so and you have to modify frameworks/base/services/camera/libcameraservice/CameraService.cpp (maybe Gr1 is different ?)
another question is that in cm, picture quality drops once you go to video recording mode and back to still image mode. do you also have this ?
Good work
i have a gr2 i will test your camera mod
thanks
Thanks for your posts guys!
el_liberator said:
@Lo_RaT_PeNaT
I don't think so , this mod is for Modaco GR1 (Gingerbread)
the ROM Stock are Froyo
Click to expand...
Click to collapse
yup
ksekhar said:
Thanks for your efforts. Going to try this out.
Anyway you can make widescreen photos option available? Don't like 4:3 ratio.
Click to expand...
Click to collapse
You're welcome!
I don't like 4:3 too. Let's see what I can do.
pastime1971 said:
how did you disable shutter sound ?
in cm, focus sound is played by camera app, so it is easy to reduce, while shutter sound is hard-coded in libcameraservice.so and you have to modify frameworks/base/services/camera/libcameraservice/CameraService.cpp (maybe Gr1 is different ?)
another question is that in cm, picture quality drops once you go to video recording mode and back to still image mode. do you also have this ?
Click to expand...
Click to collapse
It's sort of a hack. I disabled it by removing the middle layer.
To make it short: The app actually plays the sound, but the sounds won't be loaded in the first place There isn't even an error message in log cat about that though!
If you just remove the actual playing part, it simply plays the default sound instead (like you mentioned).
About pic quality...didn't notice that so far, will test it.
vekkio said:
Good work
i have a gr2 i will test your camera mod
thanks
Click to expand...
Click to collapse
Thanks! I'm eager to hear your feedback for the Gr2 (esp. if it also reverts the Full-HD settings)!
Looking forward to more feedback!
vekkio said:
Good work
i have a gr2 i will test your camera mod
thanks
Click to expand...
Click to collapse
I'm going to test it too today.
Update: can you post the zip file, because I can't overwrite the camera apk ...
Nice work, you read my mind...
I couldn't fix the 1080p issues either since the camera app looks to be unfinished, looks like its missing updated libs (libcamera.service.so|libnvmm_camera.so|libcamera_client.so) as I could restore some functions like 1080p higher compression via using the froyo code [cameraengine.java|modevideonormal.java] but it would screw other features, all LG seems to have done is started a quick and dirty port to GB.
Also looks like their trying to make a universal GB camera app for GB phones using the media_profiles.xml like the sgs2 and aosp frameworks have, this looks like where the 1080p issues reside as it will be looking to this file for fps and audio/video compression in the O2X Gb update.
Done well so far matey keep it up.
-smc
Are you planning on adding MIUI compatibility? Currently it force closes on 1.8.12
Sent from my Optimus 2X using XDA App
somemadcaaant said:
Nice work, you read my mind...
I couldn't fix the 1080p issues either since the camera app looks to be unfinished, looks like its missing updated libs (libcamera.service.so|libnvmm_camera.so|libcamera_client.so) as I could restore some functions like 1080p higher compression via using the froyo code [cameraengine.java|modevideonormal.java] but it would screw other features, all LG seems to have done is started a quick and dirty port to GB.
Also looks like their trying to make a universal GB camera app for GB phones using the media_profiles.xml like the sgs2 and aosp frameworks have, this looks like where the 1080p issues reside as it will be looking to this file for fps and audio/video compression in the O2X Gb update.
Done well so far matey keep it up.
-smc
Click to expand...
Click to collapse
Thanks man! really appreciate it!
Good to hear, that its not just me having trouble with this
Actually I already thought that exactly these probs would keep you from posting a GB mod
Thanks for this valuable info! But I was almost sure this would be related to a buggy kernel, as I developed another cam app which is working great on Froyo but behaves on Gr1 exactly the same strange way as the LG cam app does in Gr1. I think the drivers are simply f*cked up for LG's GB port at this point of time. So let's wait and see what comes down the pipe...
PS: tried the media_profiles.xml as well (and included it into the update zip) - even b4 your post - but obviously no impact on said probs.
action294 said:
Are you planning on adding MIUI compatibility? Currently it force closes on 1.8.12
Click to expand...
Click to collapse
Nope. Plain modded LG GB cam app.
AndiCP said:
Thanks man! really appreciate it!
Good to hear, that its not just me having trouble with this
Actually I already thought that exactly these probs would keep you from posting a GB mod
Thanks for this valuable info! But I was almost sure this would be related to a buggy kernel, as I developed another cam app which is working great on Froyo but behaves on Gr1 exactly the same strange way as the LG cam app does in Gr1. I think the drivers are simply f*cked up for LG's GB port at this point of time. So let's wait and see what comes down the pipe...
PS: tried the media_profiles.xml as well (and included it into the update zip) - even b4 your post - but obviously no impact on said probs.
Nope. Plain modded LG GB cam app.
Click to expand...
Click to collapse
Dude this is great that your working on this for GB for the O2X. I have a thread in the G2X forums working on the same thing. Question how did you fix the zoom crash, I also use apktool , so let me know thanks.
Is this working for CM7 or people having some problems ?
sahilkhurana said:
Is this working for CM7 or people having some problems ?
Click to expand...
Click to collapse
+1 here, would it work with CM7?
Does it actually removes the "mist" effect from the camera when taking pictures? stock v10d removes(without any fix), tho in CM7 it's still there.
Any chance of updating this work with the camera module from the latest leaked V20c ROM (eg. Flair GB) or V20f (Korean??)?
LG have fixed the video zoom problem and upped the frame rate for 1080p to 24fps in V20c.
But I am still really disappointed with LG's lack of progress with the still photo quality. The white haze problem is not so noticeable (color saturation still no where as good as the Nokia cameras) but the image is still very grainy and I suspect that is all we are going to get Could do with your tweaking magic
greetings, I wonder if you think some mod make the camera view has achieved stability with ginger roms version based on 20c?, a greeting
Modded V20e stock camera
Hi all,
I went on and successfully modded the stock camera app of V20e.
In contrast to Gr1, everything I modded is working well in V20e now.
Please go ahead and dl my latest mod here.
Enjoy!
AndiCP
Installed the mod successfully.
Enhanced fotos before and after the mod, but no vissable difference between them.
What should be improved with this mod, except the missing shutter sound?
Sent from my LG-P990 using XDA Premium App
mach2005 said:
Installed the mod successfully.
Enhanced fotos before and after the mod, but no vissable difference between them.
What should be improved with this mod, except the missing shutter sound?
Sent from my LG-P990 using XDA Premium App
Click to expand...
Click to collapse
You said that before on the corresponding thread.
Read my answer there.
does it work on latest v20l? can you see if with this new update, you can enhance 1080p again? you wrote it couldn't be enhanced due to kernel problems... probably with the final one, have been resolved?
thanks
Yesterday i tried to mess a bit with the camera so i decided to try the "[MOD][CAM] [email protected]@20mbps + auto-focus on CM7" (http://forum.xda-developers.com/showthread.php?t=1094424)
I did installed with the recovery. but after that i get very low fps on my videos..i tried every single file with about the same outcome.. so i wanna know how i can bring the cm7 default camera.apk back?
currently my videos are at 9 frames/sec wich is really bad...
I am using CM7.1.0 stable my phone is the greek version of Optimus X2 (its the speed) P990
My SD card speed is class 4 and i am using the sd booster app for a better performance..not big difference tbh...so either i would like to know where i can find the original camera.apk for cm7 or what i can do to fix this.. thanks in advance!
EDIT: I dont have experience on modding..just started messing around with phone following various step by step guides..
I have managed to put the default camera.apk and media_profiles.xml from CM7.1.0
to my mobile. I noticed small difference a bit better i think lik 12fps...
I have to mention that the light in the room was average.. when I had more light the frames gone up to like 25-26 fps... (i did monitored it with fraps) i have to try to daylight now...
Btw is that a general issue for all in dark video takes or its something wrong with my phone and/or software?
Any suggestions?
I am quite sure it has something to do with cm7 camera app. Alot of people do complaint about the quality of cm7's camera app comparing to the stock LG camera app on stock roms.
It's not a fault of CM team, the camera library is closed source, so it is hard to understand how O2X camera works.
Since I use the camcorder, I had to leave CM7 waiting for a fix
sodade21 said:
Yesterday i tried to mess a bit with the camera so i decided to try the "[MOD][CAM] [email protected]@20mbps + auto-focus on CM7" (http://forum.xda-developers.com/showthread.php?t=1094424)
I did installed with the recovery. but after that i get very low fps on my videos..i tried every single file with about the same outcome.. so i wanna know how i can bring the cm7 default camera.apk back?
currently my videos are at 9 frames/sec wich is really bad...
I am using CM7.1.0 stable my phone is the greek version of Optimus X2 (its the speed) P990
My SD card speed is class 4 and i am using the sd booster app for a better performance..not big difference tbh...so either i would like to know where i can find the original camera.apk for cm7 or what i can do to fix this.. thanks in advance!
EDIT: I dont have experience on modding..just started messing around with phone following various step by step guides..
Click to expand...
Click to collapse
A library system/lib/libcamera.so was changed in newer CM releases and it features auto compensation, that's the reason why video sucks in low light compared to stock.
You can use a libcamera.so from older CM nightlies/stable releases. But make sure that you also copy Camera.apk from that version.
ktxed said:
A library system/lib/libcamera.so was changed in newer CM releases and it features auto compensation, that's the reason why video sucks in low light compared to stock.
You can use a libcamera.so from older CM nightlies/stable releases. But make sure that you also copy Camera.apk from that version.
Click to expand...
Click to collapse
oh i see.. I'll try that thank you!
hmm this is interesting.. i too am not so happy with the camera on CM7.2 temasek
there's no way to install the stock camera apk on CM roms?
what i dearly miss from that camera is the ability for faster timer shots (2s).. the fastest timer is 10s for CM7 =\
Hello Members,
one week ago i got a Galaxy S I9000.
I flashed ParanoidAndroid v1.1.d with the newest Devil Kernel (Devil3_0.79_i9000_CFS_BLN_VC_20120618.zip)
Very nice rom by the way
But unfortunaly iam not able to record videos. I changed nothing with the free ram space, so i think thats not the problem?
With the stock rom it was possible to record. Tried semaphore but without success..
Could not find another app for video recording and i dont know how to change recording resolution settings??. ... any suggestions?
Thanks for your Help in advance
Benzai
Yes you are right PA ROM has some issues with the camera. In tablet mode once you switch to front camera the switch camera button doesn't work.
Video recording works fine with other apps but not in 720p.
In the Development Site of PA i read nothing about cameraproblems...
With Skype e.g. its working fine... but i dont know on which resolution.
Do you have a hint for a different app for recording videos? It hasn't to be high res.
I found nothing in the market...
From reading this forum, good work is being put in to achieving a well functioning camera on TouchPad with Android. But on which TP configurations do some camera apps currently work okay?
I am using TP with JB 4.1.2 by Oat and stock camera as suggested by Sstar (post #118 in the thread for this ROM in the TP Development forum). Thanks to both. The stock camera can take photos. Video works in Skype. But the stock camera messes up video recordings and the camera does not work in stop-motion apps, which is my biggest issue. I tried three stop-motion apps and they could not detect the camera or showed a black screen.
Any suggestions of configurations well suited for camera apps?
If you tell me or give me a link for the app or apps you're having a problem with I will have a play and try it with the JB+ camera that I bought to see if that makes a difference .
Regards
Pardon my delayed followup. Apps tested:
Stop-Motion Lite
Stop Motion Maker Komaori Lite
Lapse It Lite
Any help much appreciated...
tubajo said:
Pardon my delayed followup. Apps tested:
Stop-Motion Lite
Stop Motion Maker Komaori Lite
Lapse It Lite
Any help much appreciated...
Click to expand...
Click to collapse
Tried all three and I can't get them to work either .
I am wondering if anyone knows of a way to turn off camera functionality of start/finish video recording by touching the screen.
UPDATE: issue resolved by @[email protected], thank you
Barmalei said:
I am frustrated by an added camera functionality on the latest WP versions - now in order to start/finish video recording you only need to touch the screen - anywhere on the screen. For those of us who frequently uses video recording this is actually not convenient because it is easy to accidentally stop the recording by touching the screen, especially during longer recordings (>3 minutes), or when passing the phone to another person while recording is underway.
I run into this problem again and again, but I would hate to revert to an earlier WP7 version because of this (I am running a nice Dynamics HD2O 2.00b WP7.8 8858 ROM on my HTC HD2). So I am wondering if anyone can think of a way to remove this functionality (or allow the screen to be completely turned off while recording video, as this could also save battery charge) by tweaking registry, or an app that does that, etc.
Thank you.
Click to expand...
Click to collapse
hi,
You can disable this from Settings>applications>Pictures+Camera
@[email protected] said:
hi,
You can disable this from Settings>applications>Pictures+Camera
Click to expand...
Click to collapse
That was easy, thank you very much. Strange that you can't do it from within the camera app itself.
tanks